Skip to content

Instantly share code, notes, and snippets.

Nicholas Whittier imperialwicket

Block or report user

Report or block imperialwicket

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@imperialwicket
imperialwicket / nginx.conf-partial
Created Feb 19, 2014
nginx kibana config for user-specific dashboard
View nginx.conf-partial
location ~ ^/app/dashboards/default\.json.*$ {
rewrite ^/app/dashboards/default\.json(.*)$ /app/dashboards/$remote_user.json$1 break;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am imperialwicket on github.
  • I am imperialwicket (https://keybase.io/imperialwicket) on keybase.
  • I have a public key whose fingerprint is 404E 1FAF D1D0 4BA8 5022 145F 2088 41AB DEB4 B0D0

To claim this, I am signing this object:

@imperialwicket
imperialwicket / .bash_aliases
Created Feb 19, 2015
Bash alias for generating GitHub Pull Requests
View .bash_aliases
# Bash alias to generate pull requests on github.com
#
# PreRequisites:
# Create an auth token (bypasses 2 factor auth, when enabled):
# https://github.com/settings/tokens/new
#
# Use any name, something like 'pull requests' makes sense.
# Allow permissions 'repo' and 'public repo'.
# Create.
#
View netflix-asgard-iam-policy
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"autoscaling:*",
"cloudwatch:*",
"dynamodb:*",
"ec2:*",
"elasticache:*",
@imperialwicket
imperialwicket / default_results.php
Created Feb 22, 2012
Joomla 1.7 custom search results
View default_results.php
<?php
/**
* @version $Id: default_results.php 21321 2011-05-11 01:05:59Z dextercowley $
* @package Joomla.Site
* @subpackage com_search
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
@imperialwicket
imperialwicket / setup.sql
Last active Oct 4, 2015
PostgreSQL monthly table partitions
View setup.sql
--
-- DEPRECATED GIST
-- **** Moved to a repo: https://github.com/imperialwicket/postgresql-time-series-table-partitions ****
--
-- You should check the repository, this gist won't receive updates.
--
--
--
--
--
@imperialwicket
imperialwicket / useradd_hack.sh
Created Nov 6, 2012
Adds a user with key and home dir
View useradd_hack.sh
#!/bin/bash
EXPECTED=1
if [ $# -ne $EXPECTED ]
then
echo "Please provide a username argument."
exit 5
fi
@imperialwicket
imperialwicket / chicagoboss
Created Oct 12, 2012
Chicago Boss init.d
View chicagoboss
#!/bin/bash
#
# /etc/rc.d/init.d/chicagoboss
#
# Starts Chicago Boss from the /home/boss/cb_admin directory.
#
# Source function library.
. /etc/rc.d/init.d/functions
@imperialwicket
imperialwicket / openstack-python-packages.sh
Last active Dec 14, 2015
Bash script for installing the various openstack python clients and populating a file with appropriate environment variables.
View openstack-python-packages.sh
#!/bin/bash
#####################################################################
#
# openstack-python-packages.sh
#
# https://gist.github.com/imperialWicket
#
# This scripts automates much of getting started process for
# openstack cli installation (python clients). Pip is required for
# this script to work, and also Python 2.x (x > 6). Pip presence is
@imperialwicket
imperialwicket / s3-s3cmd-sync-dated-dirs.sh
Last active Dec 15, 2015
Bash script for syncing portions of s3 bucket based on dated directory structures.
View s3-s3cmd-sync-dated-dirs.sh
#!/bin/bash
##################################################
#
# s3-s3cmd-sync-dated-dirs.sh
#
# Easily download content in dated directory
# structures from s3.
#
#
# https://gist.github.com/imperialWicket
You can’t perform that action at this time.