Skip to content

Instantly share code, notes, and snippets.

View NickLaMuro's full-sized avatar
:bowtie:
probably definitely most likely rebasing...

Nick LaMuro NickLaMuro

:bowtie:
probably definitely most likely rebasing...
View GitHub Profile
@NickLaMuro
NickLaMuro / .vimrc
Last active December 31, 2021 02:29 — forked from napcs/.vimrc
Set up Vim on Mac or Linux. curl https://raw.github.com/gist/1147370/vim.sh | sh
"this is the cconfiguration file for linux and mac systems
"symlink this to your home folder as .vimrc
call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles'))
call pathogen#helptags()
"call pathogen#runtime_append_all_bundles()
source ~/.vimrc_main
@NickLaMuro
NickLaMuro / Instructions.md
Created December 5, 2011 21:34
Flash on chrome for linux

This is just a quick set of instructions to install google chrome with flash for ubuntu.

###1. Install chrome

I just grabbed the install from www.google.com/chrome and installed it that way.

###2. Install the flash plugin

sudo apt-get install flashplugin-nonfree
@NickLaMuro
NickLaMuro / .tmux.conf
Created January 27, 2012 07:27
My .tmux.conf
# # act like GNU screen
unbind C-b
set -g prefix C-a
# Allow C-A a to send C-A to application
bind C-a send-prefix
# start window index of 1
set -g base-index 1
@NickLaMuro
NickLaMuro / setup.sh
Created April 2, 2012 20:07 — forked from pbyrne/setup.sh
Set Up Work Laptop
#!/bin/bash
echo "Updating Homebrew and bash completion"
brew update
echo "
# homebrew completion files for installed libraries
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
" >> ~/.bash_profile
@NickLaMuro
NickLaMuro / check_and_change_dns
Last active June 28, 2018 10:56
Dealing with Dynamic IP's with a home server and DNSimple
#!/bin/bash
EMAIL="your_email@example.com"
API_TOKEN="API_TOKEN"
DOMAIN_ID="your_domain.com"
RECORDS=(123456 234567 345678) # Replace with the Record ID
IP="`curl -s -S http://v4.ident.me`"
STORED_IP_ADDRESS_FILENAME="$HOME/.current_external_ip_address"
# Loop through each record id in the array
@NickLaMuro
NickLaMuro / .ackrc
Created March 5, 2013 19:47
My Ack config file.
--ignore-dir=cache
--ignore-dir=coverage
--ignore-dir=tmp
--ignore-dir=log
@NickLaMuro
NickLaMuro / json_aliases.sh
Last active August 29, 2015 14:17
Bash aliases/functions for parsing and viewing json
# Pretty print json in the terminal like so:
# $ echo "{'json': 'stuff'}" | json
alias json='python -mjson.tool'
# Parses json. Each arg is a level deeper in the tree:
#
# Examples
#
# echo "{'json': {'foo': 'bar'}}" | parse_json
# => {'json': {'foo': 'bar'}}
@NickLaMuro
NickLaMuro / .gitignore
Last active April 26, 2016 16:36
Ruby Default File Sorting on different Operating systems
.vagrant
@NickLaMuro
NickLaMuro / README.md
Last active July 25, 2016 16:32
Debugging bundler stalling issues

The following is a way to determine where in the codebase bundler is stalling when fetching from external sources (rubygems.org, github.com, etc.). Use this as a way to determine where in the codebase bundler is stalling when it is happening without stopping the process or requiring modifications to the source directly.

Usage

  1. Download the bundler_trap.rb script and put is somewhere easily accessible (I use the home directory in my examples).
  2. Run bundler using the following command: ruby -I~ -rbundler_trap bin/bundle update
  3. You will have to repeat step to until you get to a situation where bundler has stalled. When it does, send the INFO signal to the process (CMD+t on OSX, and on Linux, it should be kill -sINFO pid, but you might have to use a different signal).
@NickLaMuro
NickLaMuro / hawkular-metrics-admin-cluster-role.json
Last active April 27, 2017 08:15
Minishift addon for management with ManageIQ
{
"apiVersion": "v1",
"kind": "ClusterRole",
"metadata": {
"name": "hawkular-metrics-admin"
},
"rules": [
{
"apiGroups": [""],
"resources": ["hawkular-metrics","hawkular-alerts"],