Skip to content

Instantly share code, notes, and snippets.

View m-wynn's full-sized avatar
🐧

Matthew Wynn m-wynn

🐧
View GitHub Profile

Keybase proof

I hereby claim:

  • I am m-wynn on github.
  • I am m_wynn (https://keybase.io/m_wynn) on keybase.
  • I have a public key ASAxYSDQfxdUMZNdvBjNEBTmRBJHaUSI0TN3gTiAr0BoWAo

To claim this, I am signing this object:

module.exports = {
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
@m-wynn
m-wynn / ip6tables.rules
Created January 5, 2017 22:35
Firewall Configuration
# Generated by ip6tables-save v1.6.0 on Wed Dec 21 01:48:26 2016
*raw
:PREROUTING ACCEPT [374:283173]
:OUTPUT ACCEPT [249:23548]
COMMIT
# Completed on Wed Dec 21 01:48:26 2016
# Generated by ip6tables-save v1.6.0 on Wed Dec 21 01:48:26 2016
*mangle
:PREROUTING ACCEPT [5:449]
:INPUT ACCEPT [5:449]
@m-wynn
m-wynn / wpa_supplicant.conf
Last active March 12, 2017 06:53
wpa supplicant without pass
network={
ssid="CometNet"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity="abc123456"
anonymous_identity="abc123456"
password="supersecret"
@m-wynn
m-wynn / asklug.tex
Created February 28, 2016 21:01
Lug fliers
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[letterpaper, oneside]{article}
\usepackage[margin=0.5in, bottom=1.3in]{geometry}
\usepackage{chngpage}
\usepackage{calc}
\usepackage{fancyhdr}
\fboxsep0pt
\renewcommand{\headrulewidth}{0pt}

Keybase proof

I hereby claim:

  • I am m-wynn on github.
  • I am m_wynn (https://keybase.io/m_wynn) on keybase.
  • I have a public key ASDBdsa2CJBFKVkxZAx4xNDM3eCQCK0rGPfMQ1UkPH0YJgo

To claim this, I am signing this object:

@m-wynn
m-wynn / i3lock.sh
Created February 16, 2016 21:36
so pretty
#!/bin/bash
#scrot /tmp/screen.png
#convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
#[[ -f $HOME/.config/awesome/lock.png ]] && convert /tmp/screen.png $HOME/.config/awesome/lock.png -gravity center -composite -matte /tmp/screen.png
#i3lock -t -i /tmp/screen.png
# Dependencies: imagemagick, i3lock-color-git, scrot
IMAGE=/tmp/i3lock.png
@m-wynn
m-wynn / vim.desktop
Created November 19, 2015 09:51
vim+awesome+xdg
[Desktop Entry]
Version=1.0
Name=Vim
GenericName=Best Text Editor
Comment=Not Emacs
Exec=sh -c "tmux new-window -t default; tmux send-keys -t default 'vim %U' Enter; echo 'local awful = require(\"awful\") ; return awful.tag.viewonly(tags[1][5])' | awesome-client"
Icon=vim
Terminal=false
Type=Application
MimeType=application/mathml+xml;application/xhtml+xml;application/x-perl;application/x-python;application/x-shellscript;audio/x-mpegurl;audio/x-scpls;image/svg+xml;message/news;message/rfc822;text/calendar;text/css;text/english;text/html;text/mrml;text/plain;text/rdf;text/rss;text/rtf;text/sgml;text/vnd.wap.wml;text/x-adasrc;text/x-bibtex;text/x-chdr;text/x-c++hdr;text/x-csrc;text/x-c++src;text/x-c;text/x-objc;text/x-csv;text/x-diff;text/x-java;text/x-katefilelist;text/x-latex;text/x-log;text/x-lyx;text/x-makefile;text/xmcd;text/xml;text/x-moc;text/x-mswinurl;text/x-objcsrc;text/x-pascal;text/x-perl;text/x-php;text/x-php-source;text/x-python;text/x-tcl;text/x-tex;text/x-vcalendar;text/x-vcard;text/x-xslfo;text
@m-wynn
m-wynn / PrintATree.java
Created October 19, 2015 02:08
Prints a tree very pretty
/* Strongly Inspired By
* http://stackoverflow.com/questions/4965335/how-to-print-binary-tree-diagram
*/
public void fancyPrint(){
int maxLevel = maxHeight(root);
nodePrinter(Collections.singletonList(root), 1, maxLevel);
}
private void nodePrinter(List<Node<E>> nodes, int level, int maxLevel){
@m-wynn
m-wynn / zshrc
Created October 5, 2015 06:43
colors everywhere
GRC=`which grc`
if [ "$TERM" != dumb ] && [ -n GRC ]
then
alias colorize="$GRC -es --colour=auto"
for c in as c++ configure cvs df diff dig esperanto gas gcc g++ ld ldapadd ldapauth ldapdelete ldapmodify ldapmodrdn ldappassd ldapsearch ldapwhoami last make mount netstat ping php ps proftpd traceroute wdiff; do
alias ${c}="colorize ${c}"
done
fi