start new:
tmux
start new with session name:
tmux new -s myname
icyleaf's atom settings, automatic update by sync-settings
| for file in $(ls *.tar); do | |
| echo "load $file" | |
| docker load -i $file | |
| done |
| image = MiniMagick::Image.open('source.jpg') | |
| image.colorspace 'gray' | |
| pixels = image.get_pixels | |
| 0.upto(image.height - 1) do |y| | |
| image.combine_options do |c| | |
| 0.upto(image.width - 1) do |x| | |
| color = pixels[y][x][0] |
| #include <netdb.h> | |
| #include <ifaddrs.h> | |
| #include <arpa/inet.h> | |
| + (NSArray *)loopUpIPAddress:(NSURL *)url { | |
| NSMutableArray *ipAddrs = [[NSMutableArray alloc] init]; | |
| char **pptr; | |
| struct hostent *_host = gethostbyname([[url host] UTF8String]); | |
| pptr = _host->h_addr_list; |
| [ | |
| { | |
| "backcolor": "#222222", | |
| "name": "Wanyoo yKeyboard 78 key", | |
| "author": "icyleaf", | |
| "pcb": false | |
| }, | |
| [ | |
| { | |
| "c": "#282828", |
| # 获取 apk 的证书 | |
| keytool -list -printcert -jarfile app.apk | |
| # 获取 apk 解包后 CERT.{RSA|DSA} 的证书 | |
| keytool -printcert -file app/META-INF/CERT.{RSA|DSA} | |
| # 获取 keystore 的证书 | |
| keytool -list -keystore app.keystore -storepass {password} |