Skip to content

Instantly share code, notes, and snippets.

@matmunn
matmunn / HatSolver.py
Created February 20, 2014 04:15
Headline Puzzle Hat Solver
import re, string
global english, letters
letters = list(string.ascii_uppercase)
def without_nls(item):
for line in range(len(item)):
item[line] = item[line].rstrip('\n').upper()
return item
@matmunn
matmunn / .conkyrc
Last active February 9, 2019 06:43
Conky Configuration
conky.config = {
alignment='top_left',
background=true,
border_width=1,
cpu_avg_samples=2,
default_color='black',
default_outline_color='white',
default_shade_color='white',
double_buffer=true,
draw_borders=false,

Keybase proof

I hereby claim:

  • I am matmunn on github.
  • I am matmunn (https://keybase.io/matmunn) on keybase.
  • I have a public key whose fingerprint is 4CF3 ED16 DAB0 0008 4149 3102 6E21 6698 DCA5 5DCE

To claim this, I am signing this object:

@matmunn
matmunn / nginx_modsite
Created May 7, 2016 23:02
Nginx Site Modifications
#!/bin/bash
##
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:
@matmunn
matmunn / change_sound.sh
Last active June 10, 2016 02:08
Script to toggle sound output devices
#!/usr/bin/bash
OUTPUTDEV=`cat ~/.bin/sound_device`
INPUTS=($(pacmd list-sink-inputs | grep index | awk '{print $2}'))
if [ $OUTPUTDEV = "Speakers" ]
then
# Persist the changes in our file
OUTPUTDEV="Headset"
echo $OUTPUTDEV > ~/.bin/sound_device
#!/usr/local/bin/python
import os
import plivo
import sys
from time import strftime
if not os.path.isdir(PATH):
sys.exit()
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
"env": {
"browser": true,
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true,
"react-native/react-native": true,
},
"extends": [
"eslint:recommended",
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
"env": {
"browser": true,
@matmunn
matmunn / remove_gmail_ads.js
Last active March 2, 2019 04:08
Userscripts
// ==UserScript==
// @name Hide Gmail Ads
// @namespace https://matmunn.me/
// @version 0.1
// @description Hide the ads in Gmail
// @author Mat Munn <mat@matmunn.me>
// @match https://mail.google.com/mail/*
// @grant GM_addStyle
// ==/UserScript==