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
#!/bin/bash -e | |
docker ps -a -q | xargs docker rm | |
docker images | grep '^<none>' | awk '{print $3}' | xargs docker rmi |
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
for v in $(xargs --null --max-args=1 < /proc/1/environ); do export $v; done |
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
brew install python --framework | |
mkdir ~/Library/Frameworks/ | |
cd ~/Library/Frameworks/ | |
ln -s /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework . | |
brew install -v https://gist.github.com/satyrius/1635076/raw/vim.rb |
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
cd $HOME | |
git clone git@github.com:satyrius/dotfiles.git .dotfiles | |
cd .dotfiles | |
for f in $(ls); do df="../.$f"; rm $df; ln -s "$(pwd)/$f" $df; done; | |
cd $HOME | |
rm .README.dm |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := 1.0 | |
for i := 1; i <= 10; i++ { |
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
package main | |
import ( | |
"fmt" | |
"math" | |
"math/cmplx" | |
) | |
func Cbrt(x complex128) complex128 { | |
z := complex128(1) |
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
set-window-option -g mode-keys vi | |
set-option -g status-keys vi | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# title | |
set -g set-titles on | |
set -g set-titles-string "#T" |
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 debian:jessie | |
ENV PYENV_ROOT=/opt/pyenv PATH=/opt/pyenv/shims:/opt/pyenv/bin:$PATH LANG=en_US.UTF-8 | |
RUN set -x \ | |
&& echo "LANG=$LANG" > /etc/default/locale \ | |
&& echo "$LANG UTF-8" > /etc/locale.gen \ | |
&& export DEBIAN_FRONTEND=noninteractive \ | |
&& apt-get update -qq \ | |
&& apt-get install -y locales \ | |
&& apt-get install -y \ | |
libpq5 \ |
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
0x65BAC2D81034ac52523fB88EfB62C2a888A756c4 |
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
package main | |
import "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
var a, b int | |
return func() int { | |
a, b = b, a + b |
OlderNewer