- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
This file contains 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
# Add the package repositories | |
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) | |
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - | |
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list |
I hereby claim:
- I am duobei on github.
- I am duobei (https://keybase.io/duobei) on keybase.
- I have a public key whose fingerprint is 3A54 C8B2 58B3 D2DC BA4A 368E 2366 BF91 E0A1 8268
To claim this, I am signing this object:
This file contains 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
from sre_parse import Pattern, SubPattern, parse as sre_parse | |
from sre_compile import compile as sre_compile | |
from sre_constants import BRANCH, SUBPATTERN | |
class Scanner(object): | |
def __init__(self, tokens, flags=0): | |
subpatterns = [] | |
pat = Pattern() |
This is a Quick Guide to deploy OpenStack IceHouse on top of Ubuntu 14.04, it is IPv6-Ready!
It is compliant with OpenStack's official documentation (docs.openstack.org).
The tenant's subnets are based on Neutron, with ML2 plugin and Single Flat Network
topology, dual-stacked.
The Single Flat Network
is the simplest network topology supported by OpenStack (I think). So, it is easier to understand and follow.
This file contains 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
// from http://www.nowamagic.net/librarys/veda/detail/802 | |
// 简单版 | |
function dump_obj(aObject) { | |
var s = ""; | |
for (var property in aObject) { | |
s = s + "\n " + property + ": " + aObject[property]; | |
} | |
alert(s); | |
} |
-
gcc -M hello.c
可以得到某文件依赖的头文件。 -
grep processor /proc/cpu_info
显示当前的CPU数目 -
sudo shutdown -r now
重启机器 -
sshfs yourname@host:/path/to/your/dir ~/local
sshfs挂载到本地 -
sudo -u fleuria bash
: 切换用户
This file contains 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
python -m SimpleHTTPServer 8000 |
This file contains 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
ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) | |
if ROOT_PATH not in sys.path: | |
sys.path.append(ROOT_PATH) | |
sys.path.insert(0,ROOT_PATH); |
NewerOlder