Skip to content

Instantly share code, notes, and snippets.

View pyro2927's full-sized avatar
💭
I may be slow to respond.

Joseph Pintozzi pyro2927

💭
I may be slow to respond.
View GitHub Profile
@pyro2927
pyro2927 / vlcsync.rb
Created March 8, 2012 15:44
threaded ruby script to run VLC sync
# setup static variables
MOVIE_FOLDER = "/Volumes/DroboFS/tdb103170485/2/Public/Movies/"
#help output
# +----[ Remote control commands ]
# |
# | add XYZ . . . . . . . . . . . . add XYZ to playlist
# | enqueue XYZ . . . . . . . . . queue XYZ to playlist
# | playlist . . . . . show items currently in playlist
# | play . . . . . . . . . . . . . . . . . . play stream
@pyro2927
pyro2927 / hobbit_addviews.log
Created October 2, 2012 03:15
guzzoni.apple.com addview response to "when does the hobbit come out?"
[Info - Guzzoni] Received Object: AddViews (group: com.apple.ace.assistant, ref_id: DAFAC93F-8B92-489C-876F-26AB3CC08358,ace_id: 8a7c74f4-db7a-43d8-bb80-30ec83415df3)
{"properties"=>
{"temporary"=>false,
"dialogPhase"=>"Clarification",
"scrollToTop"=>false,
"views"=>
[{"class"=>"AssistantUtteranceView",
"properties"=>
{"dialogIdentifier"=>"Movies#disambiguateMovies",
"speakableText"=>"Which one?",
@pyro2927
pyro2927 / .screen
Created October 2, 2012 15:09
Screen stuff
# put this in ~/.screenrc
# see http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html
# support color X terminals
termcap  xterm 'XT:AF=\E[3%dm:AB=\E[4%dm:AX'
terminfo xterm 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX'
termcapinfo xterm 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
termcap  xtermc 'XT:AF=\E[3%dm:AB=\E[4%dm:AX'
terminfo xtermc 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX'
termcapinfo xtermc 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
@pyro2927
pyro2927 / solarized.sh
Last active August 27, 2023 16:41
Solarized theme for tmux-powerline
# Solarized Theme
# Attempting to copy: http://ethanschoonover.com/solarized
# Example: http://i.imgur.com/T9BTRG4.png
if patched_font_in_use; then
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂"
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃"
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀"
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁"
else
@pyro2927
pyro2927 / gravatar_gource.rb
Last active December 20, 2015 02:29
Ruby script to load Gravatars for git repo and produce gource video
#!/usr/bin/env ruby
# Run script from inside git repo
# Paths setup for OS X
# requires gource and ffmpeg
# On OS X:
# brew install ffmpeg gource
# Written by: Joe Pintozzi
#
# Resources
# gource: https://code.google.com/p/gource/
@pyro2927
pyro2927 / fba2x.cfg
Last active December 25, 2015 09:59
Final Burn Alpha (pifba) config to use with the X-Arcade 2player joystick Config follows this layout: https://dl.dropboxusercontent.com/s/1gh4g98j5zyi6t9/2013-10-12%20at%2010.22%20PM%202x.png
[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
A_1=99
B_1=53
X_1=304
Y_1=122
L_1=306
R_1=308
START_1=49
SELECT_1=51
@pyro2927
pyro2927 / snes9x.cfg
Created October 13, 2013 04:41
Config file used for X-Arcade 2player joystick as well as external USB SNES controller
[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
A_1=99
B_1=53
X_1=304
Y_1=122
L_1=306
R_1=308
START_1=49
SELECT_1=51
@pyro2927
pyro2927 / toc.rb
Last active December 25, 2015 16:59
Generate table of contents from Markdown file
#!/usr/bin/env ruby
# sanity checks
if ARGV.count == 0
puts "You must provide a file name"
return
elsif File.exist?(ARGV.first) == false
puts "That file doesn't exist"
return
end
@pyro2927
pyro2927 / earliest_user.rb
Created October 24, 2013 21:14
Figure out who has the lowest Github ID in your organization!
require "github_api"
Github.new.orgs.members.list("ORG_NAME").body.sort_by! {|u| u.id} .first.login
@pyro2927
pyro2927 / config.fish
Created November 11, 2013 22:24
Fish config
set -U EDITOR vim
set NODE_PATH "/usr/local/lib/node_modules"
set PATH "$EC2_HOME/bin" $PATH
set PATH ".bundle/bin" $PATH
set PATH "/usr/local/bin" $PATH
set PATH "/usr/local/sbin" $PATH
set PATH "/usr/local/share/npm/bin" $PATH
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH