Skip to content

Instantly share code, notes, and snippets.

View byronmansfield's full-sized avatar

Byron Mansfield byronmansfield

View GitHub Profile
@byronmansfield
byronmansfield / mac-install-from-src-gist-list
Last active January 12, 2020 16:52
List of all install from source gists for Mac OS X
# List of gists for tools I can install from source on mac without having to use homebrew (brew)
# coreutils - replaces `brew install coreutils`
https://gist.github.com/byronmansfield/86b81101930bfe027c641a2c11e152e8
# binutils - replaces `brew install binutils`
https://gist.github.com/byronmansfield/f32f55e58fc731c3d4215aa44f970226
# CMake - replaces `brew install cmake`
https://gist.github.com/byronmansfield/d2ca956cb3ee7c67d8d02c2b0db1c803
@byronmansfield
byronmansfield / install_tmux_osx_no_brew
Created March 28, 2017 02:18 — forked from Fi5t/install_tmux_osx_no_brew
Install tmux on OSX WITHOUT brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
# Extract them
tar xzf tmux-2.3.tar.gz
@byronmansfield
byronmansfield / keybase.md
Created March 3, 2016 06:42
keybase proof

Keybase proof

I hereby claim:

  • I am byronmansfield on github.
  • I am bmansfield (https://keybase.io/bmansfield) on keybase.
  • I have a public key ASBwyvTJtQlh_F745fedyNZmOCrQQ-v-wtdjtJWY0uOa6Ao

To claim this, I am signing this object:

@byronmansfield
byronmansfield / pointer.go
Last active January 23, 2016 22:07
Go pointer example
package main
func main() {
msg := "Hello from Golang"
greet(msg)
println(msg)
greetPrt(&msg)
println(msg)
@byronmansfield
byronmansfield / main.go
Created January 17, 2016 19:40
refactor aws-ec2 main
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"
)
@byronmansfield
byronmansfield / docker-cheatsheet
Last active February 27, 2016 18:11
docker-cheatsheet
######################
# 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
@byronmansfield
byronmansfield / awesomeConfig
Created October 31, 2015 02:42 — forked from drGrove/awesomeConfig
Capscr [awesome]
-- capture screen area
awful.key({ modkey, "Control" }, "p", function() awful.util.spawn(".bin/capscr") end)
@byronmansfield
byronmansfield / .zshrc
Created August 2, 2015 20:37
My .zshrc
# 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
@byronmansfield
byronmansfield / paginator.js
Last active August 29, 2015 14:23
Angular Pagination Factory
'use strict';
/**
* @ngdoc factory
* @name perfmanApp.Paginator
* @description
* # Paginator
* Factory in the perfmanApp.
*/
angular.module('perfmanApp')
@byronmansfield
byronmansfield / donut.js
Last active August 29, 2015 14:23
Angular Directive for top 5 D3 Donut Chart with Legend
'use strict';
/**
* @ngdoc directive
* @name perfmanApp.directive:donut
* @description
* # donut
*/
angular.module('perfmanApp')
.directive('donut', function() {