Skip to content

Instantly share code, notes, and snippets.

@flisk
flisk / remove-rsyslog.sh
Created July 27, 2021 09:02
Remove rsyslog and its log files from Debian systems not requiring rsyslog compatibility
#!/usr/bin/env bash
#
# remove-rsyslog -- remove rsyslog and its log files
#
# As of Debian 10, rsyslog exists mainly for backwards compatibility reasons,
# and it is not required for the base system to operate. If you do not require
# this backwards compatibility, you can use this script to remove rsyslog and
# all of its redundant log files from your system.
#
systemctl disable --now rsyslog.service
@alexwybraniec
alexwybraniec / gist:2972487
Created June 22, 2012 12:32
Enabling Memcached graphing in Munin, Ubuntu 10.04 LTS, with munin-node already installed
sudo apt-get update
sudo apt-get install munin-plugins-extra
cd /etc/munin/plugins
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates
sudo aptitude install libcache-memcached-perl
sudo /etc/init.d/munin-node restart
sudo tail -f /var/log/munin/munin-node.log
@dex4er
dex4er / eToken-9.sh
Last active October 31, 2023 15:05
eToken
# udev
wget https://gist.githubusercontent.com/dex4er/1354710/raw/0f9738c7439cdfb9e4446663d137f91ee153b4d8/etc_udev_rules.d_90-hid-eToken.rules
sudo cp etc_udev_rules.d_90-hid-eToken.rules /etc/udev/rules.d
sudo service udev reload
# required packages
sudo apt-get -yy install pcscd opensc
# legacy library
wget http://mirrors.kernel.org/ubuntu/pool/universe/h/hal/libhal1_0.5.14-8_amd64.deb