This file contains hidden or 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" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"time" | |
) | |
type Content struct { |
This file contains hidden or 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
if [[ $(docker ps -q) ]] ; then docker kill $(docker ps -q) ; else true ; fi && if [[ $(docker ps -aq) ]] ; then docker rm $(docker ps -aq) ; else true ; fi ; sudo service docker restart |
This file contains hidden or 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
# Easy config reload | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
# vi is good | |
setw -g mode-keys vi | |
# mouse behavior | |
set -g mouse on | |
set-option -g default-terminal screen-256color |
This file contains hidden or 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
[alias] | |
a = add | |
s = status | |
b = branch | |
can = commit --amend --no-edit | |
pf = push --force | |
rewrite = "!git add . && git can && git push -f" | |
la = "!git config -l | grep alias | cut -c 7-" | |
find = "!git ls-files | grep -i" |
This file contains hidden or 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/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
This file contains hidden or 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
nginx: | |
image: tutum/nginx | |
ports: | |
- "80:80" | |
links: | |
- phpfpm | |
volumes: | |
- ./nginx/default:/etc/nginx/sites-available/default | |
- ./nginx/default:/etc/nginx/sites-enabled/default |
This file contains hidden or 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
alias fuckdock="docker stop -f $(docker ps -aq); docker rm -f $(docker ps -aq); docker rmi -f $(docker images -aq); docker system prune -a -f --volumes" |
This file contains hidden or 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
[alias] | |
a = add | |
s = status | |
b = branch | |
can = commit --amend --no-edit | |
pf = push --force | |
rewrite = "!git add . && git can && git push -f" | |
la = "!git config -l | grep alias | cut -c 7-" |
This file contains hidden or 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
alias fuckdock="docker rm --force $(docker ps -a -q) && docker rmi --force $(docker images -q)" |
This file contains hidden or 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
version: "2" | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: tracking-nginx | |
ports: | |
- "80:80" | |
volumes: | |
- .:/app |
NewerOlder