Skip to content

Instantly share code, notes, and snippets.

View arbal's full-sized avatar
👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);

Arbal arbal

👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);
  • Los Angeles, CA
  • 09:42 (UTC -07:00)
View GitHub Profile
@arbal
arbal / install-duf-latest-deb.sh
Created January 2, 2021 19:26
Download and install latest release of 'duf' from github for Debian / Ubuntu on amd64 / armhf (Raspberry Pi 4)
#!/usr/bin/env bash
set -euo pipefail
# install-duf-latest-deb.sh
# - Downloads and installs the latest duf (https://github.com/muesli/duf) release from github
# - Tested for Ubuntu & Debian running on amd64 & armhf
# Enable xtrace if the DEBUG environment variable is set
if [[ ${DEBUG-} =~ ^1|yes|true$ ]]; then
#!/usr/bin/env bash
set -euo pipefail
# histdump.sh
#
HOME=${HOME:-'/root'}
arg1=${1:-}
#!/usr/bin/env bash
set -euo pipefail
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
@arbal
arbal / bashrc_ccze.sh
Created February 16, 2021 23:08 — forked from neggles/bashrc_ccze.sh
Colorize things with CCZE
# CCZE Colourize Config for Ubuntu
# http://lintut.com/colorize-log-files-on-linux-using-ccze-tool/
# http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
CCZE=`which ccze`
if [[ "$TERM" != dumb ]] && [[ -n "$CCZE" ]]; then
function colourify { $@ | $CCZE -A; }
alias colourify=colourify
alias configure='colourify ./configure'
@arbal
arbal / README.md
Created March 1, 2021 01:05 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@arbal
arbal / PVE-postinstall-5x.md
Created March 7, 2021 08:45 — forked from mrpeardotnet/PVE-postinstall-5x.md
PVE-postinstall-6.x

Proxmox PVE 6.x Post Installation Steps

This cheatsheet helps to set up your Proxmox Virtual Environment (PVE) host after fresh installation. Designed and tested on PVE version 6.x.

Note about sudo

I do not prepend sudo command to any of commands listed here, but keep in mind that nearly all commands requires su privileges, so use sudo if your account happen to not have root access.

How to edit config files

The simplest way to edit config file is to use vim.tiny editor, for example to edit vzdump.conf file use this command:

@arbal
arbal / set_autodev_hook.sh
Created March 9, 2021 20:42
github.com/whiskerz007/proxmox_hassio_lxc/master/set_autodev_hook.sh
#!/usr/bin/env bash
# Setup script environment
set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error
set -o pipefail #Pipe will exit with last non-zero status if applicable
shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit'
trap die ERR
@arbal
arbal / brew-install-dublin-traceroute-with-setuid.sh
Last active March 10, 2021 06:02
brew-install-dublin-traceroute-with-setuid.sh
#!/usr/bin/env bash
set -euo pipefail
# brew-install-dublin-traceroute--HEAD-with-root-setuid.sh
#
# Ask for sudo password here instead of after building dublin-traceroute, for convenience.
sudo -v
@arbal
arbal / rmate.conf
Created March 16, 2021 03:27
rmate.conf for sshd
# Allow rmate to work without parameters
AcceptEnv RMATE_*
@arbal
arbal / signal_cli_mac.sh
Created March 21, 2021 08:53 — forked from mtigas/signal_cli_mac.sh
[macos] homebrew-installed signal w/v2 group support (fixes libzkgroup warning)
#!/usr/bin/env bash
set -e
set -x
brew install signal-cli
SIGNAL_LIBEXEC_LIBDIR="`brew --prefix signal-cli`/libexec/lib"
# zkgroup-java*.jar --- remove the linux x86_64 bundled lib