Skip to content

Instantly share code, notes, and snippets.

View mattbailey's full-sized avatar
🦆
quack

Matt Bailey mattbailey

🦆
quack
View GitHub Profile
@mattbailey
mattbailey / .Xdefaults
Created August 23, 2011 22:27
.Xdefaults
!!--!!--!!--!!--!!--!!
!! ~/.Xdefaults !!
!!--!!--!!--!!--!!--!!
!! Global font
!*font: -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
!! Global Fore/background color
*background: #191919
!!-! URXVT !-!!
require 'test'
@mattbailey
mattbailey / gist:1395182
Created November 26, 2011 06:35
dnsupdater
# amazon-ec2 gem
require 'AWS'
# Your keys
ACCESS_KEY_ID = 'your AWS ID'
SECRET_ACCESS_KEY = 'your AWS secret'
# open EC2 connection
ec2 = AWS::EC2::Base.new(:access_key_id => ACCESS_KEY_ID, :secret_access_key => SECRET_ACCESS_KEY)
@mattbailey
mattbailey / gist:1395184
Created November 26, 2011 06:38
getip()
# net-dns gem
require 'net/dns/resolver'
# This is where the net-dns resolver makes queries
ENV['RES_NAMESERVERS'] = '111.222.333.444'
def getip(name)
ip = IPAddr.new
Resolver(name).each_address do |address|
ip = address
end
if ip == '::'
@mattbailey
mattbailey / ssh-agent.sh
Created December 13, 2011 00:42
ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add >/dev/null
/usr/bin/ssh-add rsa_rollstream > /dev/null
/usr/bin/ssh-add rsa_personal > /dev/null
}
thel ☁ 2 templates [master] curl -I http://www.gild.com/assets/spinner.gif
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=31536000
Cache-Control: public
Content-length: 1849
Content-Type: image/gif
Date: Mon, 02 Apr 2012 23:33:43 GMT
Expires: Tue, 02 Apr 2013 23:33:43 GMT
Last-Modified: Mon, 02 Apr 2012 21:41:40 GMT
enion ☁ 0 ~ for foo in /dev/sd*; do echo -n $foo: ;sudo smartctl -x $foo | grep Temperature_Celsius; done
/dev/sda:194 Temperature_Celsius -O---K 039 069 000 - 39 (0 8 0 0)
/dev/sdb:194 Temperature_Celsius -O---K 035 069 000 - 35 (0 8 0 0)
/dev/sdc:194 Temperature_Celsius -O---- 193 193 000 - 31 (Min/Max 16/46)
/dev/sdd:194 Temperature_Celsius -O---- 193 193 000 - 31 (Min/Max 16/54)
/dev/sde:194 Temperature_Celsius -O---- 157 157 000 - 38 (Min/Max 17/47)
/dev/sdf:194 Temperature_Celsius -O---- 176 176 000 - 34 (Min/Max 17/52)
/dev/sdg:194 Temperature_Celsius -O---- 150 150 000 - 40 (Min/Max 17/56)
/dev/sdh:194 Temperature_Celsius -O---- 153 153 000 - 39 (Min/Max 16/56)
/dev/sdi:194 Temperature_Celsius -O---K 033 050 000 - 33 (0 12 0 0)
root@ip-10-12-107-214:/var/spool/nullmailer/queue# cat 1332397504.25303
[email protected]
[email protected]
Received: (nullmailer pid 25303 invoked by uid 0);
Thu, 22 Mar 2012 06:25:04 -0000
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <root@ip-10-12-107-214> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) (failed)
Content-Type: text/plain; charset=ANSI_X3.4-1968
Domain "AMBULAT.IO" - Available
Domain "BAGN.IO" - Available
Domain "BARDIGL.IO" - Available
Domain "BOCACC.IO" - Available
Domain "BORACH.IO" - Available
Domain "BRACC.IO" - Available
Domain "CAB.IO" - Available
Domain "CADIUE.IO" - Available
Domain "CAQUET.IO" - Available
Domain "CASTAL.IO" - Available
com.atlassian.jira.exception.CreateException: Could not load FunctionProvider class
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:472)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:383)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:480)
at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:232)
at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:132)
at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:216)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)