Skip to content

Instantly share code, notes, and snippets.

View teknofile's full-sized avatar
:octocat:
Focusing

teknofile - James Richardson teknofile

:octocat:
Focusing
View GitHub Profile
@teknofile
teknofile / mongo_backup.sh
Created July 17, 2022 04:42 — forked from sheharyarn/mongo_backup.sh
Mongodump Shell Script for Cronjob
#!/bin/bash
MONGO_DATABASE="your_db_name"
APP_NAME="your_app_name"
MONGO_HOST="127.0.0.1"
MONGO_PORT="27017"
TIMESTAMP=`date +%F-%H%M`
MONGODUMP_PATH="/usr/bin/mongodump"
BACKUPS_DIR="/home/username/backups/$APP_NAME"
@teknofile
teknofile / Puppet_6.3_Raspbian.md
Created June 24, 2020 14:22 — forked from aaroncoffey/Puppet_6.3_Raspbian.md
How to get puppet 6.3 up and running on a raspberry pi running Raspbian

How to get puppet 6.3 up and running on a raspberry pi running raspbian.

These instructions were tested on a pi 3 with the latest version of raspbian (Raspbian GNU/Linux 9.8 (stretch)).

This guide assumes basic competency with the command line. It also assumes you have a functional puppet master set up with the hostname of puppet. If you can ping puppet, you should be all set. Also note that I am just getting into puppet and am not a master of this domain. There may be errors, and there is probably a better way to do this, but in my searching, I was unable to locate a good set of instructions to get this working, so here we are. Feel free to contact me for corrections.

You can either switch to root sudo -i, or prepend all the following commands with sudo.

Update first

apt update

Keybase proof

I hereby claim:

  • I am teknofile on github.
  • I am teknofile (https://keybase.io/teknofile) on keybase.
  • I have a public key ASB2kzie42_xrBUl5TbCmdmIH4NMbPq60IbcEFKTUFMVqwo

To claim this, I am signing this object: