Skip to content

Instantly share code, notes, and snippets.

View eigenhombre's full-sized avatar

John Jacobsen eigenhombre

View GitHub Profile
@eigenhombre
eigenhombre / gist:2128453
Created March 19, 2012 23:36
first pallet fail
user=> (pallet.core/converge (pallet.core/group-spec "mygroup" :count 1) :compute (pallet.configure/compute-service :gogrid))
java.lang.ClassCastException: java.lang.Boolean cannot be cast to clojure.lang.Associative (NO_SOURCE_FILE:0)
2012-05-05 12:04:47 2
2012-05-05 12:04:54 1
2012-05-05 12:04:55 2
2012-05-05 12:04:56 1
2012-05-05 12:05:20 11
2012-05-05 12:05:21 17
2012-05-05 12:06:10 2
2012-05-05 12:06:11 3
2012-05-05 12:06:12 1
2012-05-05 12:06:13 1
(django-pydev-venv)08:30:50 detdbg > ./slurp.py
2012-05-05 12:04:47 2 CC
2012-05-05 12:04:54 1 C
2012-05-05 12:04:55 2 CC
2012-05-05 12:04:56 1 C
2012-05-05 12:05:20 11 CCCCCCCCCCC
2012-05-05 12:05:21 17 CCCCCCCCCCCCCCCCC
2012-05-05 12:06:10 2 CC
2012-05-05 12:06:11 3 CCC
2012-05-05 12:06:12 1 C
#!/usr/bin/env python
"""
slurp.py
John Jacobsen, NPX Designs, Inc., john@mail.npxdesigns.com
Started: Sat May 5 07:55:34 2012
"""
import os
import re
##################################################
/Users/jacobsen/Desktop/detdbg/daqrun120070
2012-05-05 10:03:32 40 ddddddddddddEEGGTTIS 1 1 10 11 11 12 12 13 15 2 3 4 4 5 6 7 7 8 8 9
##################################################
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 1 200 12476604 1131896 9699696 0 0 66 762 1 0 20 9 71 0 0
1 1 200 12427560 1131948 9747736 0 0 0 5923 44220 95321 15 6 75 5 0
5 0 200 12433592 1132080 9748464 0 0 0 6219 43232 92702 15 6 74 5 0
2 1 200 12426916 1132160 9750756 0 0 0 6413 44472 98336 15 6 73 5 0
1 0 200 12484532 1132160 9693520 0 0 0 5897 37892 86090 15 6 75 4 0
1 2 200 12473988 1132348 9701892 0 0 0 6309 41379 92792 15 6 74 4 0
2 1 200 12486408 1132388 9689544 0 0 0 6326 43432 94775 15 6 74 4 0
1 0 200 12440352 1132388 9737120 0 0 0 5866 43927 94985 15 6 75 4 0
top - 14:36:52 up 32 days, 12:55, 3 users, load average: 7.12, 5.72, 4.70
Tasks: 191 total, 1 running, 190 sleeping, 0 stopped, 0 zombie
Cpu(s): 15.3%us, 4.6%sy, 0.0%ni, 68.0%id, 10.2%wa, 0.1%hi, 1.7%si, 0.0%st
Mem: 24679008k total, 24057920k used, 621088k free, 1147032k buffers
Swap: 25599568k total, 200k used, 25599368k free, 20755528k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3082 pdaq 25 0 1625m 1.2g 7136 S 244.8 5.3 34:09.06 java
4538 root 18 0 654m 64m 9664 S 0.0 0.3 3:56.62 dsm_om_connsvcd
31669 pnf 17 0 308m 49m
#!/usr/bin/env python
from datetime import datetime
import subprocess
cmd = 'vmstat 10'
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=True, shell=True)
(env)-bash-3.2$ ./run_vmstat.py
2012-05-05 15:15:25.632780: procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
2012-05-05 15:15:25.632845: r b swpd free buff cache si so bi bo in cs us sy id wa st
2012-05-05 15:15:25.633001: 3 0 0 20155788 173928 3366856 0 0 0 2 0 0 0 0 100 0 0
2012-05-05 15:15:35.634256: 5 0 0 20052852 174092 3467896 0 0 0 10001 56846 132587 18 8 72 2 0
2012-05-05 15:15:45.636357: 2 0 0 19949228 174260 3568716 0 0 0 10149 60154 141172 18 8 72 2 0
2012-05-05 15:15:55.636801: 3 0 0 19845684 174424 3669568 0 0 0 10332 61838 145246 19 8 72 1 0
2012-05-05 15:16:05.638707: 7 0 0 19731632 175168 3770620 0 0 2 60346 60911 154698 20 9 66 4 0
2012-05-05 15:16:15.639417: 1 2 0 19635156 175320 3872488 0 0 0 21992 62073 147854 19 9 69 3 0
2012-05-05 15:16:25.641236: 4 1 0 19532096 175484 3971412 0 0 0 993
@eigenhombre
eigenhombre / gist:2603426
Created May 5, 2012 15:40
evbuilder dmesg
pdaq@evbuilder[~] 15:20:17 (1)$ dmesg
Linux version 2.6.18-194.3.1.el5 (brewbuilder@norob.fnal.gov) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri May 7 01:43:09 EDT 2010
Command line: ro root=LABEL=/
BIOS-provided physical RAM map:
BIOS-e820: 0000000000010000 - 00000000000a0000 (usable)
BIOS-e820: 0000000000100000 - 00000000cf679000 (usable)
BIOS-e820: 00000000cf679000 - 00000000cf68f000 (reserved)
BIOS-e820: 00000000cf68f000 - 00000000cf6ce000 (ACPI data)
BIOS-e820: 00000000cf6ce000 - 00000000d0000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)