Skip to content

Instantly share code, notes, and snippets.

View lisposter's full-sized avatar

Leigh lisposter

View GitHub Profile
# 31 Mar 2018 at 17:00
[SERVER]
[SOURCE]
// ==UserScript==
// @name btdigg.org bulk copy
// @namespace http://zhu.li/
// @version 0.1
// @description fast select and copy magnet
// @author Leigh Zhu
// @match http://btdigg.org/search?*
// @grant none
// ==/UserScript==
@lisposter
lisposter / redmine.userscript.js
Created April 17, 2015 04:40
redmine.userscript.js
// ==UserScript==
// @name Redmine
// @namespace http://zhu.li/
// @version 0.1.0
// @description add some useful quick links
// @author Leigh Zhu
// @match http://redmine.yourcompany.com/my/page
// @grant none
// ==/UserScript==
@lisposter
lisposter / china.json
Last active January 5, 2016 08:17
json data for provinces, cities and counties, grabed and converted from http://passport.baidu.com/js/sitedata_bas.js
[{
"name": "请选择",
"sub": [{
"name": "请选择"
}],
"type": 1
}, {
"name": "北京",
"sub": [{
"name": "请选择"
@lisposter
lisposter / weekly report.scpt
Created August 13, 2014 05:35
OF to markdown
(*
OmniFocus Markdown Report Generator v 0.9
Generate a nice markdown report of what you've done over a period of time in OmniFocus. Can be set to ignore folders, and tweak the scope of reporting.
Maybe future versions will make it easier to tweak formatting and data scraping from the OF database
*)
on run
tell application "OmniFocus"
@lisposter
lisposter / ps.conf
Created June 6, 2014 09:01
playstation-dnsmasq-cn-main-land
server=/amazon.com/168.95.192.1
server=/images-amazon.com/168.95.192.1
address=/ecx.images-amazon.com/219.76.10.152
address=/ec2.images-amazon.com/219.76.10.152
address=/g-ec2.images-amazon.com/203.69.113.33
address=/g-ecx.images-amazon.com/203.69.113.33
address=/z-ecx.images-amazon.com/203.69.113.56
address=/www.ign.com/63.219.18.168

To run this, you can try:

curl -ks https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh

'adelle','Georgia', 'Hiragino Sans GB',Arial,'STXihei', 'Microsoft YaHei', sans-serif;
@lisposter
lisposter / new file auto open
Created August 6, 2013 03:48
hexo 新建文章自动调用sublime打开文件 放置于 script 目录中即可
var spawn = require('child_process').spawn;
hexo.on('new', function(target){
spawn('sublime', [target]);
});
<!-- Markdown for sublime-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>