Skip to content

Instantly share code, notes, and snippets.

@airicbear
airicbear / .bashrc
Last active January 19, 2021 17:28
ubuntu 20.04 2020-05-01
export MPD_HOST="localhost"
export MPD_PORT="6601"
@ihciah
ihciah / README.MD
Last active June 4, 2023 01:23
V2ray MTProto through Shadowsocks

V2ray MTProto through Shadowsocks

Why use it

The MTProto is easy to block; shadowsocks is hard to identify but cannot work without a client.

You can deylop this docker image to run a relay inside the firewall (China/Russia etc.), it provide a MTProto and all the packets will be sent through shadowsocks protocol.

How to run

@tony612
tony612 / Dockerfile
Last active November 22, 2017 12:12
The right way to use Elixir+Docker in China
# git clone https://github.com/hexpm/hex.git
# cd hex
# git checkout v0.15.0
# # Add this Dockerfile in the dir
# docker build .
# # Then you can use the image as your base image to speedup your usage
FROM elixir:1.5.2
RUN HEX_MIRROR=https://hexpm.upyun.com mix local.rebar --force \
# rebar3 update should be rerun if you add a new rebar dependence
Q: abandon
A: 【考法 1】 n. 放纵: carefree, freedom from constraint
A: 【考法 2】 v. 放纵: to give (oneself) over unrestrainedly
A: 【考法 3】 v. 放弃: to withdraw from often in the face of danger or encroachment
A: 【考法 4】 v. 停止做某事: to put an end to (something planned or previously agreed to)
Q: awning
A: 【考法 1】 n. 雨篷,遮阳篷: a piece of material attached to a caravan or building which provides shelter from the rain or sun
Q: mercenary
@zqqf16
zqqf16 / IKEv2.mobileconfig
Last active February 28, 2023 22:57
strongSwan IKEv2 configurations for iOS without certificate
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>IKEv2</key>
<dict>
<key>AuthName</key>
@soffchen
soffchen / surge.conf
Last active March 4, 2024 05:23
surge.conf
[General]
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
@janlay
janlay / README.md
Last active March 4, 2024 05:25
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.

#!/usr/bin/python
# -*- coding: utf-8 -*-
# utf-8 中文编码
import glob
import os,sys
import json
reload(sys)
sys.setdefaultencoding('utf-8')
import time, sys,iptc # iptc 包通过 sudo pip install python-iptables 安装
from datetime import datetime
@rainyear
rainyear / handy.py
Created July 3, 2015 10:09
Hand posture detection with OpenCV.
#!/usr/bin/env python
import cv2
import numpy as np
def main():
cap = cv2.VideoCapture(0)
while(cap.isOpened()):
ret, img = cap.read()
skinMask = HSVBin(img)
@bindiry
bindiry / _urls.md
Last active August 29, 2015 14:23
install ROR on Ubuntu 15.04