Skip to content

Instantly share code, notes, and snippets.


Géza Búza elvetemedve

View GitHub Profile
elvetemedve / 85-yubikey.rules
Created Oct 28, 2018
Lock/unlock user session on Linux with Yubikey
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/ unlock"
ACTION=="remove", ENV{PRODUCT}=="1050/407/511", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/ lock"

Keybase proof

I hereby claim:

  • I am elvetemedve on github.
  • I am elvetemedve ( on keybase.
  • I have a public key ASDl1SIONjbjf2lkpUdLwCgXSHuYMtrDkbaQm11Uh9NDSQo

To claim this, I am signing this object:

elvetemedve / Vagrantfile
Last active Aug 29, 2015
Vagrant global configuration
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
elvetemedve / Arch Linux, Fedora
Last active Dec 31, 2021
Allow Vagrant usage without providing sudo password
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