View okta-for-vpn.sh
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
# Add to .profile / .zprofile | |
# Requires 1Password CLI v2 https://app-updates.agilebits.com/product_history/CLI2 | |
# To setup: op account add | |
# | |
# Change ITEM to choose where 1Password looks | |
# | |
op-clip-okta() { | |
ITEM="Okta" | |
echo "Fetching ${ITEM} OTP from 1Password" |
View xmas-lights-1.ino
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
#include <FastLED.h> | |
#include <MicroView.h> | |
#include <RBD_Timer.h> | |
#include <RBD_Button.h> | |
FASTLED_USING_NAMESPACE | |
// FastLED "100-lines-of-code" demo reel, showing just a few | |
// of the kinds of animation patterns you can quickly and easily | |
// compose using FastLED. |
View squid.conf
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
# The user name and group name Squid will operate as | |
cache_effective_user httpdusr | |
cache_effective_group everyone | |
# | |
# Recommended minimum configuration: | |
# | |
# Auth Method | |
#auth_param basic program /share/MD0_DATA/.qpkg/Squid/opt/libexec/squid/ncsa_auth /etc/shadow | |
#auth_param basic children 5 |
View iscsi-removal.txt
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
df ; echo ; pvs | |
vgchange --available n VolGroupBackUps | |
multipath -ll | |
multipath -f mpath2 | |
/etc/init.d/multipathd stop | |
chkconfig multipathd off | |
iscsiadm -m node |
View ubuntu-fixup.sh
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 | |
set -ex | |
wget -O /etc/apt/sources.list https://gist.github.com/benders/8426266/raw/b4969acb524ba727b64cf8eaee7a6a31be8ae6fb/precise-sources.list | |
apt-get update | |
wget -O /tmp/pe3-install.sh https://gist.github.com/benders/8426266/raw/b1d4c9b6ea41839b74842f05f2ae9efba7a10394/ubuntu-pe-3-install.sh |
View delayed_job_classifier.sql
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
SELECT | |
count(*) as count, priority, object, method from ( | |
SELECT | |
@load_start := LOCATE('object: LOAD;', handler), | |
@method_start := LOCATE('method: ', handler) + 9, | |
@method_end := LOCATE('args:', handler) - 1, | |
IF(@load_start, | |
@object_start := @load_start + 13, | |
@object_start := LOCATE('object: !ruby/object:', handler) + 21 | |
), |
View config.ru
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
# Oh ho ho, let's see if we can have some fun with the Ruby Agent - Nic 2013-10-18 | |
require 'rubygems' | |
require 'newrelic_rpm' | |
require 'new_relic/agent/instrumentation/rack' | |
# END monkey-business | |
# A "config.ru", for use with every Rack-compatible webserver. | |
# SSL needs to be handled outside this, though. | |
$0 = "master" |
View new-employee-setup.txt
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
Repair Homebrew permissions | |
sudo chmod g+w /usr/local/ | |
Put Chrome and Firefox on dock | |
Download and Install | |
TextMate | |
GitX | |
Run TextMate and setup terminal helper in /usr/local/bin |
View git-setup.sh
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
FULLNAME=`finger "$USER" | awk -F: '{ print $3 }' | head -n1 | sed 's/^ //'` | |
# Git needs to know who you are! | |
git config --global user.name "${FULLNAME}" | |
git config --global user.email "${USER}@newrelic.com" | |
# SVN style shortcuts | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout |
View cisco-asa-config.txt
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
! -------------------------------------------------------------------------------- | |
! This example configuration shows what WE did to get Amazon VPC working with our | |
! ASAs. We use version 8.3(1). This config has not been reviewed or otherwise | |
! blessed in any way by anyone at Amazon. YMMV. | |
! | |
! It differs from Amazon's supplied config by using two different sets of | |
! crypto maps and ACLs, so it brings both tunnels up simultaneously. | |
! | |
! For the purposes of the example, the physical datacenter network is 172.16.1.0/24 | |
! and the VPC is 10.0.0.0/16. |
NewerOlder