Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

Max Timkovich mtimkovich

🤔
View GitHub Profile
@mtimkovich
mtimkovich / garpr_norcal.txt
Last active May 29, 2020
All Norcal GarPR Tournaments
View garpr_norcal.txt
http://challonge.com/meleethebeatdown14singles
http://challonge.com/LCF17
http://challonge.com/phoenixunderground36
https://smash.gg/tournament/mythic-melee-mondays-9/events/melee-singles/brackets/92613
http://challonge.com/meleethebeatdown15
http://challonge.com/MADE23Singless
http://sjsumelee.challonge.com/FSF39singles
http://challonge.com/LCF18
https://smash.gg/tournament/bam-to-genesis-31/events/melee-singles/brackets
https://smash.gg/tournament/norcal-validated-featuring-professor-pro-genesis-4-warm-up/events/melee-singles/brackets/104786
@mtimkovich
mtimkovich / RandomCapsLock.ahk
Last active Apr 30, 2020
Turn CAPS LOCK into CaPs LoCK.
View RandomCapsLock.ahk
Random, upper, 0, 1
ToggleCase(c) {
global upper := !upper
if upper {
StringUpper, c, c
} else {
StringLower, c, c
}
@mtimkovich
mtimkovich / netplay.rs
Last active Feb 10, 2020
fake netplay codes
View netplay.rs
use rand::Rng;
fn main() {
let netplay: String = (0..8)
.map(|_| format!("{:x?}", rand::thread_rng().gen_range(0, 16)))
.collect();
println!("{}", netplay);
}
View .tmux.conf
# upgrade $TERM
set -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# Status bar styling and content.
@mtimkovich
mtimkovich / netplay.js
Last active Oct 8, 2019
fake netplay codes
View netplay.js
const netplay = Array(8).fill().map(() =>
Math.floor(Math.random() * 16).toString(16)
).join('');
console.log(netplay);
@mtimkovich
mtimkovich / mail.py
Last active May 3, 2019
For Claire. Marks all emails as read.
View mail.py
#!/usr/bin/env python3
from imapclient import IMAPClient, SEEN
auth = {
# Enter your user name and password between the quotes below.
'username': 'USERNAME',
'password': 'PASSWORD',
'host': 'imap.gmail.com',
}
@mtimkovich
mtimkovich / dive.sh
Created Mar 6, 2019
Quickly dive into Java directories
View dive.sh
dive() {
start=$PWD
if [ -z "$1" ] || [ ! -d "$1" ]; then
return 1
fi
cd "$1"
while [ true ]; do
View split.py
#!/usr/bin/env python
import fileinput
for line in fileinput.input():
print(line.split())
@mtimkovich
mtimkovich / curling.py
Last active Feb 15, 2019
Make url requests from yaml file
View curling.py
#!/usr/bin/env python3
"""
Usage: curling.py input.yml
The input yaml file is structured like this. |method| is optional,
but must be lowercase.
url: url
method: get
params:
@mtimkovich
mtimkovich / netplay.py
Last active Feb 14, 2019
fake netplay codes
View netplay.py
import string
from random import choice
print(''.join(choice(string.hexdigits[:-6]) for _ in range(8)))