Skip to content

Instantly share code, notes, and snippets.

View treper's full-sized avatar

Maybe treper

  • Shanghai
View GitHub Profile
@treper
treper / OrderFlow.ipynb
Created June 4, 2024 15:50 — forked from sebjai/OrderFlow.ipynb
Optimal trading with order-flow and short-term alpha
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@treper
treper / demo_purgedkfoldcv.ipynb
Created January 14, 2024 08:49 — forked from berendgort/demo_purgedkfoldcv.ipynb
Demo_PurgedKFoldCV.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* @author ${USER}
* @date ${YEAR}/${MONTH}/${DAY}
*/
!apt-get install libboost-program-options-dev zlib1g-dev libboost-python-dev cmake
!pip install Cython
!pip install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
!pip install torchvision
!pip install git+https://github.com/maciejkula/spotlight.git
!pip install configparser
!pip install nltk
!pip install tqdm
!pip install statsmodels
"""
Parse output of nvidia-smi into a python dictionary.
This is very basic!
"""
import subprocess
import pprint
sp = subprocess.Popen(['nvidia-smi', '-q'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
git config --global https.proxy http://127.0.0.1:1081
git config --global https.proxy https://127.0.0.1:1081
git config --global http.proxy socks5://127.0.0.1:1081
git config --global https.proxy socks5://127.0.0.1:1081
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy

//python server.py -p 443 -k password -m aes-128-cfb -O auth_aes128_md5 -o tls1.2_ticket_auth_compatible

//python server.py -p 1541 -k nopasswd -m rc4-md5-6 -O auth_aes128_md5 -o tls1.2_ticket_auth

1.先按照http://blog.nicesite.win/2017/08/24/ssr-install/ 安装 { "server":"59.22.167.217", "server_port":1541, "local_port":1080,

nohup sslocal -s your-server-ip -p your-server-port -l 1080 -k your-server-passwd -t 600 -m rc4-md5 > /dev/null 2>&1 &
sslocal -s 104.160.181.19 -p 8712 -b 127.0.0.1 -l 1080 -k ntdtv.com -m aes-256-cfb -O auth_sha1_v4 -o tls1.2_ticket_auth -t 600
@treper
treper / grub
Created August 18, 2017 14:05
ubuntu grub to command line mode
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`