Skip to content

Instantly share code, notes, and snippets.

View robbiet480's full-sized avatar
😩
terminally online

Robbie Trencheny robbiet480

😩
terminally online
View GitHub Profile
@robbiet480
robbiet480 / gist:2719640
Created May 17, 2012 15:27
available stock info
{ symbol: 'AAPL',
Ask: '539.58',
AverageDailyVolume: '23853900',
Bid: '539.43',
AskRealtime: '539.58',
BidRealtime: '539.43',
BookValue: '109.626',
Change_PercentChange: '-6.495 - -1.19%',
Change: '-6.495',
Commission: null,
#!/usr/bin/env bash
sed -i "s|REPLACE_WITH_REAL_KEY|782eb4b6c5c6a3fd76ba7dcb36b9931f1ec4b614|g" /app/local/etc/newrelic.cfg
<html>
<head>
<title>KanyeWestsBaby.com</title>
<meta name="description" content="This is an example of a description. This will often show up in search results.">
<meta name="keywords" content="Kanye West, Kanye, Kimye, Kim Kardashian, Amber, Amber Rose" >
<!-- Copy paste Google Analytics code in here-->
</head>
<body>
<h1>KanyeWestsBaby.com</h1>
<p>Interested in buying this domain? Contact user@domain.com</p>
@robbiet480
robbiet480 / run_me.sh
Last active December 11, 2015 14:58
Added an if for pls, assuming stream is mp3.
#!/bin/bash
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
if [ "$extension" = "m3u" ]
then
extension="mp3"
fi
if [ "$extension" = "pls" ]
@robbiet480
robbiet480 / bookmarklet.js
Created February 5, 2013 02:40
Reveal Password bookmarklet
javascript:(function()%7Bvar%20IN%20=%20document.getElementsByTagName(%22input%22);for(var%20i=0;%20i<IN.length;%20++i)%7BF%20=%20IN%5Bi%5D;if%20(F.type.toLowerCase()%20==%20%22password%22)%7Bif(document.all)%7Bvar%20n%20=%20document.createElement(%22input%22);for(var%20k%20in%20F.attributes)%20if(k.toLowerCase()%20!=%20'type')%7Btry%7Bn%5Bk%5D%20=%20F%5Bk%5D%7Dcatch(err)%7B%7D%7D;F.parentNode.replaceChild(n,F);%7Delse%7BF.type=%22text%22%7D%7D%7D%7D)()
package main
import (
"encoding/json"
"fmt"
_ "github.com/bmizerany/pq"
"github.com/drone/routes"
"github.com/jmoiron/sqlx"
"io"
"log"
<advancedsettings>
<pathsubstitution>
<substitute>
<from>/Media</from>
<to>smb://10.0.1.2/Media</to>
</substitute>
</pathsubstitution>
<videodatabase>
<type>mysql</type>
<host>10.0.1.2</host>
var footer = "\r\n\r\nU can say STATUS 4 status, ON 2 turn on msgs, OFF 2 turn off. Pwred by BARTStriking.com & Twilio.com";
sab d2ccada84fce8f6fc18d46c12e567b12
sick d6ba05f718fc36ee7b6f4d5a90e83fa6
couch 09f115d17e79405cb3b033a06040fa72
head 0d622308fe17354fe9601495919b1a64
ndx 75451eddff9739474518f21313a407fe
nzbs 302983 eb7f688fa4449528fc463cd482564667
nzbu 76b3d580e7141cbee06ed59f79c4568f
<advancedsettings>
<loglevel hide="false">2</loglevel>
<videodatabase>
<type>mysql</type>
<host>10.0.1.2</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<musicdatabase>