This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # for ssh | |
| alias sshj='ssh root@120.25.104.45' | |
| alias sshw='ssh root@121.41.26.86' | |
| alias sshr='ssh msbox@tv.haly12333.org.cn' | |
| # for git | |
| alias pull='git pull origin master' | |
| alias push='git push origin master' | |
| alias gst='git status' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $mem = new Memcached(); | |
| $mem->addServer('127.0.0.1', 11211); | |
| $key = 'time'; | |
| $date=date('Y-m-d H-i-s'); | |
| var_dump($mem->get($key)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash/env python | |
| class MyObj: | |
| class_var = 1 | |
| if __name__ == '__main__': | |
| a = MyObj() | |
| print(a.class_var) # 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface NSDictionary (QueryStringBuilder) | |
| - (NSString *)queryString; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int b[] = {1,2,3,4,5}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #encoding=utf8 | |
| import json | |
| import os | |
| import re | |
| import sys | |
| from urllib import request | |
| from datetime import datetime | |
| debug=1 |