Skip to content

Instantly share code, notes, and snippets.

View contropist's full-sized avatar
😆
Life is fantastic!

Contropist contropist

😆
Life is fantastic!
View GitHub Profile
@wangyan
wangyan / .rtorrent.rc
Created October 30, 2011 13:57
This is an Chinese example resource file for rTorrent.
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# 每个种子所允许的最小最大连接数
#min_peers = 40
#max_peers = 100
# 同上,但仅针对已完成的种子(-1 表示与下载中的种子一致)
#min_peers_seed = 10
@wangyan
wangyan / rtorrent.sh
Created October 30, 2011 16:41
rtorrent satart shell script
#!/bin/sh
case "$1" in
start)
echo -n "Starting rtorrent"
su - root -c "screen -A -m -d -S rtorrent /usr/local/bin/rtorrent" &
echo "."
;;
stop)
echo -n "Stopping rtorrent"
@clyfish
clyfish / solarized-dark.xcs
Created December 21, 2011 07:06
xshell solarized dark color theme
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f
@zealic
zealic / Email
Last active April 21, 2024 20:32
class Object {
begin 777 portal.bin
M(R!796QC;VUE#0H-"B,C($ME>0T*#0I24T$@4'5B;&EC($ME>3H@*$XL(#<I
M#0I.(#T@,C,S("H@30T*32!I<R!T:&4@9W)E871E<W0@9F]U<BUD:6=I="!P
M<FEM92!T:&%T(&UA:V5S($X@96YD('=I=&@@,C,S#0H-"B,C($5N8W)Y<'1E
M9"!!=61I="!142!G<F]U<"!N=6UB97(-"@T*5&AE($%U9&ET(%%1(&=R;W5P
M(&YU;6)E<B!I<R!E;F-R>7!T960@=VET:"!T:&4@*BI24T$@4'5B;&EC($ME
M>2HJ+@T*#0I@8&`-"D-/3D-!5"A$14-265!4*#$Y-S,W,BDN=&]3=')I;F<H
M*2P@1$5#4EE05"@S,S,P-SDI+G1O4W1R:6YG*"DI#0I@8&`-"@T*(R!#05!4
M0TA!#0I5<V4@=&AI<R!G:7-T(')E=FES:6]N(&`W9#(S939E.3DY-&)B-F9A
M93@W-&1A8C,U930V9F0W-6(Y9&0Q-6)E8"!R97-U;'0@87,@0T%05$-(02X-
@tschoonover
tschoonover / bootstrap-dotnet
Last active June 6, 2019 07:52
Install .NET Core 1.1 and VS Code with C# extension for Linux Mint 18 / Ubuntu 16.04 (amd64)
#!/bin/bash
#dotnet
sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
apt-get update
apt-get install dotnet-dev-1.0.0-preview2.1-003177
#vscode
wget "https://go.microsoft.com/fwlink/?LinkID=760868" -qO /tmp/vscode.deb && dpkg -i /tmp/vscode.deb
@ziyuang
ziyuang / install_mxnet_p2xlarge.sh
Created January 13, 2017 18:57
Install MXNet (with Anaconda Python 3, CUDA, cuDNN, Intel MKL, OpenCV, Zsh) for p2.xlarge on Ubuntu 16.04 (ami-6f587e1c).
#!/bin/bash
set -e
# Put
# 1. CUDA installation script (cuda_*.run, see https://developer.nvidia.com/cuda-downloads)
# 2. cuDNN archive (cudnn-*.tgz, see https://developer.nvidia.com/rdp/cudnn-download)
# 3. Intel MKL archive (l_mkl_*.tgz, see https://software.intel.com/en-us/intel-mkl)
# under $HOME
# Also set INTEL_MKL_SN to Intel MKL's serial number (XXXX-XXXXXXXX)
@littleya
littleya / delugeAutoDelete.py
Last active February 20, 2024 00:39
u2@share
# -*- coding:utf-8 -*-
# !/usr/bin/env python3
'''
Author: ayasakinagi
Email: [email protected]
环境: Python3
依赖: deluge_client
使用: 修改host, port, username, password, limitSize, dataPath变量
@simonmysun
simonmysun / vs .achievement.md
Last active June 7, 2019 15:28
Visual Studio 成就系统大全,从今天起,做一个快乐的程序员,面朝成就,春暖花开!

Visual Studio 成就系统大全,从今天起,做一个快乐的程序员,面朝成就,春暖花开!

来源: 付鹏的日志

想当年WOW推出成就系统的时候,我就很不争气的沉迷了,收集了无数的宠物啊,下了无数的本啊,都是TMD痛苦回忆啊!后来WLK的时候AFK了,还挺怀念自己的5000+的成就点数的,没想到,现在微软效仿WOW,在自己的编程软件visual studio中加入了成就系统,供程序员们互相炫耀用。这必然会掀起程序员的编程上瘾的毛病,过几年也许程序员就成了精神病,需要电击了!

在这里添加上这个成就系统插件的地址:http://channel9.msdn.com/achievements/visualstudio 再附张图: 下附VS

所有成就列表:(该成就列表不全,我申请完成就系统就给了个成就,这里就没有……)彩色字体表示笔者已完成的成就,大家共勉,貌似有些成就已经不再存在于列表之中了。

@vladalive
vladalive / gdrive_download.md
Created May 16, 2019 14:38
Download Google Drive files from linux terminal via wget

Setup:

  1. Add this code to your ~/.bash_aliases file.
function gdrive_download () {
  CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
  wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
  rm -rf /tmp/cookies.txt
}
@payjscn
payjscn / payjs_check_demo.php
Created July 3, 2019 10:16
PAYJS 订单查询接口 PHP DEMO
<?php
class Payjs
{
private $url = 'https://payjs.cn/api/check';
private $key = ''; // 填写通信密钥
private $mchid = ''; // 特写商户号
public function __construct($payjs_order_id=null) {
$this->payjs_order_id = $payjs_order_id;
}