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 / 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)
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
root@ip-10-12-107-214.ec2.internal
root@ip-10-12-107-214.ec2.internal
Received: (nullmailer pid 25303 invoked by uid 0);
Thu, 22 Mar 2012 06:25:04 -0000
From: root@ip-10-12-107-214.ec2.internal (Cron Daemon)
To: root@ip-10-12-107-214.ec2.internal
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
Lastlog:
18:12 <+ ribo> https://github.com/mroth/lolcommits
20:52 <@ kyl> https://github.com/mroth/lolcommits
20:54 < jrick> https://github.com/mroth/lolcommits
20:55 <+ snk> lolcommits is awesome
21:05 <+ qbit_> brycec: yeah - check fo rthe first lolcommits :D
21:05 <@ brycec> 13:51 < jrick> https://github.com/mroth/lolcommits
End of Lastlog
Reduced Functionality:
This version of wkhtmltopdf has been compiled against a version of QT without
the wkhtmltopdf patches. Therefore some features are missing, if you need
these features please use the static version.
Currently the list of features only supported with patch QT includes:
* Printing more then one HTML document into a PDF file.
* Running without an X11 server.
* Adding a document outline to the PDF file.
los ☁ 0 ~ dig api.coderloop.com
; <<>> DiG 9.7.3-P3 <<>> api.coderloop.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25357
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;api.coderloop.com. IN A
---
# Utility server
- name: utility
env: production
retention: 3
volumes:
- device: sda1
id: vol-1c99ae73
- device: sdf
id: vol-a087b5cf
#!/usr/bin/env perl
$flood = 0;
use Irssi;
use Image::Magick;
use warnings;
use vars qw($flood $VERSION %IRSSI);
$VERSION = '1.00';