Skip to content

Instantly share code, notes, and snippets.

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
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:8577027
class baseclass {
# include $operatingsystem
# emulate some known good helper functions who behave the same as cfengine
import "cfengine"
# Disable SELinux
class {
'selinux': enabled => false;
'iptables': enabled => false;
}
View gist:7305249
rockj@pandora:/opt/pycharm/bin$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/j2sdk1.6-oracle/jre/bin/java 315 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
3 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
View gist:6308803
DEFAULT=$HOME/Maildir
MAILDIR=$HOME/Maildir
logfile "$HOME/.getmail/.maildrop.log"
log "Markers: ---------------------------------------------"
log " (**) from config file, (II) informational, (WW) warning"
log "--------------------------------------------------------"
log ""
######################################################################
View gist:6285918
#!/usr/bin/env bash
source "$rvm_scripts_path/functions/support"
usage()
{
printf "%b" "
ERROR:
$1
View gist:6285819
+ : 284 > rvm_trace_flag=1
+ : 289 > true 1 0 0 HOME=/home/rockj
+ : 293 > (( rvm_ignore_rvmrc == 0 ))
+ : 295 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
+ : 297 > [[ -s /etc/rvmrc ]]
+ : 295 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
+ : 297 > [[ -s /home/rockj/.rvmrc ]]
+ : 314 > [[ -z '' ]]
+ : 316 > (( UID == 0 ))
+ : 322 > rvm_user_install_flag=1
View gist:6285646
+ unset rvm_bin_path
+ unset GEM_HOME
+ unset IRBRC
+ unset MY_RUBY_HOME
+ unset rvm_path
+ unset rvm_prefix
+ unset rvm_version
++ dirname ./rvm_and_veewee_install.sh
+ BASE_DIR=.
+++ dirname ./rvm_and_veewee_install.sh
View gist:6285545
rockj@rockj-VirtualBox:~/nav-mirror-netmap/tools$ cat rvm_and_veewee_install.sh
#!/bin/bash
# Install rvm under VCS-ROOT/tools/.rvm and veewee to VCS-ROOT/tools/veewee
#
# Based on http://stacktoheap.com/blog/2013/06/19/building-a-debian-wheezy-vagrant-box-using-veewee/
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
View gist:6285537
rockj@rockj-VirtualBox:~/nav-mirror-netmap/tools$ ./rvm_and_veewee_install.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 162 0 0:00:01 0:00:01 --:--:-- 202
100 14536 100 14536 0 0 8945 0 0:00:01 0:00:01 --:--:-- 8945
Turning on ignore dotfiles mode.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 176 0 --:--:-- --:--:-- --:--:-- 254
You can’t perform that action at this time.