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
{ | |
"node": | |
{ | |
"instance_id": "i-1234abcd", | |
"state": "busy", | |
"cpu": "0.00", | |
"top": "xinteract", | |
"disk": | |
{ | |
"/dev/sda1": "60%" |
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
stdClass Object | |
( | |
[spotInstanceRequestSet] => stdClass Object | |
( | |
[item] => Array | |
( | |
[0] => stdClass Object | |
( | |
[createTime] => 2010-02-02T21:58:25.000Z | |
[launchGroup] => BraderTest |
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
#!/usr/bin/env ruby | |
class ItmatArchive | |
def self.compress(dir, comp_file) | |
system("tar -czf #{comp_file} #{dir}") | |
system("split -b 20m -a 3 #{comp_file} #{dir}.") | |
system("rm -rf #{comp_file}") | |
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
https://rubyforge.org/tracker/index.php?func=detail&aid=27639&group_id=1821&atid=7118 | |
Here's a patch that fixes the error I just reported, where wmainfo barfs on construction if it cannot successfully convert | |
all the fields using iconv: | |
-- /usr/lib/ruby/gems/1.8/gems/wmainfo-rb-0.6/lib/wmainfo.rb 2009-12-29 00:50 | |
:02.000000000 -0500 | |
+++ wmainfo.rb 2009-12-29 23:56:19.000000000 -0500 | |
@@ -235,7 +235,12 @@ | |
lengths[key] = read_and_increment_offset(2).unpack("v")[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
/etc/init.d/gpfs/start; | |
mount isilon.local:/ifs /ifs; | |
export SGE_CELL=PGFI6448; | |
export SGE_EXECD_PORT=6449; | |
export SGE_QMASTER_PORT=6448; | |
export SGE_ROOT=/ifs/apps/SGE6.2u5; | |
export SGE_CLUSTER_NAME=PGFI6448; | |
/ifs/apps/SGE6.2u5/bin/lx24-amd64/sge_execd; |
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
# Dell | |
service ipmi restart | |
/usr/bin/ipmitool -I open lan set 1 ipsrc static | |
/usr/bin/ipmitool -I open lan set 1 ipaddr 10.10.125.* | |
/usr/bin/ipmitool -I open lan set 1 netmask 255.255.0.0 | |
/usr/bin/ipmitool -I open lan set 1 defgw ipaddr 10.10.70.15 | |
/usr/bin/ipmitool -I open lan set 1 access on | |
/usr/bin/ipmitool -I open lan set 1 snmp PGFI | |
/usr/bin/ipmitool -I open lan set 1 password 9A5tUpew | |
/usr/bin/ipmitool -I open user set password 2 |
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
# Shows what channel-group is set for each interface on the switch under the running config | |
show running-config interface TenGigabitEthernet 1/0/* channel-group | |
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
Working directory: /var/www/html/cacti/cli | |
php -q add_device.php --description="AJS73FW1 - Advocare South Jersey Sports & Spine Watchguard" --ip="ajs73fw1-int.chahq.local" --template=22 --community="challcmon" | |
Response: "Success - new device-id: (450)" | |
php -q add_tree.php --type=node --node-type=host --tree-id=28 --host-id=450 |
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
SELECT order_id,product_name,qty | |
FROM orders | |
INTO OUTFILE '/tmp/orders.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' |
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
{"latitude":39.612931,"longitude":-76.682985,"timezone":"America/New_York","offset":-4,"currently":{"time":1374847403,"summary":"Clear","icon":"clear-day","precipIntensity":0,"precipProbability":0,"temperature":73.44,"dewPoint":59.94,"windSpeed":2.62,"windBearing":351,"cloudCover":0.17,"humidity":0.69,"pressure":1018.94,"visibility":10,"ozone":330.65},"minutely":{"summary":"Clear for the hour.","icon":"clear-day","data":[{"time":1374847380,"precipIntensity":0,"precipProbability":0},{"time":1374847440,"precipIntensity":0,"precipProbability":0},{"time":1374847500,"precipIntensity":0,"precipProbability":0},{"time":1374847560,"precipIntensity":0,"precipProbability":0},{"time":1374847620,"precipIntensity":0,"precipProbability":0},{"time":1374847680,"precipIntensity":0,"precipProbability":0},{"time":1374847740,"precipIntensity":0,"precipProbability":0},{"time":1374847800,"precipIntensity":0,"precipProbability":0},{"time":1374847860,"precipIntensity":0,"precipProbability":0},{"time":1374847920,"precipIntensity":0,"p |
OlderNewer