This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emu.speedmode("normal") -- Set the speed of the emulator | |
-- It's 00B1 on the rom I have, might differ/ | |
local MEM_ADDR = tonumber("00B1", 16) | |
local completed_level = false; | |
while true do | |
-- Execute instructions for FCEUX | |
local mem_val = memory.readbyte(MEM_ADDR) | |
if (mem_val == 1) then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative | |
logtree= "log --graph --oneline --decorate --all" | |
la = "!git config -l | grep alias | cut -c 7-" | |
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10" | |
tabsescape = "!git diff --color | sed 's/\\t/\\\\t/g'" | |
tabs = "!git diff --color | sed 's/\\t/⌑/g'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative | |
logtree= "log --graph --oneline --decorate --all" | |
la = "!git config -l | grep alias | cut -c 7-" | |
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10" | |
tabsescape = "!git diff --color | sed 's/\\t/\\\\t/g'" | |
tabs = "!git diff --color | sed 's/\\t/⌑/g'" | |
v=describe --tags --match 'v*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'tsouza' | |
import urllib2 | |
def download(url, base): | |
file_name = url.split('/')[-1] | |
u = urllib2.urlopen(url) | |
f = open(base + file_name, 'wb') | |
meta = u.info() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Tyrel Github | |
// @namespace https://github.com/tyrelsouza | |
// @description Hide elements from github | |
// @include https://github.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from mutagen.id3 import ID3, TALB, TPE1, TDRC, TCOM, TIT2 | |
fnames = (u"01 Alexander Guski - Digital Destiny.mp3", | |
u"02 Andrew Carroll - Shadowrun Chronicles.mp3", | |
u"03 Akpomuje Garreis - Arcology is reopening.mp3", | |
u"04 Carlos Martin - Epic.mp3", | |
u"05 Carlos Martin - Drums of War.mp3", | |
u"06 GÇry Montet - The Awakening of the Sixth World.mp3", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git tag temp$RANDOM | |
git reset --hard HEAD^ | |
git push --force | |
echo "There. I fixed your stupid mistake Tyrel" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install imagmagick, nginx, and raspistill. | |
2. Set a call to take_shot.sh in cron. | |
3. Drop html to be served by nginx. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GitHub() | |
{ | |
if [ ! -d .git ] ; | |
then echo "ERROR: This isnt a git directory" && return false; | |
fi | |
git_url=`git config --get remote.origin.url` | |
if [[ $git_url == https://github* ]]; | |
then | |
url=${git_url%.git} | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import os | |
import pylast | |
from slacker import Slacker | |
from sys import platform as _platform | |
import time | |
LASTFM_USER= os.environ['LASTFM_USER'] |