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 ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"os" | |
) | |
type LogMsg struct { |
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
############################## | |
# _ | |
# | |_ _ __ ___ _ ___ __ | |
# | __| '_ ` _ \| | | \ \/ / | |
# | |_| | | | | | |_| |> < | |
# \__|_| |_| |_|\__,_/_/\_\ | |
# | |
############################# | |
# COPY AND PASTE |
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
" Load Pathogen and all bundles | |
" runtime ~/.vim/bundle/vim-pathogen/autoload/pathogen.vim | |
call pathogen#infect() | |
call pathogen#helptags() | |
" Basic goodness | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
filetype plugin on |
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 | |
# Release Manager | |
# Bumps version of project | |
# Tags the new version | |
# Produces Changelog | |
# Get Project Current Version | |
version=$(sed -n 's/.*"version": "\(.*\)",/\1/p' package.json) |
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
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name perfmanApp.directive:donut | |
* @description | |
* # donut | |
*/ | |
angular.module('perfmanApp') | |
.directive('donut', function() { |
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
'use strict'; | |
/** | |
* @ngdoc factory | |
* @name perfmanApp.Paginator | |
* @description | |
* # Paginator | |
* Factory in the perfmanApp. | |
*/ | |
angular.module('perfmanApp') |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Node Stuff | |
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH" | |
PATH="$NPM_PACKAGES/bin:$PATH" | |
# Unset manpath so we can inherit from /etc/manpath via the `manpath` | |
# command | |
unset MANPATH # delete if you already modified MANPATH elsewhere in your config |
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
-- capture screen area | |
awful.key({ modkey, "Control" }, "p", function() awful.util.spawn(".bin/capscr") end) |
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
###################### | |
# Docker Cheat Sheet # | |
###################### | |
docker build -t <username>/<repo-name> . | builds an image | |
docker run -p 80:80 --name <somename> <username>/<repo> | runs a container from this image | |
docker ps -a | shows all contains even stopped | |
docker rm <name> | removes container | |
docker rmi <id> | removes image | |
docker inspect <container-id> | grep IPAddress | cut -d '"' -f 4 | gives ip address |
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 ( | |
"flag" | |
"fmt" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/ec2" | |
) |
OlderNewer