This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f=function(){var f=Function;return f.apply(new f,arguments);}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
addressfamily inet | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Automatically upgrade packages from these (origin:archive) pairs | |
Unattended-Upgrade::Allowed-Origins { | |
"${distro_id}:${distro_codename}-security"; | |
"${distro_id}:${distro_codename}-updates"; | |
"${distro_id}:${distro_codename}-proposed"; | |
"${distro_id}:${distro_codename}-backports"; | |
}; | |
// List of packages to not update (regexp are supported) | |
Unattended-Upgrade::Package-Blacklist { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt::autoremove::suggestsimportant false; | |
apt::get::install-suggests false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# u may use this script in cron or in the shell directly. Should work on any Linux distribution | |
# an alternative would be checking for /var/run/reboot-required to exist | |
running=$(uname -r) | |
kernels=/lib/modules | |
installed=($(ls $kernels)) | |
latest=${installed[@]:(-1)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# @see: http://wiki.ubuntuusers.de/chroot/Live-CD | |
# mount partition | |
mount /dev/sda1 /mnt | |
# mount boot here if neccessary | |
# mount system environment | |
# .X11 is for xserver and resolv.conf for networking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
# rvm install | |
curl -sSL https://get.rvm.io | bash -s stable | |
# fish integration --> https://rvm.io/integration/fish | |
curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish | |
# make gems and ruby-binaries available in shell per default: | |
egrep "^[[:space:]]*rvm" config.fish; or echo "rvm>/dev/null">>~/.config/fish/config.fish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
# charset should always be set, dueto nginx won't specify it in the header if omitted | |
charset utf-8; | |
# charset iso-8859-1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl=/usr/bin/curl | |
hosts="www.vk.uni-halle.de www.wissenschaftsnacht-halle.de" | |
for host in $hosts; do | |
http_status=$($curl curl -sI --get http://$host | head -n1 | awk '{print $2}' ) | |
if [[ "$http_status" -ne "200" ]]; then | |
echo "Host $host returned status '$http_status'" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
me=$(basename $0) | |
echo "-> copy the personal rsa key to other machines for certificate based authentication" | |
echo Usage: | |
echo "$me [user@]machine [[user@]machine [...]]" | |
fi | |
NewerOlder