Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
PREFIX=projectA #adjust this | |
TAB=$'\t' | |
git filter-branch --index-filter ' | |
git ls-files -s | | |
sed "s,${TAB},&"$PREFIX"/," | | |
GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && | |
mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE | |
' HEAD |
#!/bin/sh | |
osascript <<EOF | |
tell application "Terminal" | |
activate | |
set _tab to do script "telnet 127.0.0.1 2001 ; exit" | |
delay 1 | |
repeat while _tab exists | |
delay 1 | |
end repeat |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
" Plugins begin | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' |
# subcommunities.py | |
import sys | |
sys.modules['__main__'].__dict__.update({ | |
'PyCon': type('PyCon', (object,), {}), | |
'numpy': type('numpy', (object,), {'infty': 'foo'}), | |
'pythonistas': type('Foo', (object,), {'enjoy': lambda x: x, 'fun': 'foo'}) | |
}) | |
sys.modules['subcommunities'] = list() | |
sys.modules['numpy.nifty'] = 'foo' |
import time | |
import random | |
# fill the input list | |
a = [random.randrange(0,130) for x in range(10**6)] | |
# std sort, keep a unsorted | |
t = time.time() | |
b = sorted(a) | |
print(time.time() - t) |
Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
import boto.ses | |
from collections import defaultdict | |
REGION='us-east-1' | |
AWS_KEY='YOUR_KEY' | |
AWS_SECRET='YOUR_SECRET' | |
def main(): | |
cses = boto.ses.connect_to_region(REGION, aws_access_key_id=AWS_KEY, aws_secret_access_key=AWS_SECRET) | |
send_statistics = cses.get_send_statistics() |
import metric_pb2 | |
from google.protobuf.internal.encoder import _VarintBytes | |
from google.protobuf.internal.decoder import _DecodeVarint32 | |
import timeit | |
import random | |
from functools import partial | |
import io | |
N_RUNS = 10 |
I hereby claim:
To claim this, I am signing this object:
name: datadog-agent | |
channels: !!python/tuple | |
- !!python/unicode | |
'defaults' | |
dependencies: | |
- enum34=1.1.6 | |
- openssl=1.0.2j | |
- pip=8.1.2 | |
- pycosat=0.6.1 | |
- pycrypto=2.6.1 |