Instantly share code, notes, and snippets.

View 85-yubikey.rules
# Yubikey Udev Rule: running a bash script in case your Yubikey is inserted/removed
ACTION=="add", ENV{PRODUCT}=="1050/407/511", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/pam-session-locker.sh unlock"
ACTION=="remove", ENV{PRODUCT}=="1050/407/511", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/pam-session-locker.sh lock"
View keybase.md

Keybase proof

I hereby claim:

  • I am elvetemedve on github.
  • I am elvetemedve (https://keybase.io/elvetemedve) on keybase.
  • I have a public key ASDl1SIONjbjf2lkpUdLwCgXSHuYMtrDkbaQm11Uh9NDSQo

To claim this, I am signing this object:

View Vagrantfile
# ~/.vagrant.d/Vagrantfile
Vagrant.configure('2') do |config|
config.vm.provider :virtualbox do |vbox, override|
vbox.memory = 2048
vbox.cpus= 2
# Automatically remove unused virtual network interfaces (vboxnet*) when destroying a VM.
vbox.destroy_unused_network_interfaces = true
end
View Arch Linux, Fedora
sudo tee /etc/sudoers.d/vagrant > /dev/null << EOL
#
# Arch Linux, Fedora sudoers entries
#
# Allow passwordless startup of Vagrant with vagrant-hostsupdater.
Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts
Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts
%sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE