Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian González nerdoc

View GitHub Profile
@nerdoc
nerdoc / rotajakiro-detect
Last active May 19, 2021
simple detect script for RotaJakiro
View rotajakiro-detect
#!/bin/bash
# you can run this script (if you dare...) using
# wget -qO- https://gist.githubusercontent.com/nerdoc/f058ac5a26abfe91b9f0bdfe862dc5ab/raw/c87455cfbfde19ce4877367a7f4f8785ca8a2cc8/rotajakiro-detect | sh
# The hash is not the current, this is technically not possible, because while I change save the above line,
# knowing the hash, it changes it. Greetings from Werner Heisenberg.
files="bin/systemd/systemd-daemon /usr/lib/systemd/systemd-daemon /home/*/.dbus/sessions/session-dbus /home/*/.gvfsd/.profile/gvfsd-helper"
for i in "${files}"; do
if [ -f "$i" ];
@nerdoc
nerdoc / install-nginx-php7-dokuwiki.sh
Last active Apr 22, 2021
Install script for Nginx/Dokuwiki on Ubuntu 20.04
View install-nginx-php7-dokuwiki.sh
#!/bin/sh
die() {
echo "ERROR: $1"
exit 1
}
[ $(whoami) = "root" ] || die "This script must be run as root"
echo "Please go to https://download.dokuwiki.org/, create a download archive, and paste the download link here:"
read -p ">" DOWNLOAD_LINK
View musicbox-setup.sh
#!/bin/bash
# install a mopidy/MPD server on a freshly installed Ubuntu Core - tested on a Raspberry Pi 2B+
# Should work on other Debian based distros too.
sudo apt update
sudo apt -y dist-upgrade
sudo apt -y install mopidy mopidy-mpd mopidy-spotify
sudo apt -y install usbmount