Skip to content

Instantly share code, notes, and snippets.

View synthpop123's full-sized avatar
💤
Sleeping

lkw123 synthpop123

💤
Sleeping
View GitHub Profile
@ChenyangGao
ChenyangGao / web-115-302.py
Last active January 9, 2025 04:22
获取 115 文件信息和 302 下载链接
#!/usr/bin/env python3
# encoding: utf-8
"获取 115 文件信息和下载链接"
__author__ = "ChenyangGao <https://chenyanggao.github.io>"
__version__ = (0, 0, 3)
if __name__ == "__main__":
from argparse import ArgumentParser, RawTextHelpFormatter
@liviaerxin
liviaerxin / README.md
Last active August 20, 2025 01:06
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@santaklouse
santaklouse / CrossOver.sh
Last active August 28, 2025 04:05
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@sts10
sts10 / rust-command-line-utilities.markdown
Last active August 26, 2025 17:33
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@Zekfad
Zekfad / conventional-commits.md
Last active August 28, 2025 03:35
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@imba-tjd
imba-tjd / .Cloud.md
Last active August 28, 2025 01:32
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@arturmartins
arturmartins / mac-upgrade.sh
Last active May 31, 2025 17:34
How to keep your mac software updated easily (2025)
#!/bin/bash
# Requirements:
# - homebrew: https://brew.sh/
# - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade
# - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas)
#
# Install the requirements by running:
# brew tap buo/cask-upgrade && brew install mas
# CONFIG: