Skip to content

Instantly share code, notes, and snippets.

@nrocco
nrocco / _notes
Created May 13, 2019 18:42
Notes system using fzf, rg, fd and vim
#compdef notes
local line state
_arguments -C \
"1:Command:(ls search edit rm help)" \
"2:arg:->args"
if [[ "$state" == "args" ]]
then
case "$line[1]" in
@nrocco
nrocco / README.md
Last active December 15, 2023 00:41
Alpine Playground with libvirt

First download alpine-make-vm-image from https://github.com/alpinelinux/alpine-make-vm-image

wget https://raw.githubusercontent.com/alpinelinux/alpine-make-vm-image/v0.4.0/alpine-make-vm-image \
    && echo '5fb3270e0d665e51b908e1755b40e9c9156917c0  alpine-make-vm-image' | sha1sum -c \
    || exit 1
mv alpine-make-vm-image /usr/local/bin/
chmod +x /usr/local/bin/alpine-make-vm-image

Create a new alpine qcow2 image

INFO global: Vagrant version: 2.2.1
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.1/gems/vagrant-2.2.1/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.1/gems/vagrant-2.2.1/plugins/synced_folders/nfs/plugin.rb
@nrocco
nrocco / lsmod.txt
Created June 4, 2017 22:33
pxe boot kernel and initrd but no dhcp lease #1962
Module Size Used by
ip_vs_rr 12600 32
xt_ipvs 12663 6
ip_vs 141092 35 ip_vs_rr,xt_ipvs
xt_nat 12681 60
veth 13410 0
vxlan 45114 0
ip6_udp_tunnel 12755 1 vxlan
udp_tunnel 13373 1 vxlan
iptable_mangle 12695 5
@nrocco
nrocco / create_chome_socks_instance.md
Last active October 14, 2017 14:43
Dedicated Chromium Instance With Socks Proxy on macOS

How it works

TODO

setting it up

In the following code snippets the following two variables are used