Skip to content

Instantly share code, notes, and snippets.

View wynemo's full-sized avatar
:octocat:
吃土中

Nemo.Zhang wynemo

:octocat:
吃土中
View GitHub Profile
@wynemo
wynemo / run webtorrent on centos 6.txt
Created November 2, 2017 08:43
run webtorrent on centos 6
http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_amd64.deb
[nemo.zhang@cws87 WebTorrent-linux-x64]$ ls -l
total 114360
-rw-r--r-- 1 nemo.zhang nemo.zhang 56229 Feb 3 2017 blink_image_resources_200_percent.pak
-rw-r--r-- 1 nemo.zhang nemo.zhang 15 Feb 3 2017 content_resources_200_percent.pak
-rw-r--r-- 1 nemo.zhang nemo.zhang 9869701 Feb 3 2017 content_shell.pak
-rw-r--r-- 1 nemo.zhang nemo.zhang 10127200 Feb 3 2017 icudtl.dat
-rw-r--r-- 1 nemo.zhang nemo.zhang 2574840 Feb 3 2017 libffmpeg.so
@wynemo
wynemo / mosh_on_centos_6.txt
Created October 27, 2017 05:50
run mosh on centos 6
# sudo yum install gcc-c++
# sudo yum install protobuf-devel
$ wget -c https://mosh.org/mosh-1.3.2.tar.gz
$ tar xf mosh-1.3.2.tar.gz
$ cd mosh-1.3.2
$ ./configure
$ make
# make install
$ cat mosh.sh
@wynemo
wynemo / fapiao.py
Created October 9, 2017 08:52
计算某目录下电子发票总金额
#!/usr/bin/env python
#coding:utf-8
#sudo yum install poppler-utils
import os
import re
import subprocess
from decimal import *
@wynemo
wynemo / 519888.py
Last active September 29, 2024 06:10
A股现金管理 实现一周9天利息.md
# python
# https://www.python.org/ftp/python/3.8.1/python-3.8.1-amd64.exe 下载安装
# 找到pip.exe C:\Users\yourname\AppData\Local\Programs\Python\Python38\Scripts\pip.exe
# 命令行安装
#pip.exe install -i https://mirrors.aliyun.com/pypi/simple/ pyautogui==0.9.46
# 打开券商通达信 登录
@wynemo
wynemo / 老张私房软件.txt
Last active September 26, 2017 16:37
老张私房软件.txt
bt下载
https://webtorrent.io/
文件同步
https://www.resilio.com/individuals/
远程桌面
https://www.teamviewer.com/en/
@wynemo
wynemo / change mac address on nexus 4.txt
Last active July 10, 2017 10:26
change mac address on a rooted nexus 4 在已root的nexus 4上修改mac地址
nexus 4已经root
google play上安装busybox
google play上安装终端模拟器
进入终端
# company 7C:DD:90:06:59:7C
busybox ifconfig -a
busybox ifconfig wlan0 hw ether 7c:dd:90:06:59:7c
@wynemo
wynemo / ss.txt
Last active November 14, 2017 08:37
shadowsocks iOS/android/mac/windows客户端下载
iOS
https://itunes.apple.com/us/app/wingy-http-s-socks5-proxy-utility/id1178584911?mt=8
android
https://play.google.com/store/apps/details?id=com.github.shadowsocks
mac
@wynemo
wynemo / .hgrc
Created April 6, 2017 09:17
my hg rc
[alias]
pb = !$HG push -b $($HG branch)
@wynemo
wynemo / add_route
Last active July 27, 2025 17:34
openvpn over shadowsocks
# in /etc/sysctl.conf
# net.ipv4.ip_forward=1
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
@wynemo
wynemo / bbr_on_vultr_debian_8.sh
Created March 6, 2017 03:33
bbr vultr debian8
#debian 8 on vultr
# install kernel
sudo echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
sudo apt-get update
apt-get install -t jessie-backports linux-image-amd64
#reboot
update-grub
reboot