Skip to content

Instantly share code, notes, and snippets.

View Serverfrog's full-sized avatar
🛠️
CI/CD Pipeline Plumbing and Kotlin explorer

Bastian Venz Serverfrog

🛠️
CI/CD Pipeline Plumbing and Kotlin explorer
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Serverfrog
Serverfrog / r_place.user.js
Last active April 4, 2022 11:09
r_place.user.js
// ==UserScript==
// @name Hasan r/Place
// @namespace https://www.reddit.com/r/Place/
// @version 1.0.5
// @description Place template script
// @author r/Place
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// @license GPL-3.0
@Serverfrog
Serverfrog / secure-deluser.sh
Last active September 21, 2016 04:38
A bit more Secure way to delete a User based on http://www.cyberciti.biz/faq/linux-remove-user-command/
#!/bin/sh
#A more Secure deletion of a user.
# Need Username and location where the backup should be
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
if [ ! $# -eq 2 ]; then
export PS1="\[\033[38;5;9m\]\d\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;9m\]\A\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;196m\][\$?]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;48m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
#!/bin/sh
sed -i -e 's/main/main contrib non-free/g' /etc/apt/sources.list
apt-get update
apt-get install -y aptitude
aptitude dist-upgrade -y
aptitude install -y htop iftop iotop nano tmux screen mmv dtrx dstat mtr curl rsync httping tree unzip unrar p7zip p7zip-rar git build-essential zsh
mkdir -p /tmp/autinstall/
cd /tmp/autinstall/
git clone https://github.com/nanorc/nanorc.git
cd nanorc