Skip to content

Instantly share code, notes, and snippets.

View n1koo's full-sized avatar

Niko Kurtti n1koo

View GitHub Profile
[754149.893684] BUG: soft lockup - CPU#1 stuck for 22s! [migration/1:61]
[754150.081965] BUG: soft lockup - CPU#9 stuck for 22s! [ruby:20411]
[754150.138049] BUG: soft lockup - CPU#13 stuck for 23s! [migration/13:122]
[754163.053258] INFO: rcu_sched self-detected stall on CPU
[754163.053268] INFO: rcu_sched self-detected stall on CPU { 9} (t=1905167 jiffies g=92856546 c=92856545 q=0)
�L[754189.953266] BUG: soft lockup - CPU#1 stuck for 23s! [migration/1:61]
[754190.141546] BUG: soft lockup - CPU#9 stuck for 23s! [ruby:20411]
[754190.197631] BUG: soft lockup - CPU#13 stuck for 23s! [migration/13:122]
[754217.994974] BUG: soft lockup - CPU#1 stuck for 23s! [migration/1:61]
[754218.183258] BUG: soft lockup - CPU#9 stuck for 22s! [ruby:20411]
traceroute to nic.funet.fi (193.166.3.1), 30 hops max, 60 byte packets
1 route-dominate30.cloudatcost.com (162.244.26.1) 0.545 ms 0.524 ms 0.597 ms
2 74.116.120.154 (74.116.120.154) 0.388 ms 0.496 ms 0.527 ms
3 vl3831.te-0-1-0-3.tor0151-asr9a.ne.fibernetics.ca (74.205.214.57) 5.499 ms 5.527 ms 5.805 ms
4 208.85.223.218 (208.85.223.218) 5.117 ms 5.103 ms 5.037 ms
5 v508.core1.tor1.he.net (209.51.163.213) 5.154 ms 9.574 ms 5.200 ms
6 100ge13-1.core1.chi1.he.net (184.105.80.5) 22.875 ms 21.789 ms 21.740 ms
7 us-chi.nordu.NET (206.223.119.151) 14.625 ms 14.593 ms 14.606 ms
8 us-man.nordu.net (109.105.97.73) 25.623 ms 25.482 ms 25.483 ms
9 uk-hex.nordu.net (109.105.97.65) 93.329 ms 93.296 ms 93.320 ms
#!/bin/bash
set -x
while getopts "a:b:p:s:d" OPTION
do
case "${OPTION}"
in
a) ADDR=${OPTARG};;
b) BOOTDEV=${OPTARG};;
p) POWER=${OPTARG};;
%w{pdir1 pdir2}.each do |parentdir|
%w{dir1 dir2 dir3}.each do |subdir|
directory "/tmp/#{parentdir}/#{subdir}" do
mode 00775
owner "root"
group "root"
action :create
recursive true
end
end
#!/bin/bash
# Keep last 10h of images
# Remove all containers except those that just exited
output=$( docker ps -a|egrep -v 'CONTAINER ID|seconds ago'|cut -d' ' -f1| xargs -r docker rm -v 2>&1 )
logger -t "docker-gc" "$output"
# Keep last 10h of images
output=$( docker images -a|egrep -v 'IMAGE ID|seconds ago|minute|About an hour ago| [0-9] hours ago'| tr -s ' ' | cut -d ' ' -f 3| xargs -r docker rmi -f 2>&1)
logger -t "docker-gc" "$output"
#!/bin/sh
set -e
create() {
echo Setting up kv store
docker-machine create -d virtualbox kvstore > /dev/null && \
docker $(docker-machine config kvstore) run -d --net=host progrium/consul --server -bootstrap-expect 1
# store the IP address of the kvstore machine
@n1koo
n1koo / gist:7c0455b674d3c3a9d4cccf53837b270e
Created November 4, 2016 08:25
silentarmy on 14.04
#!/bin/bash
sudo add-apt-repository ppa:fkrull/deadsnakes -y
sudo add-apt-repository ppa:chris-lea/libsodium -y
sudo apt-get update
sudo apt-get install -y python3.5 libsodium-dev
git clone https://github.com/mbevand/silentarmy
cd silentarmy
make
n1ko@kuber1:~$ time scp -o ControlPath=none -o Ciphers=chacha20-poly1305@openssh.com xxx 100% 2767MB 115.3MB/s 00:24
real 0m26.440s
user 0m17.864s
sys 0m11.088s
n1ko@kuber1:~$ time scp -o ControlPath=none -o Ciphers=aes256-gcm@openssh.com xxx 100% 2767MB 162.8MB/s 00:17
real 0m19.457s
### Keybase proof
I hereby claim:
* I am n1koo on github.
* I am n1ko (https://keybase.io/n1ko) on keybase.
* I have a public key ASCT1CwACjzOu1tO3Rvd83MMZKUB2frf9yqiXSstk2U7ngo
To claim this, I am signing this object:
[_QWERTY] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,SYM_L , SYM_L ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_ESC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_LBRC , KC_RBRC ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
//├────────┼────────┼────────┼────────┼────────┼────