Skip to content

Instantly share code, notes, and snippets.

View SukkaW's full-sized avatar
👓
Learning everything...

Sukka SukkaW

👓
Learning everything...
View GitHub Profile
@alobato
alobato / start-stop-example.sh
Created March 3, 2012 23:09
start-stop-example
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@mckelvin
mckelvin / remove_jietumacapp.sh
Last active October 25, 2022 03:11 — forked from ITJesse/remove_jietumacapp
删除 QQ for Mac 的流氓截图
#!/bin/sh
chmod 0000 "/Applications/QQ.app/Contents/Library/LoginItems/QQ jietu plugin.app/Contents/MacOS/QQ jietu plugin"
@SukkaW
SukkaW / IATA.json
Created September 25, 2018 14:37
The JSON Format Airport Data
[{"iata":"UTK","iso":"MH","name":"UtirikAirport"},{"iata":"FIV","iso":"US","name":"FiveFingerCGHeliport"},{"iata":"FAK","iso":"US","name":"FalseIslandSeaplaneBase"},{"iata":"BWS","iso":"US","name":"BlaineMunicipalAirport"},{"iata":"WKK","iso":"US","name":"Aleknagik\/NewAirport"},{"iata":"TSS","iso":"US","name":"East34thStreetHeliport"},{"iata":"FOB","iso":"US","name":"FortBraggAirport"},{"iata":"ABP","iso":"PG","name":"AtkambaAirport"},{"iata":"ALV","iso":"AD","name":"AndorralaVellaHeliport"},{"iata":"ADC","iso":"PG","name":"AndakombeAirport"},{"iata":"TJP","iso":"PR","name":"AreopuertoInternacionalMichaelGonzalez"},{"iata":"AEE","iso":"SS","name":"AdareilAirport"},{"iata":"AEI","iso":"ES","name":"AlgecirasHeliport"},{"iata":"AEK","iso":"PG","name":"AsekiAirport"},{"iata":"OLR","iso":"AF","name":"SalernoLandingZoneAirport"},{"iata":"AFR","iso":"PG","name":"AforeAirstrip"},{"iata":"AFT","iso":"SB","name":"AfutaraAerodrome"},{"iata":"ATD","iso":"SB","name":"UruHarbourAirport"},{"iata":"VEV","iso":"SB","name":"B
@SukkaW
SukkaW / git-pull-gc.sh
Created October 4, 2018 12:13
在所有子目录中的 git repo 里执行 git pull 和 git gc
#!/bin/bash
find `pwd` -type d -name ".git" > git_dir.txt
sed -i "s/\/.git/\//g" git_dir.txt
while read LINE
do
echo $LINE
cd "$LINE"
git pull
@Justsoos
Justsoos / p.sh
Last active February 3, 2023 02:31
proxychains CLI wrapper (updated)
#!/bin/sh
# proxychains wrapper
# Choose pre-supposed profile with -1,-2,-3 OR appoint by -n proxy(Node)_ip(hostname):port and -p proxy_protocol and -q as quiet mode
# Default profile
proxy_hostname=127.0.0.1
proxy_port=1080
protocol=socks5
# profile 1
proxy_hostname_1=127.0.0.1
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active October 24, 2024 18:10
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@SukkaW
SukkaW / cfdc.json
Last active March 28, 2022 05:20
JSON format data of Cloudflare Data Centers
{
"AMS": {
"name": "Amsterdam, Netherlands",
"cnName": "荷兰阿姆斯特丹"
},
"ATH": {
"name": "Athens, Greece",
"cnName": "希腊雅典"
},
"BCN": {
#!/usr/bin/env python3
# Recursively generate index.html files for
# all subdirectories in a directory tree
##########################################################################
## ❗️❗️❗️ WARNING: This version is outdated and unmaintained!
## For an up-to-date version with cleaner CSS styling see:
## https://gist.github.com/glowinthedark/625eb4caeca12c5aa52778a3b4b0adb4
##########################################################################