Skip to content

Instantly share code, notes, and snippets.

Ryan Gibbons rtgibbons

Block or report user

Report or block rtgibbons

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
@rtgibbons
rtgibbons / logger.js
Created Nov 7, 2013
Logger Library with winston
View logger.js
var app = require(process.cwd() + '/app');
var winston = require('winston');
var _ = require('lodash');
// Set up logger
var customColors = {
trace: 'white',
debug: 'green',
info: 'green',
warn: 'yellow',
@rtgibbons
rtgibbons / VBoxReloadKext.sh
Created Mar 12, 2012 — forked from timdream/VBoxReloadKext.sh
Script: reload VirtualBox kernel extension in Mac OS X
View VBoxReloadKext.sh
#!/bin/bash
unload() {
kextstat | grep "org.virtualbox.kext.VBoxUSB" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxUSB
kextstat | grep "org.virtualbox.kext.VBoxNetFlt" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetFlt
kextstat | grep "org.virtualbox.kext.VBoxNetAdp" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetAdp
kextstat | grep "org.virtualbox.kext.VBoxDrv" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxDrv
}
load() {
@rtgibbons
rtgibbons / oc
Last active Jul 28, 2019
Openconnect init script
View oc
#! /bin/bash
### BEGIN INIT INFO
# Provides: openconnect
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Basic script to connect to a SSL VPN using Openconnect
### END INIT INFO
@rtgibbons
rtgibbons / userChrome.css
Last active Feb 18, 2019
Firefox Mojave Dark titlebar w/out tabs
View userChrome.css
/* hide tabs in toolbar */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
/* clean up borders and color without tabs*/
#navigator-toolbox {
View keybase.md

Keybase proof

I hereby claim:

  • I am rtgibbons on github.
  • I am rtgibbons (https://keybase.io/rtgibbons) on keybase.
  • I have a public key ASBS_82vQzMsuFT-RjcA8o7rkrYF1a77jxxX1wr1kCMYdgo

To claim this, I am signing this object:

@rtgibbons
rtgibbons / mms-agent.sh
Created Nov 23, 2011
Centos init.d for mms-agent from 10Gen
View mms-agent.sh
#!/bin/bash
#
# /etc/rc.d/init.d/mms-agent
#
# 10Gen Mongod montiroing service
# must edit the settings.py first and edit this file with the location of agent.py
#
# description: 10Gen monitoring service - need ot fix pid so we can shut it down
# chkconfig: - 90 10
@rtgibbons
rtgibbons / DigiCertGlobalRootCA.pem
Created Nov 4, 2016
Digitcert Global - Place in /opt/.cisco/certificates/ca/DigiCertGlobalRootCA.pem
View DigiCertGlobalRootCA.pem
-----BEGIN CERTIFICATE-----
MIIElDCCA3ygAwIBAgIQAf2j627KdciIQ4tyS8+8kTANBgkqhkiG9w0BAQsFADBh
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD
QTAeFw0xMzAzMDgxMjAwMDBaFw0yMzAzMDgxMjAwMDBaME0xCzAJBgNVBAYTAlVT
MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxJzAlBgNVBAMTHkRpZ2lDZXJ0IFNIQTIg
U2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
ANyuWJBNwcQwFZA1W248ghX1LFy949v/cUP6ZCWA1O4Yok3wZtAKc24RmDYXZK83
nf36QYSvx6+M/hpzTc8zl5CilodTgyu5pnVILR1WN3vaMTIa16yrBvSqXUu3R0bd
KpPDkC55gIDvEwRqFDu1m5K+wgdlTvza/P96rtxcflUxDOg5B6TXvi/TC2rSsd9f
@rtgibbons
rtgibbons / custom-search-acf-wordpress.php
Created Oct 10, 2016 — forked from charleslouis/custom-search-acf-wordpress.php
PHP - Wordpress - Search - wordpress custom search function that encompasses ACF/advanced custom fields and taxonomies and split expression before request
View custom-search-acf-wordpress.php
<?php
/**
* [list_searcheable_acf list all the custom fields we want to include in our search query]
* @return [array] [list of custom fields]
*/
function list_searcheable_acf(){
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF");
return $list_searcheable_acf;
}
@rtgibbons
rtgibbons / # macvim - 2016-03-29_21-37-33.txt
Created Mar 30, 2016
macvim on OS X 10.11.4 - Homebrew build logs
View # macvim - 2016-03-29_21-37-33.txt
Homebrew build logs for macvim on OS X 10.11.4
Build date: 2016-03-29 21:37:33
@rtgibbons
rtgibbons / supervisord.sh
Created Mar 12, 2016
supervisors init script from centos6
View supervisord.sh
#!/bin/bash
#
# supervisord This scripts turns supervisord on
#
# Author: Mike McGrath <mmcgrath@redhat.com> (based off yumupdatesd)
#
# chkconfig: - 95 04
#
# description: supervisor is a process control utility. It has a web based
# xmlrpc interface as well as a few other nifty features.
You can’t perform that action at this time.