Skip to content

Instantly share code, notes, and snippets.

@johnfzc
johnfzc / gist:caa64ef5117c19e82d56322457a822d1
Created April 7, 2016 01:29
Minimum AAA Configuration for Direct Priv 15 Access
username <username> priv 15 secret <your password>
aaa new-model
aaa authentication login default local
aaa authorization exec default local
@johnfzc
johnfzc / gist:682e543a25803b223bda
Created March 25, 2016 12:39
DM overlay creation that actually fucking works
for device in sdb3 sdc1 sdd1 sde1; do
dev=/dev/$device
ovl=/home/ubuntu/$device-overlay
truncate -s200M $ovl
newdevname=$device
size=$(blockdev --getsize "$dev")
loop=$(losetup -f --show -- "$ovl")
printf '%s\n' "0 $size snapshot $dev $loop P 8" | dmsetup create "$newdevname"
done
@johnfzc
johnfzc / gist:ab3b2383b6b5b4819ee1
Created March 20, 2015 14:42
Openwrt Compilation Failure
johnf@carbon:~/personal/projects/openwrt/trunk$ make
make[1] world
make[2] target/compile
make[3] -C target/linux compile
make[2] package/cleanup
make[2] package/compile
make[3] -C package/libs/toolchain compile
make[3] -C package/libs/libnl-tiny compile
make[3] -C package/libs/libjson-c compile
make -r world: build failed. Please re-run make with V=s to see what's going on