Skip to content

Instantly share code, notes, and snippets.

View gist:9746336
rockj@pandora:~$ traceroute 88.87.43.98 -m 255
traceroute to 88.87.43.98 (88.87.43.98), 255 hops max, 60 byte packets
1 192.168.69.254 (192.168.69.254) 0.577 ms 0.825 ms 1.095 ms
2 1.84-48-58.nextgentel.com (84.48.58.1) 19.401 ms 19.465 ms 21.253 ms
3 34.84-48-3.nextgentel.com (84.48.3.34) 30.382 ms 30.452 ms 34.320 ms
4 te6-5-nix2.cr0-r66.dipx-osl.no.p80.net (193.156.120.67) 34.403 ms 34.479 ms 36.206 ms
5 xe-0-0-3.no.hmg9.pe01.port80.se (82.96.1.14) 36.295 ms 38.078 ms 40.325 ms
6 vl2007.no.osl.hmg9.cr0.port80.se (82.96.1.13) 40.394 ms 41.232 ms 38.727 ms
7 xe-0-0-3.no.hmg9.pe01.port80.se (82.96.1.14) 25.885 ms 27.908 ms 27.995 ms
8 vl2007.no.osl.hmg9.cr0.port80.se (82.96.1.13) 38.759 ms 38.839 ms 38.924 ms
View gist:9784983
# strace -fp 19775
Process 19775 attached - interrupt to quit
select(8, [7], [], [], {0, 753152}) = 0 (Timeout)
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
@norrs
norrs / zookeeper-1371.patch
Created Apr 1, 2014
zookeeper-1371.patch
View zookeeper-1371.patch
Index: src/java/test/org/apache/zookeeper/test/MultiTransactionTest.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/java/test/org/apache/zookeeper/test/MultiTransactionTest.java (revision b5c25d7ee1b940f919f718032d101c26c46f30b2)
+++ src/java/test/org/apache/zookeeper/test/MultiTransactionTest.java (revision )
@@ -26,7 +26,6 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
View ZOOKEEPER-1371.patch
diff --git build.xml build.xml
index 212174e..c641d4f 100644
--- build.xml
+++ build.xml
@@ -243,6 +243,15 @@ xmlns:maven="antlib:org.apache.maven.artifact.ant">
<path refid="java.classpath"/>
</path>
+ <path id="test.java.classpath.without.log4j">
+ <pathelement location="${test.java.classes}" />
View gist:10528823
; TG14-partysone
tg14 NS brad.tg14.gathering.org.
tg14 NS janet.tg14.gathering.org.
brad.tg14 A 151.216.254.2
AAAA 2a02:ed02:254::2
janet.tg14 A 151.216.253.2
AAAA 2a02:ed02:253::2
; Husk å legge til dette i partyzone NS
;ns1.tg14 CNAME brad.tg14
;ns2.tg14 CNAME janet.tg14
View gist:e92f24e82acd55ce0cbb
[ -s "/home/rockj/.nvm/nvm.sh" ] && . "/home/rockj/.nvm/nvm.sh" # This loads nvm
rockj@pandora:~/dev/javascript$ [ -s "/home/rockj/.nvm/nvm.sh" ] && . "/home/rockj/.nvm/nvm.sh"
rockj@pandora:~/dev/javascript$ nvm uninstall 0.10
Uninstalled node v0.10.29
rockj@pandora:~/dev/javascript$ nvm install 0.10
######################################################################## 100.0%
Now using node v0.10.29
rockj@pandora:~/dev/javascript$ npm cache clean
rockj@pandora:~/dev/javascript$ mkdir experiments
rockj@pandora:~/dev/javascript$ cd experiments/
View gist:94db6ee965f4ce622ae5
{"timestamp":"2014-09-28T13:43:32.998048+0200","level":"error","message":"InfluxDB: Error setting up event object - [\"/etc/sensu/extensions/influx.rb:24:in `run'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-extension-1.0.0/lib/sensu/extension.rb:99:in `safe_run'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.13.1/lib/sensu/server.rb:307:in `block (2 levels) in handle_event'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.13.1/lib/sensu/server.rb:206:in `call'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.13.1/lib/sensu/server.rb:206:in `block in mutate_event_data'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-extensions-1.0.0/lib/sensu/extensions/mutators/json.rb:16:in `run'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-extension-1.0.0/lib/sensu/extension.rb:99:in `safe_run'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.13.1/lib/sensu/server.rb:227:in `mutate_event_data'\", \"/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.13.1/
View gist:26f222d8514259cfbf30
-- mod-[1..9] %! Switch to workspace N
-- mod-shift-[1..9] %! Move client to workspace N
[((m .|. modMask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
View gist:646666
package no.ntnu.tdt4237.helperactions;
public class StringHelpers {
public static String getBlogOwnerName(String url)
{
return urlToString(url).replaceFirst("http?://.*/blog/","");
}
public static String getProfileOwnerName(String url)
@norrs
norrs / PKI-gpg question.txt
Created Nov 24, 2010
PKI-gpg question.txt
View PKI-gpg question.txt
21:01:46 Rockj | Hey, anyone around who could assist me in using GPG?
21:02:25 Rockj | I've used GPG and have setup a pair and made my public key available on key servers.. and I know how to setup my email client so it works...
21:02:53 Rockj | but I have a problem, I would like to start using GPG at work... but as everyone know, you should hide and keep your secret key secret and hidden in
| the shadows out of everyone's reach
21:03:55 Rockj | now, I've stored my private key on an encrypted usb pen drive (LUKS)... problem is that I'm using OS X at work, which basically can't mount up LUKS
| encrypted volumes....
21:04:19 Rockj | I've heard something about generating a sub-pair or something, which I think you could mark as TRUSTED in your master-pair?
21:05:14 Rockj | so incase work-pair is no longer a trusted source for identifying me (coworker stole it, or someone stole laptop etc etc) , I could simply revoke
| just my work-pair and assign a new one and mark it a
You can’t perform that action at this time.