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 | |
# Script to automatically setup a html5-boilerplate Rails folder | |
# Ellis Grouse <egrouse@ninjad.co> | |
# Instructions for use: | |
# mkdir appname | |
# cd appname | |
# boilerplateme | |
# Resource used: http://blog.vertile.com/nathan/2011/02/rvm-rails-git-html5-boiler-plate-what-more-could-you-possibly-want/ |
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( document ).ready( function(){ | |
jQuery( 'div#images img' ).first().addClass( 'selected' ); | |
jQuery( 'div#descriptions div' ).first().addClass( 'selected' ); | |
}); | |
var images = jQuery( 'div#rsb-slider #images img' ), | |
descs = jQuery( 'div#rsb-slider #descriptions div' ); | |
descs.mouseenter( function(){ | |
next_image = jQuery( this ).index() - 1; |
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
class AdminController < ApplicationController | |
# Execute the filter to authenticate users (::authenticate) | |
before_filter :authenticate | |
def user | |
end | |
def unit | |
end |
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 | |
# Set variables | |
sickdir='/Users/egrouse/Applications/Sick-Beard' | |
python='python2.7' | |
# Change to directory and run SickBeard | |
cd $sickdir && $python SickBeard.py |
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 | |
# Script that attempts to create a tunnel for Usenet (NNTP) to pass through | |
# This script: creates a tunnel, assigns the host address to local address in /etc/hosts | |
# For Mac OS X | |
### CONFIGURATION ### | |
SERVER='your.nntp.server' | |
PORT='your.nntp.port' | |
LOCAL='127.0.0.1' | |
USER='root' | |
HOST='your.ssh.server' |
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
eth1 Failed to read scan data : Invalid argument |
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
1. Push binary to your phones sdcard (`adb push wpa_supplicant /sdcard`) | |
2. Open a shell via adb (`adb shell`) | |
3. Get root! (`su`) | |
4. Remount the /system partition (`/data/busybox/busybox mount -rw -o remount /system`) | |
5. Copy the wpa_supplicant binary over the old one | |
(`/data/busybox/busybox cp /sdcard/wpa_supplicant /system/bin/wpa_supplicant`) | |
6. Make it executable (`chmod 755 /system/bin/wpa_supplicant`) | |
7. Reboot your phone |
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://www.mysterbin.com/advsearch?q=-.exe+%s&match=normal&minSize=1&maxSize=max&group=&maxAge=1269&nopasswd=on&complete=0 |
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
$(document).ready( function(){ | |
// Do the hidy boxes | |
$('a.toggle-box').click( function(){ | |
var rel = $(this).attr( 'rel' ), | |
section = $( 'section#' + rel ), | |
target = section.find( '.box' ); | |
if( section.hasClass( 'hidden' ) ) | |
{ |
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
%section#unit-settings | |
%h1 | |
= "Editing Unit: #{@unit.name}" | |
%a{ :href => '#', :class => 'toggle-box', :rel => 'unit-settings' } Hide | |
.box | |
= form_for @unit, :url => edit_unit_path( @unit ), :html => { :multipart => true } do |f| | |
.field | |
= f.label :name | |
= f.text_field :name | |
.field |
OlderNewer