This is pretty cool
def perl:
print "Rocks"
# Setup keys for ssh'ing into the LXC containers | |
su stackato -c "ssh-keygen -t rsa -N '' -f /home/stackato/.ssh/id_rsa > /dev/null" | |
ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa > /dev/null | |
cat /home/stackato/.ssh/id_rsa.pub | tee --append /home/stackato/.ssh/authorized_keys > /dev/null | |
cat /root/.ssh/id_rsa.pub | tee --append /home/stackato/.ssh/authorized_keys > /dev/null | |
chown stackato:stackato /home/stackato/.ssh/authorized_keys | |
chmod 600 /home/stackato/.ssh/authorized_keys | |
ifconfig | perl -MXXX -e '$t=do{local$/;<>};@m=split/^(\S+)(?::|\s\s+)/m,$t;shift(@m);for($i=0;$i<@m;$i+=2){next if$m[$i]=~/^(lo|ppp)/;next unless$m[$i+1]=~/inet (addr:)?\d/;print$m[$i];last}' |
free -m | |
total used free shared buffers cached | |
Mem: 7799 7539 260 0 241 6060 | |
-/+ buffers/cache: 1237 6561 | |
Swap: 7986 0 7986 |
vm_stat | perl -0e '($t=<>)=~/(\d+)\s+bytes.*Pages free:\s+(\d+).*Pages active:\s+(\d+)/s or die; print($1*($2+$3)/1024)' |
ingy@thinkingy:~/tty.js$ npm install | |
npm WARN publish-everything [email protected] Adding entire directory to tarball. Please add a | |
npm WARN publish-everything [email protected] .npmignore or specify a 'files' array in the package.json | |
node-waf configure build | |
Checking for program g++ or c++ : not found | |
Checking for program icpc : not found | |
Checking for program c++ : not found | |
/home/ingy/.node_libraries/.npm/ws/0.4.12/package/wscript:20: error: could not configure a cxx compiler! | |
make: *** [all] Error 1 | |
npm ERR! install failed Error: [email protected] preinstall: `make` |
ingy@thinkingy:~/tty.js$ npm install | |
node-waf configure build | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for node path : ok /home/ingy/.node_libraries | |
Checking for node prefix : ok /usr | |
'configure' finished successfully (0.282s) |
$ git branch -a | |
console | |
develop | |
* master | |
remotes/origin/92626_pip_e | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/console | |
remotes/origin/develop | |
remotes/origin/django_custom_settings | |
remotes/origin/heroku |
$ gbr -a | |
develop | |
* master | |
remotes/origin/92626_pip_e | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/console | |
remotes/origin/develop | |
remotes/origin/django_custom_settings | |
remotes/origin/master |
Change this: | |
- name: store | |
rest: /info | |
view: empty | |
To something like this: | |
- name: store | |
rest: |