Skip to content

Instantly share code, notes, and snippets.

Reuben Cummings reubano

Block or report user

Report or block reubano

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
bobpaul /
Created Mar 20, 2018
An example showing how to use getopt
#!/usr/bin/env bash
# Time-stamp: <2017-04-27 09:57:21 kmodi>
# Time-stamp: <2018-03-20 12:58:02 bobpaul>
# derived from kmodi's gist:
# Example of using getopt to parse command line options
# Limitation: All the options
# starting with - have to be listed in --options/--longoptions, else getopt will
# error out.
# The downside is that if you intend to use this as a wrapper to some other program,
#!/usr/bin/env bash
# Install Xcode Command Line Tools.
xcode-select --install
# Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL"
# Install brew basics (auto-updating).
brew install terminal-notifier
agentsim /
Created Jun 10, 2017
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
View tinker.config.php
* Automatically alias Laravel Model's to their base classname.
* Ex: "App\Models\User" now can just be accessed by "User"
if (! function_exists('aliasModels')) {
function aliasModels() {
$finder = new \Symfony\Component\Finder\Finder();
mjdietzx /
Last active Oct 14, 2019
Install TESLA driver for ubuntu 16.04
sudo dpkg -i nvidia-driver-local-repo-ubuntu1604_375.51-1_amd64.deb
sudo apt-get update
sudo apt-get -y install cuda-drivers
echo "Reboot required."
anonymous / index.html
Created Nov 10, 2016
Mithril Feed Reader mithriljs: rss feed reader // source
View index.html
<!DOCTYPE html>
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
console.log( );
rtpg / Carmack Plan File Generator.ipynb
Created Sep 26, 2016
Carmack Plan File Generator
View Carmack Plan File Generator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
twisted async/await with asyncio reactor and uvloop
import asyncio
import uvloop
from asyncio.tasks import ensure_future
# as per github source the asyncio reactor is intended to be released in future version
ndunn219 /
Last active Feb 13, 2019
This code shows how to check a sitemap to make sure there are no links pointing to missing pages and to see if 301s are working correctly. It is explained at
import requests
from bs4 import BeautifulSoup
sitemap = ''
r = requests.get(sitemap)
html = r.content
soup = BeautifulSoup(html, 'html.parser')
links = soup.find_all('a')
You can’t perform that action at this time.