Skip to content

Instantly share code, notes, and snippets.

View stevenmirabito's full-sized avatar

Steven Mirabito stevenmirabito

View GitHub Profile
@stevenmirabito
stevenmirabito / userChrome.css
Last active August 13, 2022 19:32
Firefox Quantum chrome overrides for tree tabs
#TabsToolbar {
height: 32px;
}
#TabsToolbar > .toolbar-items,
#TabsToolbar > .titlebar-spacer {
visibility: hidden
}
#nav-bar {
var express = require('express');
var passport = require('passport');
var Strategy = require('passport-openidconnect').Strategy;
// Configure the OpenID Connect strategy for use by Passport.
//
// OAuth 2.0-based strategies require a `verify` function which receives the
// credential (`accessToken`) for accessing APIs on the user's behalf, along
// with the user's profile. The function must invoke `cb` with a user object,
### Keybase proof
I hereby claim:
* I am stevenmirabito on github.
* I am stevenmirabito (https://keybase.io/stevenmirabito) on keybase.
* I have a public key ASCTBupal6klr2EWt2JHI9AIWn_z7AO7jK5WUWvgIBHc8go
To claim this, I am signing this object:
#!/bin/bash
# Network Namespace Manager
# Author: Steven Mirabito ([email protected])
# Must run as root to manage namespaces
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
@stevenmirabito
stevenmirabito / cloud9.sh
Last active July 21, 2016 19:19
Cloud9 IDE Launcher/Management Script
#!/bin/bash
# Cloud9 IDE Launcher
# Author: Steven Mirabito ([email protected])
# Configuration
C9_IP=127.0.0.1
C9_PORT=8080
C9_HOME=$HOME/.c9
C9_APPDIR=$HOME/.cloud9
#!/bin/bash
# Asterisk System Recording Tester
# Author: Steven Mirabito ([email protected])
# Usage
usage () {
echo "Calls the desired extension and plays an Asterisk system recording."
echo "Usage: record-test -e <extension> -r <recording> [-e language]"
exit
}
#!/bin/bash
# CS2 Lab Git Repo Creation Script
# Author: Steven Mirabito ([email protected])
# Server
CS_SERVER="orbison.cs.rit.edu"
# Username
CS_USER="stm4445"
@stevenmirabito
stevenmirabito / owncloud-nginx-pretty-urls.conf
Last active April 2, 2018 13:11
Nginx configuration for ownCloud with support for URL rewriting (https://github.com/owncloud/core/pull/14081)
upstream php-fpm {
# Path to PHP-FPM socket
server unix:/var/run/php-fpm/php-fpm.sock;
}
server {
# Listen on port 80 for non-SSL connections
listen 80;
server_name YOURDOMAIN.XYZ;
@stevenmirabito
stevenmirabito / lesu.sh
Last active June 13, 2016 01:50
Let's Encrypt Setup Utility designed for use on a server running VestaCP (https://vestacp.com/) but can be easily modified for use in other environments.
#!/bin/bash
# Let's Encrypt Setup Utility
# Author: Steven Mirabito <[email protected]>
letsencrypt_path=/bin/letsencrypt
webroot_template='/home/USER/web/DOMAIN/public_html'
proxy_webroot_template='/home/USER/web/DOMAIN/public_html/static'
cert_path_template='/home/USER/conf/web/ssl.DOMAIN'
account_email='[email protected]'
@stevenmirabito
stevenmirabito / broadcom-wl-dkms.sh
Last active January 5, 2023 19:26
Installs the broadcom-wl kernel module with DKMS
#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <[email protected]>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)