Skip to content

Instantly share code, notes, and snippets.

View nerdoc's full-sized avatar

Christian González nerdoc

View GitHub Profile
#just for syncing atom settings.
@nerdoc
nerdoc / install-nginx-php7-dokuwiki.sh
Last active April 22, 2021 16:01
Install script for Nginx/Dokuwiki on Ubuntu 20.04
#!/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
@nerdoc
nerdoc / rotajakiro-detect
Last active May 19, 2021 09:33
simple detect script for RotaJakiro
#!/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" ];