Skip to content

Instantly share code, notes, and snippets.

View captbaritone's full-sized avatar
💭
-=[ Dorkin' Out ]=-

Jordan Eldredge captbaritone

💭
-=[ Dorkin' Out ]=-
View GitHub Profile
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
LIST OF THE [4,011] OPERA RECORDINGS IN THE CCDB AS OF JANUARY 25, 2013:
Composer - Opera (year.month.day) Conductor [singers] (CCDB ID) [format(s)]
Adam, Adolphe - Le Farfadet (1970.9.4) Benedetti, Robert [Dachary, Peyron, Demigny] (CCDB 3808) [mp3]
Adam, Adolphe - Le Postillon de Lonjumeau (1968.4) Bauer-Theussl, Franz [Dallapozza, Boky, Papouschek] (CCDB 7451) [mp3]
Adam, Adolphe - Le Postillon de Lonjumeau (1985.9) Fulton, Thomas [roux, Lafont, Anderson] (CCDB 3804) [mp3]
Adam, Adolphe - Le Toréador (1996.6) Bonynge, Richard [Tempont, Jo, Aler] (CCDB 3806) [mp3]
Adam, Adolphe - Le Toréador (2003.12.8) Tingaud, Jean-Luc [Barrard, Léger, Edwards] (CCDB 7452) [mp3]
Adam, Adolphe - Si j'étais roi (1960) Blareau, Richard [Berton, Mallabrera, Héral] (CCDB 3809) [mp3]
site_url("api/v1/ticket/checkin/<API KEY>/<EVENT%20ID>/<Ticket%20ID>");
@captbaritone
captbaritone / vimrc
Created August 24, 2012 00:55 — forked from natlownes/vimrc
# tiny success: http://bit.ly/RhpepU
# osx specific, mpg123 or the like for linux
nmap HH :silent ! afplay /Users/nat/.vim/audio/succ_horns01.mp3 1>&-2>&-&<CR><C-l>
@captbaritone
captbaritone / .htaccess
Created November 9, 2012 01:54
"curl pipe sh" exploit proof of concept
# Forbid directory listing
Options -Indexes
# Serve `evil-install` instead of `install` to curl
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} curl [NC]
RewriteRule ^install$ evil-install [L]
@captbaritone
captbaritone / avatar.jpg.php
Created November 17, 2012 03:20
PHP: Avatar Hack
<?php
/*-------------------------
|
| Instructions
|
\-------------------------*/
// Name this file index.php and place it in a folder named avatar.jpg on your server
// Then, when asked for your avatar url, give the location of the folder "avatar.jpg"
@captbaritone
captbaritone / mandala.php
Created November 17, 2012 03:25
Drawing mandalas with PHP
<?php
// Prints a mondala
$points = $_GET['points'];
$size = $_GET['size'];
// Test the size
if($size < 1 || $size > 1024){
echo "Please use a better size";
// Test the number of points
}elseif($points < 1 || $points > 100){
echo "Please use a more reasonable number or points";
@captbaritone
captbaritone / shuffle.php
Created November 17, 2012 03:29
Only the first and last letters
<?=preg_replace_callback("/(?<=[a-zA-Z])([a-zA-Z]+)(?=[a-zA-Z])/", create_function('$n', 'return str_shuffle($n[1]);'), $_POST['text'])?>
@captbaritone
captbaritone / binary.pl
Created November 17, 2012 03:33
Count binary in Perl
#!/usr/bin/env perl
# Counts in binary
# The array of digets, starting with the least significant
@binary = (0);
while(@binary &lt; 79){
$i = 0;
$found = 0;
# Until we find a 0
@captbaritone
captbaritone / config.txt
Created April 7, 2013 03:51
Config for that allows my Rasberry Pi to work
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=0
disable_overscan=0
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border