Skip to content

Instantly share code, notes, and snippets.

View vinbarnes's full-sized avatar

Kevin R. Barnes vinbarnes

View GitHub Profile
[barnekr@saturnino:mediacas on master*]$ export |grep AWS
declare -x AWS_ACCESS_KEY_ID="xxx"
declare -x AWS_SECRET_ACCESS_KEY="xxx"
Nothing to see here move along
#!/usr/bin/env ruby -w
require 'hpricot'
require 'net/http'
require 'net/https'
require 'uri'
require 'tempfile'
test_http = "http://gist.github.com/69452"
test_https = "https://gist.github.com/42af948558a3b3704bab"
<html>
<head>
<title>Yo</title>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
div = $('<div class="futureproof"><p>Future Feature</p></div>');
$(".future").each(function(i) {
offset = $(this).offset();
var id = "futureproof_" + i;
[barnekr@saturnino:~]$ punch status --full
...
status:
:time: 2009-03-04 09:03:50.349649 -06:00
:status: in
...
<html>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript" charset="utf-8">
var $j = jQuery.noConflict();
var verify_hci_agreement_checked = function(form) {
if ($j('#checkme').attr('checked') == false) {
msg = "You must agree to the terms."
alert(msg)
$j('div#notice').text(msg).show();
return false;
[barnekr@saturnino:~]$ irb
>> require 'activerecord'
=> true
>> ActiveRecord::VERSION::STRING
=> "2.3.2"
>> Regexp.escape('asdf')
=> "asdf"
>> Regexp.escape('asdf*')
=> "asdf\\*"
>> Regexp.escape(/asdf*/)
TypeError: can't convert Regexp into String
from (irb):3:in `escape'
from (irb):3
from :0
>> Regexp.escape(/asdf/)
[barnekr@saturnino:~]$ dig healthcampnash.com
; <<>> DiG 9.4.2-P2 <<>> healthcampnash.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[barnekr@saturnino:~]$ dig cnn.com
; <<>> DiG 9.4.2-P2 <<>> cnn.com
;; global options: printcmd
;; Got answer: