This file contains hidden or 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
| kristian@edwin:~/tgmanage/tools$ ./dotnet.sh 192.168.122.33 public | |
| [Mon May 4 10:28:16 2015] Adding 52:54:00:c7:23:d6 | |
| [Mon May 4 10:28:16 2015] Probing 192.168.122.33 | |
| [Mon May 4 10:28:16 2015] Discovering neighbors for 52:54:00:c7:23:d6 | |
| [Mon May 4 10:28:16 2015] Found edwin.norman.local (tgmanage -> edwin.norman.local (2001:16d8:ee00:13b:0:0:0:2)) | |
| [Mon May 4 10:28:16 2015] Adding 3c:97:0e:73:a3:b9 | |
| [Mon May 4 10:28:16 2015] Probing 10.135.0.52 | |
| [Mon May 4 10:28:22 2015] Error during SNMP to 10.135.0.52 : Could not open SNMP session to 10.135.0.52 at ../include/nms.pm line 196. | |
| [Mon May 4 10:28:22 2015] Probing 2001:16d8:ee00:13b:0:0:0:2 |
This file contains hidden or 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
| kristian@edwin:~/tgmanage/tools$ ./lldpdiscover.pl 192.168.122.33 public | ./draw-neighbors.pl | |
| [Mon May 4 09:48:34 2015] Adding 52:54:00:c7:23:d6 | |
| [Mon May 4 09:48:34 2015] Probing 192.168.122.33 | |
| [Mon May 4 09:48:34 2015] Discovering neighbors for 52:54:00:c7:23:d6 | |
| [Mon May 4 09:48:34 2015] Found edwin.norman.local (tgmanage -> edwin.norman.local (2001:16d8:ee00:13b:0:0:0:2)) | |
| [Mon May 4 09:48:34 2015] Adding 3c:97:0e:73:a3:b9 | |
| [Mon May 4 09:48:34 2015] Probing 10.135.0.52 | |
| [Mon May 4 09:48:40 2015] Error during SNMP to 10.135.0.52 : Could not open SNMP session to 10.135.0.52 at ../include/nms.pm line 196. | |
| [Mon May 4 09:48:40 2015] Probing 2001:16d8:ee00:13b:0:0:0:2 |
This file contains hidden or 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
| kristian@edwin:~$ cat foo.c; gcc -x c - < foo.c 2>/dev/null; ./a.out | |
| int main(int argc, char** argv) { | |
| print_stuff(5); | |
| } | |
| void print_stuff(double d) { | |
| printf("%f\n", d); | |
| } | |
| 0.000000 | |
| kristian@edwin:~$ cat foo2.c; gcc -x c - < foo2.c 2>/dev/null; ./a.out | |
| void print_stuff(double d); |
This file contains hidden or 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
| My traceroute [v0.82] | |
| pathfinder.kly.no (0.0.0.0) Sat Apr 4 02:18:57 2015 | |
| Keys: Help Display mode Restart statistics Order of fields quit | |
| Packets Pings | |
| Host Loss% Snt Last Avg Best Wrst StDev | |
| 1. s134901472.blix.com 0.3% 1500 1.7 3.0 0.7 214.8 11.8 | |
| 2. te-3-1.nyd-osl.blix.com 0.0% 1500 0.7 4.6 0.4 293.8 23.3 | |
| 3. te-2-2.tcy-ams.blix.com 0.0% 1500 23.4 29.4 23.1 386.1 29.7 | |
| 4. hetzner.nikhef.nl-ix.net 0.0% 1500 23.5 23.3 23.2 36.1 1.0 | |
| 5. core1.hetzner.de 4.1% 1500 29.3 29.2 29.0 48.9 1.6 |
This file contains hidden or 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
| bases = $(basename $(wildcard *rst)) | |
| odts = $(addsuffix .odt,${bases}) | |
| pdfs = $(addsuffix .pdf,${bases}) | |
| docs = $(addsuffix .doc,${bases}) | |
| all: ${odts} ${pdfs} ${docs} | |
| clean: | |
| -rm -f ${odts} ${pdfs} ${docs} |
This file contains hidden or 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
| processor : 3 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 6 | |
| model name : QEMU Virtual CPU version 2.1.0 | |
| stepping : 3 | |
| microcode : 0x1 | |
| cpu MHz : 1999.999 | |
| cache size : 4096 KB |
This file contains hidden or 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
| kristian@edwin:~$ cat foo.c | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| int main(void) { | |
| uintmax_t a=10,b=20,c=100; | |
| uint8_t d=10,e=20,f=100; | |
| if (a - b > c) printf("uintmax_t underflow\n"); | |
| if (d - e > f) printf("uint8_t underflow\n"); | |
| return 0; | |
| } |
This file contains hidden or 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
| # varnishd -a 127.0.0.1:1111 -f /etc/varnish/default.vcl -s file,/tmp/foo.cache,4G | |
| # ls /tmp/foo.cache -lh | |
| -rw------- 1 root root 4.0G Oct 29 14:14 /tmp/foo.cache | |
| # pkill varnishd | |
| # ps aux | grep varnishd | |
| kristian 7619 0.0 0.0 17148 3220 pts/10 S+ 14:13 0:00 man varnishd | |
| root 7908 0.0 0.0 12692 2220 pts/4 S+ 14:14 0:00 grep varnishd | |
| # ls /tmp/foo.cache -lh | |
| -rw------- 1 root root 4.0G Oct 29 14:14 /tmp/foo.cache | |
| # varnishd -a 127.0.0.1:1111 -f /etc/varnish/default.vcl -s file,/tmp/foo.cache,1G |
This file contains hidden or 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
| #!/bin/bash | |
| { while sleep 1; do cat /proc/stat; done } | awk ' | |
| $1 == "cpu" { | |
| sum=$2+$3+$4+$5; | |
| idle=$5; | |
| diff_sum=sum-old_sum; | |
| diff_idle=idle-old_idle; |
This file contains hidden or 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
| Started by user anonymous | |
| Building remotely on catshark in workspace /tmp/workspace/nnpd | |
| FATAL: null | |
| java.lang.reflect.UndeclaredThrowableException | |
| at com.sun.proxy.$Proxy45.addCredentials(Unknown Source) | |
| at org.jenkinsci.plugins.gitclient.RemoteGitImpl.addCredentials(RemoteGitImpl.java:195) | |
| at hudson.plugins.git.GitSCM.createClient(GitSCM.java:583) | |
| at hudson.plugins.git.GitSCM.createClient(GitSCM.java:560) | |
| at hudson.plugins.git.GitSCM.checkout(GitSCM.java:855) | |
| at hudson.model.AbstractProject.checkout(AbstractProject.java:1367) |