Skip to content

Instantly share code, notes, and snippets.

View free_email_providers_newlined.txt
0-mail.com
027168.com
0815.su
0sg.net
10mail.org
10minutemail.co.za
11mail.com
123.com
123box.net
123india.com
View keybase.md

Keybase proof

I hereby claim:

  • I am airbornelamb on github.
  • I am airbornejosh (https://keybase.io/airbornejosh) on keybase.
  • I have a public key ASBDccB4WZiiGRZQUejR9fZGpBBf3ZzbSps8TJ9YznrsVAo

To claim this, I am signing this object:

@airbornelamb
airbornelamb / bootstrapdocker.sh
Last active Jan 1, 2019
Linux bootstrap for latest Docker & Docker-compose
View bootstrapdocker.sh
#!/usr/bin/env bash
command -v curl >/dev/null 2>&1 || { echo "I require curl but it's not installed." >&2; }
# Variable declarations
COMPOSEVERSION="1.23.1"
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
@airbornelamb
airbornelamb / dockertominio.sh
Last active Nov 7, 2018
Backup docker volumes to minio
View dockertominio.sh
#!/usr/bin/env bash
BACKUPTIME=`date +%Y-%m-%d`
BACKUPNAME=dockervolumes-$BACKUPTIME.tar.gz
SOURCEFOLDER=/var/lib/docker/volumes
DESTINATIONFOLDER=/tmp/dockerbackup
BACKUPFULLPATH=$DESTINATIONFOLDER/$BACKUPNAME
MINIOBUCKET=minio/dockervolumebackup
# Create the backup
View installminio.sh
#!/usr/bin/env bash
# Variable declarations
baseurl="https://dl.minio.io/server/minio/release/"
arch="linux-amd64"
# Or use other archs such as linux-arm, linux-arm64, darwin-amd64, windows-amd64
dlstring="$baseurl$arch/minio"
minio_user="minio-user"
minio_binary="/usr/local/bin/minio"
minio_data_dir="/usr/local/share/minio"
View README.md
  1. insert drives
  2. partition and format drives
  3. create mountpoints
  4. add mounts to /etc/fstab
  5. I like to reboot to test mounting went successfully on reboot
  6. create the docker secrets
  7. docker stack deploy or run it in portainer
@airbornelamb
airbornelamb / rexray-minio.md
Last active Jan 3, 2021 — forked from harshavardhana/README.md
REX-Ray with Minio
View rexray-minio.md

Getting Started

The following commands will install the latest version of REX-Ray to /usr/bin/rexray on Linux systems:

$ sudo apt install s3fs
$ curl -sSL https://dl.bintray.com/rexray/rexray/install | sh -s stable

Depending on the Linux distribution, REX-Ray will be registered as either a SystemD or SystemV service.

Configure

REX-Ray requires a configuration file for storing details used to communicate with storage providers. This can include authentication credentials and driver specific configuration options. After REX-Ray has been installed, copy and paste the contents below to a new file on the host at /etc/rexray/config.yml to configure s3fs storage driver.

@airbornelamb
airbornelamb / dynu_update.sh
Last active May 30, 2018
dynu updater script to add to crontab
View dynu_update.sh
#!/bin/sh
#
# https://www.dynu.com/en-US/DynamicDNS/IP-Update-Protocol
# Hash password at https://www.dynu.com/NetworkTools/Hash
# DON'T FORGET TO ADD TO CRONTAB and CHMOD 700
# ex.. @hourly /home/user/path/to/script
mkdir -p $HOME/dynu
command -v wget >/dev/null 2>&1 || { echo "I require wget but it's not installed." >&2; }
@airbornelamb
airbornelamb / documentationoptions.md
Last active Mar 26, 2020
Documentation options
View documentationoptions.md

For paid options, process street is undoubtedly the best. For libre it depends on if you need PDF export and whatnot. If that is needed then Sphinx has all the bells and whistles and can be used with readthedocs if you want it hosted for free (publicly visible). The other options have to be hosted in some way on a VPS etc. For something light that doesn't need PDF export then docsify or mkdocs is probably the best. For something that outsiders can edit and that does pdf/epub export than gitbook is probably the best. I think ultimately gitbook is the best middle of the road for libre but you need a vps.

Process street https://www.process.st/ - Paid but very simple and has features none of the other ones have, like the ability to create a new instance of a process workflow and go through it (onboard a new student etc)

Slate https://github.com/lord/slate - more focused on coding development

Docusaurus https://docusaurus.io/ - pretty good. hooks in with algolia search which is very good for searching.

Booksta

@airbornelamb
airbornelamb / convertmultiplemarkdown.md
Last active Nov 19, 2021
Systematic way to convert multiple markdown files to html
View convertmultiplemarkdown.md