Skip to content

Instantly share code, notes, and snippets.

@ylorn
ylorn / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ylorn
ylorn / Karabiner_change_input.xml
Last active August 29, 2015 14:21
single tap right shift to simulate command + space to select previous input method, however holding right shift still remain the modifier key.
<?xml version="1.0"?>
<root>
<inputsourcedef>
<name>MY_CHINESE</name>
<inputsourceid_prefix>
com.apple.inputmethod.SCIM.ITABC
</inputsourceid_prefix>
</inputsourcedef>
<inputsourcedef>
<name>MY_ENGLISH</name>
# troy at 164.218.21.198.tigernet.wifi.dyn.clemson.edu in ~ [15:00:02]
$ lxd 442864210085120 442864209822976 442864209167616 442864208774400 442864208643328 442864207922432 442864207791360 442864207398144
菅野洋子.-.[攻壳机动队.-.STAND.ALONE.COMPLEX.be.Human].专辑.(APE).iso ...
Traceback (most recent call last):
File "/Users/troy/xunlei-lixian/lixian_cli.py", line 63, in <module>
execute_command()
File "/Users/troy/xunlei-lixian/lixian_cli.py", line 60, in execute_command
commands[command](args[1:])
File "/Users/troy/xunlei-lixian/lixian_cli_parser.py", line 165, in parse
return f(parser(args_list, *args, **kwargs))
# troy at 164.218.21.198.tigernet.wifi.dyn.clemson.edu in ~ [15:17:28]
$ ps aux|grep aria2c
root 92 7.8 0.3 2464048 21292 ?? Ss 2:58PM 0:20.59 /usr/local/Cellar/aria2/1.18.5/bin/aria2c --conf-path=/Users/troy/.aria2/aria2.conf
troy 990 0.0 0.0 2442000 632 s000 S+ 3:17PM 0:00.00 grep aria2c
set theExtensions to {"jpg", "png", "gif", "jpeg"}
set userAgent to "[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9]"
set theUrl to "http://people.cs.clemson.edu/~zhaoyul/development/imageshack/tempIS.php"
set theResponses to {}
tell application "Finder"
set selectedFiles to selection
set fileNum to number of items in selectedFiles
set oldDelims to AppleScript's text item delimiters