Skip to content

Instantly share code, notes, and snippets.

View rtgibbons's full-sized avatar

Ryan Gibbons rtgibbons

View GitHub Profile
@rtgibbons
rtgibbons / userChrome.css
Created April 20, 2021 16:19
userChrome for Tree Style Tabs on Firefox 89 - Removes tabs on top and colors to dark mode
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#sidebar-box[sidebarcommand=treestyletab_piro_sakura_ne_jp-sidebar-action] #sidebar-header {
display: none
@rtgibbons
rtgibbons / userChrome.css
Last active February 18, 2019 17:23
Firefox Mojave Dark titlebar w/out tabs
/* 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 November 4, 2016 15:31
Digitcert Global - Place in /opt/.cisco/certificates/ca/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 October 10, 2016 02:40 — 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
<?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 March 30, 2016 02:41
macvim on OS X 10.11.4 - Homebrew build logs
Homebrew build logs for macvim on OS X 10.11.4
Build date: 2016-03-29 21:37:33
@rtgibbons
rtgibbons / supervisord.sh
Created March 12, 2016 17:51
supervisors init script from centos6
#!/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 February 3, 2022 23:03
Openconnect init script
#! /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 February 17, 2023 14:29
Synology script to update blacklist for DNSServer (based on bind9)
#!/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 November 24, 2014 17:58
Apache memory usage
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)}'

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: