Install nvm and create hotfix for
nvm install
command on FreeBSD.
echo "y" | pkg install bash git gmake wget
cat <> $HOME/.profile
Ubuntu GNOME (and Debian) tweak scripts colletion... |
#!/usr/bin/env bash | |
{ # this ensures the entire script is downloaded # | |
if [ $EUID != 0 ]; then | |
echo "ERROR: You have to be root to execute this script" | |
exit 1 | |
fi | |
DEBIAN_FRONTEND=noninteractive |
#!/usr/bin/env bash | |
{ # this ensures the entire script is downloaded # | |
if [ $EUID != 0 ]; then | |
echo "ERROR: You have to be root to execute this script" | |
exit 1 | |
fi | |
DEBIAN_FRONTEND=noninteractive |
/** | |
* @function | |
* @name Anonymous self-invoked function | |
* @description Hide Cloudflare's Always Online™ alert and reload page after 60 seconds | |
* @author Honza Hommer <honza@hommer.cz> | |
*/ | |
(function () { | |
var alert | |
if (alert = document.getElementById('cf_alert_div'), alert !== null && alert.innerText.indexOf('offline') === -1) |
# ~/.bash_aliases: Bash alias, function and prompt definitions. | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
export HISTFILESIZE=1000 | |
export HISTCONTROL=ignoredups | |
export LSCOLORS=ExGxxxxxCxxxxxCxCxExEx |
#!/usr/bin/env bash | |
isversion() { | |
if [[ $# -lt 2 ]] ; then | |
local opd='`=`' | |
local ops='`<` or `>` or `=`' | |
echo "usage: $0 <versions> <versions> [operator=$opd]" | |
echo -e "\tversions - Versions to compare" | |
echo -e "\toperator - Operator to compare, $ops. Default to $opd." |
#!/usr/bin/env bash | |
isipv4() { | |
if [[ $# -eq 0 ]] ; then | |
return 1 | |
fi | |
if [[ $# -gt 1 ]] ; then | |
local this="${FUNCNAME[0]}" |
#!/usr/bin/env bash | |
_ver=$(echo $BASH_VERSION | awk -F. '{ printf "%i%i", $1, $2 }') | |
ismac() { | |
if [[ $# -eq 0 ]] ; then | |
return 1 | |
fi | |
if [[ $# -gt 1 ]] ; then |
#!/usr/bin/env bash | |
{ # this ensures the entire script is downloaded # | |
for i in {0..9}; do | |
for j in {10..30}; do | |
icmp=$(ping -o -t1 10.0.$i.$j) | |
if [ $? = 0 ]; then | |
echo 10.0.$i.$j |