Skip to content

Instantly share code, notes, and snippets.

View danielballan's full-sized avatar

Dan Allan danielballan

View GitHub Profile
@danielballan
danielballan / gist:34dbecba1699df3dacd2
Created July 4, 2015 14:11
tmpnb docker logs 2015-07-04
[E 150704 13:56:47 spawnpool:421] Unable to list existing proxy entries: HTTP 403: Forbidden
[W 150704 13:56:56 dockworker:100] [u'Your kernel does not support swap limit capabilities. Limitation discarded.']
[I 150704 13:56:56 dockworker:103] Created container 9e67a4ad18add80ed450032670822d1337c096aec15f37f00a0e47bcb7ad3bd8
[W 150704 13:56:56 dockworker:100] [u'Your kernel does not support swap limit capabilities. Limitation discarded.']
[I 150704 13:56:56 dockworker:103] Created container b9ebbde4fb5257dc90949f54e15b4cb97fce7e67ceb5147c5da6f7899ef5dc0b
[W 150704 13:56:56 dockworker:100] [u'Your kernel does not support swap limit capabilities. Limitation discarded.']
[I 150704 13:56:56 dockworker:103] Created container 4f63075a3e05fdc16e38f58ff57db6c5ad1e887f3f6bf0168a78a3d57134997c
[W 150704 13:56:57 dockworker:100] [u'Your kernel does not support swap limit capabilities. Limitation discarded.']
[I 150704 13:56:57 dockworker:103] Created container 8d25a9093a8a1f5500f9fd7fd4060c4f655fa265f77d2c3c417ae991e262
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danielballan
danielballan / gist:389738026b5e0de02f0c
Last active August 29, 2015 14:25
to snake or not to snake
In [42]: x = cycler('x', [1,2,3])
In [43]: y = cycler('y', [1,2])
In [44]: list(bss.snake_cyclers([y, x], [False, True]))
Out[44]:
[{'x': 1, 'y': 1},
{'x': 2, 'y': 1},
{'x': 3, 'y': 1},
{'x': 3, 'y': 2},
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danielballan
danielballan / install.sh
Last active July 19, 2016 19:27
Jupyterhub Installation Procedure at Brookhaven National Lab NSLS-II
echo "deb http://mirror.cs.nsls2.local/debian wheezy-backports main" >> /etc/apt/sources.list.d/backports.list
aptitude -t wheezy-backports install nodejs
update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100
wget https://www.npmjs.org/install.sh
sh install.sh
node -v
npm -v
npm config set proxy http://proxy:8888
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
# Usage:
# sudo su
# export https_proxy=proxy:8888
# wget https://gist.githubusercontent.com/danielballan/c02c17f92650e21488a3/raw -O setup_conda.sh
# chmod +x setup_conda.sh
# rm -rf ~/.conda
# rm ~/.condarc
# ./setup_conda.sh