Skip to content

Instantly share code, notes, and snippets.

@airbornelamb
airbornelamb / 1-start.js
Created July 19, 2023 22:31 — forked from jmadden/1-start.js
Voice mail system using Twilio Functions
exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.VoiceResponse();
const OWNER = '+1##########'; //Your mobile number.
if(event.From == OWNER){
const gather = twiml.gather({
action:'/callOut'
});
gather.say("Please enter the phone number you'd like to call followed by the pound sign.");
@airbornelamb
airbornelamb / README.md
Last active November 8, 2023 14:27
OSMC autoplay file on startup

Purpose: These files will allow you to setup Kodi/OSMC to autoplay a playlist on bootup. Useful for kiosks or TVs that you want to use to play a stream. I use this with a Raspberry Pi 3B+ running OSMC from the Raspberri Pi Imager https://www.raspberrypi.com/software/

  1. Within ~/.kodi/addons/service.autoexec/ create addon.xml and autoexec.py
  2. Within ~/.kodi/userdata/playlists/video/ create streamtest.m3u and edit the file to reference whatever you want to play
  3. Enable the autoexec service by navigating in the menu to Settings > Add-ons > My add-ons > Services > Autoexec Service
  4. You can watch the log file using the command tail -F /home/osmc/.kodi/temp/kodi.log to ensure that it starts the playlist. Now when you reboot it should wait 15 seconds and play from your playlist.

Reference: https://kodi.wiki/view/Autoexec_Service

0-mail.com
027168.com
0815.su
0sg.net
10mail.org
10minutemail.co.za
11mail.com
123.com
123box.net
123india.com

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 January 1, 2019 20:22
Linux bootstrap for latest Docker & Docker-compose
#!/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 November 7, 2018 05:47
Backup docker volumes to minio
#!/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
@airbornelamb
airbornelamb / installminio.sh
Created September 27, 2018 07:09
Minio installer
#!/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"
@airbornelamb
airbornelamb / README.md
Created September 27, 2018 01:52
Minio stack
  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 January 3, 2021 11:58 — forked from harshavardhana/README.md
REX-Ray with Minio

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 12:13
dynu updater script to add to crontab
#!/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; }