Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Gibbons rtgibbons

View GitHub Profile
@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 {
@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.
@rtgibbons
rtgibbons / oc
Last active Apr 21, 2020
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 / updateblacklist.sh
Last active Feb 15, 2016
Synology script to update blacklist for DNSServer (based on bind9)
View updateblacklist.sh
#!/bin/sh
# Name: updateblacklist.sh
# Author: Ryan Gibbons <rtgibbons23@gmail.com
# Date: 20160214
# Description: Updated a blacklist data file for Bind that will point a null zone to route each domain to 0.0.0.0
# Inspiration and Thanks:
# * http://www.wilderssecurity.com/threads/a-script-for-updating-your-hosts-file.343978/
# * http://someonewhocares.org/hosts/
# * http://pgl.yoyo.org/adservers/
# * http://winhelp2002.mvps.org/
@rtgibbons
rtgibbons / ap.sh
Created Nov 24, 2014
Apache memory usage
View ap.sh
ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}'
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 ASAzoB4SY-AgoFVov_LFDYqeJ7LTUrf6kf6rG4KS8SCFYwo

To claim this, I am signing this object:

@rtgibbons
rtgibbons / post_test.js
Last active Oct 1, 2015
mocha test on Keystone Model
View post_test.js
process.env.NODE_ENV = process.env.NODE_ENV || 'test';
require('dotenv').load();
var keystone = require('keystone');
var chai = require('chai');
var dbURI = process.env.MONGO_URL
keystone.init({
'name': 'Post Model Test',
's3 config': {} //has to be set, but isn't used in our models
You can’t perform that action at this time.