Skip to content

Instantly share code, notes, and snippets.

@JoelQFernandez
JoelQFernandez / gist:3730118
Created September 15, 2012 22:27
OS X - Streambaby - Launch Daemon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.tivohme.bonjour</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/dns-sd</string>
<string>-R</string>
@JoelQFernandez
JoelQFernandez / gist:3794736
Created September 27, 2012 15:47
Proxy Pac - BBC iPlayer
// Bypass BBC iPlayer Geo Blocking.
function FindProxyForURL(url, host)
{
if (shExpMatch(url, "*.bbc.co.uk/iplayer*")
|| shExpMatch(url, "*.bbc.co.uk/mediaselector*")
|| shExpMatch(url, "*/locator*") )
{
return "PROXY 81.27.79.181:8080";
}
@JoelQFernandez
JoelQFernandez / gist:3794931
Created September 27, 2012 16:22
Proxy Pac - Channel 4
// Bypass Channel 4 Geo Blocking.
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, "ais.channel4.com"))
{
return "PROXY 81.27.79.181:8080";
}
else
{
@JoelQFernandez
JoelQFernandez / gist:3795031
Created September 27, 2012 16:43
Proxy Pac - ITV
// Bypass ITV Geo Blocking.
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, "mercury.itv.com"))
{
return "PROXY 81.27.79.181:8080";
}
else
{
@JoelQFernandez
JoelQFernandez / gist:3795354
Created September 27, 2012 17:45
Proxy Pac - CBC Player
// Bypass CBC Player Geo Blocking.
function FindProxyForURL(url, host)
{
if (shExpMatch(url, "*.cbc.ca/video/js/SWFVideoPlayer.js")
|| shExpMatch(url, "*.theplatform.com/f/h9dtGB/*"))
{
return "PROXY 142.4.192.39:8080";
}
else
@JoelQFernandez
JoelQFernandez / gist:3797577
Created September 28, 2012 02:06
Proxy Pac - CTV
// Bypass CTV Blocking.
// Circumventing Geo Blocking Requires Adding A Header
// Firefox Plugin Or Using SOCKS 5 Proxy.
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, ".esi.ctv.ca")
|| dnsDomainIs(host, ".esi2.ctv.ca"))
{
return "SOCKS 7207.96.241.74:38261";
@JoelQFernandez
JoelQFernandez / CTABusTracker.sh
Last active December 14, 2015 03:19
Menu driven BASH script for accessing CTA Bus Tracker, http://www.ctabustracker.com/bustime/eta/eta.jsp. Also have the option to manually enter the bus stop number to get arrival times. ./CTABusTracker.sh -r <Route Number> -s <Stop ID>
## Filename: CTABusTracker.sh
## Author: Joel Fernandez
## Date:
## Description: Command Line Utility for CTA's Bus Tracker
main()
{
##############################
## Internal Field Separator ##
##############################
SAVEIFS=$IFS
@JoelQFernandez
JoelQFernandez / shapesNestedWhileLoops.java
Last active December 15, 2015 00:09
Java Programming (6th Edition) - Joyce Farrell Chapter 6 Looping Java exercise in creating shapes and formatting numbers through the use of nested for loops.
// Filename: shapesNestedWhileLoops
// Author: Joel Fernandez
// Date: 03.15.13
// Textbook: Java Programming (6th Edition) - Joyce Farrell
// Chapter 6: Looping
// Description: Java exercise in creating shapes and formatting numbers through the use
// of nested While loops.
public class shapesNestedWhileLoops
{
public static void main(String[] args)
@JoelQFernandez
JoelQFernandez / shapesNestedForLoops.java
Last active December 15, 2015 00:18
// Textbook: Java Programming (6th Edition) - Joyce Farrell // Chapter 6: Looping // Description: Java exercise in creating shapes and formatting numbers through the use of nested For Loops.
// Filename: shapesNestedForLoops
// Author: Joel Fernandez
// Date: 03.15.13
// Textbook: Java Programming (6th Edition) - Joyce Farrell
// Chapter 6: Looping
// Description: Java exercise in creating shapes and formatting numbers through the use
// of nested For Loops.
public class shapesNestedForLoops
{
public static void main(String[] args)