Skip to content

Instantly share code, notes, and snippets.

Matt M. theothermattm

Block or report user

Report or block theothermattm

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
@RasmusFonseca
RasmusFonseca / multiproducer-consumer.py
Last active Dec 22, 2019
Python multiple producer / single consumer example
View multiproducer-consumer.py
from multiprocessing import Process, Queue
def square_producer(inputqueue, resultqueue):
"""
A producer that pops numbers off the inputqueue, squares them and puts the result on resultqueue
"""
while True:
num = inputqueue.get()
if num is None:
@markthebault
markthebault / add-custom-certificate.sh
Last active Sep 1, 2016
inject custom certificate to docker-for-mac beta (1.12.0-rc4-beta20 build:10404)
View add-custom-certificate.sh
#!/bin/bash
if [ "$#" -ne 2 ] || ! [ -d "$1" ]; then
echo "Usage: $0 /Path/To/Certificate CERT_NAME" >&2
exit 1
fi
# This assumes the cert is in the same directory as the script
source="$( cd $1 && pwd )"
# ca-certificate of the VM
View Safety pig
_
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) \ '.
/ _ _ | \
| a a / |
\ .-. ;
'-('' ).-' ,' ;
'-; | .'
\ \ /
@raydog
raydog / bullshit.js
Last active Feb 14, 2020
Bullshit as a Service
View bullshit.js
var E_PREFIX_RATE = 0.25;
// All of our word lists:
var _word_lists = {
verb : [
"implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace",
"enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize",
"morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate",
@theothermattm
theothermattm / KeyAuthSetup.md
Last active Dec 19, 2016
Setting up keyauth fast
View KeyAuthSetup.md
  • On each remote server:
mkdir -p ~/.ssh; touch ~/.ssh/authorized_keys; chmod -R 700 ~/.ssh;
cat .ssh/id_rsa.pub | ssh username@host "cat >> ~/.ssh/authorized_keys"
@thom-nic
thom-nic / cx_oracle_instructions.md
Created Jul 16, 2013
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
View cx_oracle_instructions.md
@xentek
xentek / gist:4108719
Created Nov 19, 2012
Subversion bash aliases
View gist:4108719
# SVN
# set your editor
export SVN_EDITOR="/usr/bin/vi"
# add everything that needs to be added based on results of svn status
alias svnadd="svn st | grep \? | awk '''{print \"svn add \"$2 }''' | bash"
# show svn status, sans the noise from externals
alias svnst='svn st --ignore-externals'
You can’t perform that action at this time.