Discover gists
| { | |
| "categories": [ | |
| { | |
| "name": "Movies", | |
| "videos": [ | |
| { | |
| "description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources": [ | |
| "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | |
| ], |
使用 Playwright 来登录 Pixiv ,从而获取 token
- 下载本脚本
pixiv_auth.py - 安装
playwright和pyotp(两步验证):
pip install playwright
pip install pyotp| ╭─── Claude Code v2.1.12 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
| │ │ Tips for getting started │ | |
| │ Welcome back Jonny! │ Run /init to create a CLAUDE.md file with instructions for Claude │ | |
| │ │ │ | |
| │ │ ───────────────────────────────────────────────────────────────── │ | |
| │ ▐▛███▜▌ │ Recent activity |
Claude Code CLI can leave orphaned background processes that consume CPU and memory. This solution automatically kills Claude processes that are no longer attached to a terminal.
Active Claude sessions are attached to a TTY (e.g., s001, s002).
Orphaned processes show ?? in the TTY column. This script kills only the orphaned ones.
| /** | |
| DISCLAIMER: DO NOT COPY & PASTE RANDOM JAVASCRIPT SCRIPTS INTO YOUR BROWSER'S CONSOLE WITHOUT UNDERSTANDING WHAT THEY ARE DOING. THEY CAN STEAL YOUR PERSONAL INFORMATION!!! | |
| What this script does? | |
| Based on an external library in immich, it goes through all the folder of it, and creates albums for each one | |
| How it works? |
Canonical laptop configuration for ops team members.
Before starting, ensure you have:
- USB memory stick - 8GB+ for bootable Fedora installer
- GitHub account - create at github.com if needed
| #!/usr/bin/env bash | |
| # This script renews letsecnrypt SSL certificates using Cloudflare dns-1 renewal | |
| # It assumes you are using Mailcow | |
| set -euo pipefail | |
| # REQUIRED set these: | |
| [email protected] | |
| your_domain=mail.your.domain # only tested with single domain | |
| cloudflare_ini_path=/root/.cloudflare # add your Cloudflare file here, called cloudflare.ini |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.