Skip to content

Instantly share code, notes, and snippets.

View rick's full-sized avatar
🎧
Quietly doing

Rick Bradley rick

🎧
Quietly doing
View GitHub Profile
@rick
rick / bot.php
Last active December 27, 2015 07:39
<?php
set_time_limit(0);
error_reporting(0);
$dir = getcwd();
$uname= @php_uname();
function whereistmP()
{
$uploadtmp=ini_get('upload_tmp_dir');
@rick
rick / github.com.js
Created September 19, 2013 22:04
dotjs file to mute unread github notifications on a repo
$("button.mark-all-as-read").parent().prepend('<button class="box-action mute-all-unread css-truncate tooltipped upwards" original-title="mute all unread notifications"> <span class="octicon octicon-mute"></span> </button>');
$('button.mute-all-unread').click(function(event) {
// mute all unread notifications
$(this).parent().parent().parent().find('li.unread').find('.js-mute-notification button').click();
return false;
});
@rick
rick / ncaa.com.js
Created March 24, 2013 01:21
Make it possible to skip NCAA ads in March Madness live stream. Run this with dotjs and, when the main flash app with the game schedule comes on, click the '75th anniversary' icon at the bottom of the page, then proceed to your game. Should let you use video controls again (usually disabled when ads are on).
$("#footer span.footerText a").first().click(function(){
event.preventDefault();
orig = $('#mainApp object param[name="flashvars"]').attr('value');
replacement = orig.replace('superduperdevtime=false', 'superduperdevtime=true');
$('#mainApp object param[name="flashvars"]').attr('value', replacement);
});
@rick
rick / intra-seeds.txt
Created March 19, 2013 00:25
Intra-seed rankings - March Madness 2013
- seed rankings
1
louisville
indiana
kansas
gonzaga
@rick
rick / foo.rb
Created October 17, 2012 19:06
sample of how instance variables and accessors behave
~ (master)(*)$ irb
>>
>> class Foo
>> attr_accessor :read_write
>> attr_reader :readonly
>> attr_writer :writeable
>>
?> def initialize(read_write, readonly, writeable)
>> @read_write = read_write
>> @readonly = readonly
@rick
rick / public.rb
Created September 12, 2012 01:48
public gist
#!/usr/bin/env ruby
echo "public"
raise "private"
@rick
rick / gist:3667503
Created September 7, 2012 16:17 — forked from mgencur/gist:3666350
just testing forking of public gists. ignore me :-)
dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<version>1.1.8.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet-core</artifactId>
<version>1.1.8.Final</version>
<scope>compile</scope>
@rick
rick / test.sh
Created September 7, 2012 16:16
public test gist
#!/bin/sh
echo "this is a test."
exit 1
@rick
rick / testing.rb
Created September 6, 2012 07:54
public gist
#!/usr/bin/env ruby
raise "this is a test."
# end
test
@rick
rick / bringit.rb
Created August 15, 2012 18:33
github summit fall 2012 hubot ignite talk
#!/usr/bin/env ruby
require 'github-campfire'
def ask_for_image(phrase)
`growlnotify -m "#{phrase}"`
GitHub::Campfire.notify("/img me #{phrase}", GitHub::Campfire::HUBOT)
end
phrases = [
'hubot ignite', # new presentation style