Install nvm and create hotfix for
nvm install
command on FreeBSD.
echo "y" | pkg install bash git gmake wget
cat <> $HOME/.profile
#!/bin/bash | |
# Crontab | |
# @reboot root /path/to/autostart.sh 60 | |
xe_param() { | |
awk -v param="$1" '$1 == param' | awk -F': ' '{ print $NF }' | |
} | |
if [[ $1 -gt 0 ]]; then |
#!/usr/bin/env bash | |
__dirname(){ local d s="$0";while [ -h "$s" ];do d="$(cd -P "$(dirname "$s")">/dev/null 2>&1&&pwd)";s="$(readlink "$s" 2>&1)";[[ $s != /* ]]&&s="$d/$s";done;echo "$(cd -P "$(dirname "$s")">/dev/null 2>&1&&pwd)";} |
#!/usr/bin/env bash | |
repo_upstream_url() { | |
local repo_url | |
local repo_host | |
local repo_path | |
local repo_upstream | |
local repo_api_private_token | |
local repo_api_url | |
local repo_api_key |
#!/bin/sh | |
REPO_URL=https://github.com/feathersjs-ecosystem/feathers-sequelize.git | |
git remote add upstream $REPO_URL | |
git fetch upstream | |
git checkout ${BRANCH:-master} | |
git merge upstream/master | |
git push |
#!/bin/sh | |
duration="${1}"; shift | |
if [ "$#" -eq 0 ] || [ "$(echo "$duration" | tr -dc '0-9')" != "$duration" ]; then | |
echo "Usage: $0 DURATION COMMAND [ARG]..." | |
exit 1 | |
fi | |
( "$@" & |
#!/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 |
#!/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 | |
_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 | |
isipv4() { | |
if [[ $# -eq 0 ]] ; then | |
return 1 | |
fi | |
if [[ $# -gt 1 ]] ; then | |
local this="${FUNCNAME[0]}" |