All gists

waja
Last active 5 months ago
0 0 2
1 # wget https://gist.githubusercontent.com/waja/d9e176f712ae6a6e4442486df80a13ba/raw/deploy_unattended-upgrades.sh -O /tmp/a && sh /tmp/a
2 apt-get -y install unattended-upgrades needrestart && \
3 cat > /etc/apt/apt.conf.d/10periodic <<EOF
4 APT::Periodic::Update-Package-Lists "1";
5 APT::Periodic::Download-Upgradeable-Packages "1";
6 APT::Periodic::AutocleanInterval "7";
7 APT::Periodic::Unattended-Upgrade "1";
8 EOF
9 sed -i 's#// "o=Debian,n=jessie"# "o=Debian,n=jessie"#' /etc/apt/apt.conf.d/50unattended-upgrades && \
10 sed -i 's#// "o=Debian,n=jessie-updates"# "o=Debian,n=jessie-updates"#' /etc/apt/apt.conf.d/50unattended-upgrades && \
waja
Last active 5 months ago
0 0 1
1 #!/bin/bash
2 # See http://blog.christhulhu.de/2016/06/28/amazon-kindle-fire-google-playstore-installieren-und-werbung-entfernen/
3 # Install playstore
4 adb kill-server
5 adb start-server
6 adb install com.google.android.gms-6.6.03_\(1681564-036\)-6603036-minAPI9.apk
7 adb install GoogleLoginService.apk
8 adb install GoogleServicesFramework.apk
9 adb shell pm grant com.google.android.gms android.permission.INTERACT_ACROSS_USERS
10 adb install com.android.vending-5.9.12-80391200-minAPI9.apk
waja
Last active 5 months ago
0 0 1
1 #!/bin/sh
2 MYSQLADMIN_CFG="/etc/mysql/mariadb.conf.d/90-mysqladmin.cnf"
3 # generate password
4 PASS=$(perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)');
5 # adjust /etc/mysql/debian.cnf (used as defaults file by system scripts)
6 sed -i "s/^password =.*$/password = ${PASS}/" /etc/mysql/debian.cnf
7 sed -i "s/^user =.*$/user = debian-sys-maint/" /etc/mysql/debian.cnf
8 # create config file for mysqladmin itself (maybe not needed)
9 umask 066
10 cat > ${MYSQLADMIN_CFG} <<EOF
waja
Last active 5 months ago
0 0 3
1 #!/bin/bash
2 # wget https://gist.githubusercontent.com/waja/d0995072b54b4ab5cb2b5e9ab9962543/raw/deploy_icinga2_agent_hw.sh -O /tmp/b && bash /tmp/b
3
4 . /etc/os-release
5
6 if [ "$(systemd-detect-virt)" == "none" ]; then
7 modprobe ipmi_si && modprobe ipmi_devintf && \
8 apt-get install -y --no-install-recommends -t ${VERSION_CODENAME}-backports freeipmi-tools libipc-run-perl pciutils && \
9 echo "nagios ALL=(root) NOPASSWD: /usr/sbin/ipmi-sensors, /usr/sbin/ipmi-sel, /usr/sbin/ipmi-fru, /usr/sbin/ipmi-dcmi" > /etc/sudoers.d/check_ipmi_sensor && \
10 echo "nagios ALL=(root) NOPASSWD: /usr/sbin/smartctl" > /etc/sudoers.d/check_smart && \