This file contains 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 | |
interfaces=( $(netstat -in | egrep 'utun\d .*\d+\.\d+\.\d+\.\d+' | cut -d ' ' -f 1) ) | |
rulefile="rules.tmp" | |
echo "" > $rulefile | |
sudo pfctl -a com.apple/tun -F nat | |
for i in "${interfaces[@]}" | |
do | |
RULE="nat on ${i} proto {tcp, udp, icmp} from 192.168.64.0/24 to any -> ${i}" | |
echo $RULE >> $rulefile | |
done |
This file contains 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
<!--/*****************************************************************************/ | |
/*** Blog 1.0 by Byron Wade */ | |
/*** www.thorbis.com | bcw1995@gmail.com */ | |
/*** Follow Me On Twitter At @Thorbis */ | |
/*** NO modifications of this script can be done without consulting me first! */ | |
/*******************************************************************************--> | |
<!DOCTYPE html> | |
<html> | |
<head> |
This file contains 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
require 'set' | |
module Dependencies | |
class Dependencies | |
def initialize | |
@graph = Hash.new([]) | |
end | |
def add_direct(dependent, dependencies) | |
@graph[dependent] += dependencies |
This file contains 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
jQuery(function($) { | |
var customFieldParam = /^ticket\[fields\]\[(\d+)\]$/, | |
urlParams = $.queryParameters(), | |
k, match, fieldID; | |
// for each URL parameter: | |
for (k in urlParams) { | |
if (urlParams.hasOwnProperty(k)) { | |
// check whether it's a Zendesk custom field |
This file contains 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
/* | |
* Please take note of the following when using this JavaScript snippet: | |
* | |
* 1. It's provided as is, is not an officially support Zendesk widget | |
* no matter whom the author may be working for. | |
* 2. You are very welcome to fork this, in fact I encourage it if you | |
* have some awesome changes! | |
* 3. You'll notice a short delay before the permalinks display or indeed | |
* before the page scrolls to the permalink location. This is intended. | |
* |
This file contains 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
http://stackoverflow.com/questions/6024064/devise-error-when-signing-up | |
create_table "users", :force => true do |t| | |
t.string "email", :default => "", :null => false | |
t.string "encrypted_password", :limit => 128, :default => "", :null => false | |
t.string "reset_password_token" | |
t.datetime "reset_password_sent_at" | |
t.datetime "remember_created_at" | |
t.integer "sign_in_count", :default => 0 | |
t.datetime "current_sign_in_at" |
This file contains 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
rake aborted! | |
Don't know how to build task ':best_referral' | |
(See full trace by running task with --trace) | |
(in /app) | |
new-computers-computer:signup newcomputer$ heroku rake :best_referral --trace | |
rake aborted! | |
Don't know how to build task ':best_referral' | |
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]' | |
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task' |
This file contains 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
=== Epic Snow Leopard Upgrayyyyd Guide === | |
Son, you’re now living in the land of 64-bit systems. | |
That means that some of your 32-bit shit is now broken. | |
Not all is lost. | |
== Fixing MySQL weirdness |