Skip to content

Instantly share code, notes, and snippets.

View dearrrfish's full-sized avatar
🐈
If cats could talk, they wouldn't.

Yu Jin dearrrfish

🐈
If cats could talk, they wouldn't.
View GitHub Profile
@ZipFile
ZipFile / README.md
Last active April 22, 2026 08:45
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

@Bogdaan
Bogdaan / compress.sh
Created September 18, 2019 08:35
Creating password protected gzip files from command line
# encrypt
tar cz my_folder/ | openssl enc -aes-256-cbc -e > encrypted.tar.gz.enc
# decrypt
openssl aes-256-cbc -d -in encrypted.tar.gz.enc | tar xz
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 1, 2026 19:17
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@jimmywarting
jimmywarting / readme.md
Last active April 16, 2026 08:45
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@lucifr
lucifr / init.lua
Last active September 26, 2024 15:57
My Hammerspoon config file
-- -------------------------------
-- Watcher for changes of init.lua
-- -------------------------------
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
#!/bin/bash
# Time-stamp: <Tue 2021-08-31 14:26 svarrette>
################################################################################
# Pre-commit hook to avoid accidentally adding unencrypted files with
# [git-crypt](https://www.agwa.name/projects/git-crypt/)
# Fix to [Issue #45](https://github.com/AGWA/git-crypt/issues/45)
#
# Usage:
# $ cd /path/to/repository
# $ git-crypt init
@tiann
tiann / alfred-pinyin.py
Last active April 5, 2024 14:59
make alfred support pinyin search
#! /usr/bin/python
# -*- coding: utf-8 -*-
# @author weishu @2015/12/7
import subprocess
import os
import re
import json
@p0we7
p0we7 / xnsCloud_v3.py
Last active February 23, 2022 02:13
Cloudxns DDNS Script v3.1 [ 代码末尾有安装方法 ]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: p0we7
# Email : i@iu.vc
def handle_import_error():
print '\n' + "Import Error:"
print 'Please install the required 3rd-party modules ' + '\033[4;95m' + 'requests' + '\033[0m' + '\n'
import sys
sys.exit()
@janlay
janlay / README.md
Last active March 6, 2026 15:03
Yet another config for Surge.app

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt Or run $ sh build-all to build all your index files.
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.

@shamasis
shamasis / describe-it.js
Last active September 5, 2023 07:12
mocha/jasmine compatible test framework for postman test scripts (in less than 1KB minified)
/**
* @module describe-it
*
* This module defines global variables to provide unit test case runner functions compatible with mocha and jasmine.
* The codebase is written for brevity and facilitate being as lightweight as possible.
*
* The code is intended to be included in Postman Test Sandbox.
*/
/**