Skip to content

Instantly share code, notes, and snippets.

Fish eating

techmoe dev-techmoe

Fish eating
View GitHub Profile
# data: 2020-03-31
# author: muzi502
# for: Fuck GFW and download some raw file form github without proxy using jsDelivr CDN
# usage: save the .she to your local such as /usr/bin/rawg, and chmod +x /usr/bin/rawg
# use rawg to download
set -xue
# GitHub rul:
# jsDelivr url:
Integ /
Last active Feb 10, 2021 — forked from feix/
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 filename
__author__ = 'Integ:'
import sys, os
import struct
class WxapkgFile(object):
set -eu
# check root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
enzinier /
Created Mar 4, 2017
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
# ~/.local/share/fonts should be used instead
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
ryerh / tmux-cheatsheet.markdown
Last active Feb 24, 2021 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程
View tmux-cheatsheet.markdown

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程


tmux [new -s 会话名 -n 窗口名]


pklaus / Simple DNS server (UDP and TCP) in Python using
#!/usr/bin/env python
# coding=utf-8
import argparse
import datetime
import sys
import time
import threading
import traceback
import socketserver
jasny / bootstrap-em.less
Last active Jan 5, 2020
Use em or rem font-size in Bootstrap 3
View bootstrap-em.less
* Use em or rem font-size in Bootstrap 3
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
import requests
import json
import re
import argparse
import random
import m3u8
USHER_API = '{channel}.m3u8?player=twitchweb' +\
'&token={token}&sig={sig}&$allow_audio_only=true&allow_source=true' + \
dirkk0 /
Created Jul 12, 2013
Installing Cloud9 on Amazon EC2 (revisted, Cloud9 v0.7)
sudo apt-get update
# get ec2 ip and hostname
sudo apt-get install -y build-essential g++ libssl-dev apache2-utils git libxml2-dev screen
#install node
git clone
# git checkout v0.10.13 did work once, but I couldn't work again, so I fell back to 0.8
#compilation takes over 30 minutes on a t1.micro
译自 jQuery Plugins / Authoring


看来 jQuery 你已经用得很爽了,想学习如何自己编写插件。非常好,这篇文档正适合你。用插件和方法来扩展 jQuery 非常强大,把最聪明的功能封装到插件中可以为你及团队节省大量开发时间。