Skip to content

Instantly share code, notes, and snippets.

View jonfriesen's full-sized avatar
🪐
hey there!

Jon Friesen jonfriesen

🪐
hey there!
View GitHub Profile
@jonfriesen
jonfriesen / mongo-status-checker.docker-compose.yml
Created July 25, 2018 18:15
Shows how to create a docker mongo status checker and run command after it connects successfully
version: '3.0'
services:
mongo:
image: mongo
ports:
- "27017:27017"
- "28017:28017"
environment:
MONGO_INITDB_ROOT_USERNAME: mongoadmin
MONGO_INITDB_ROOT_PASSWORD: secret
@jonfriesen
jonfriesen / auto-update-vscode.sh
Created August 11, 2019 19:53
script to auto update vs code
#!/bin/bash
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb
@jonfriesen
jonfriesen / docker-compose.yml
Created March 13, 2019 20:08
Spins up PostgreSQL & pgAdmin4 (username: pgadmin4@pgadmin.org password:admin)
version: '3.5'
services:
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
PGDATA: /data/postgres
@jonfriesen
jonfriesen / docker-builder.sh
Created July 24, 2018 21:15 — forked from didip/docker-builder.sh
Small helper script that automates Docker building and pushing
#!/bin/bash
set -ex
PARENT_DIR=$(basename "${PWD%/*}")
CURRENT_DIR="${PWD##*/}"
IMAGE_NAME="$PARENT_DIR/$CURRENT_DIR"
TAG="${1}"
REGISTRY="hub.docker.com"

Hello! What's your background, and what are you working on?

Good Morning! I'm Simon Bennett, a 25-year-old software engineer from the UK. I've always enjoyed building projects for myself on the side and teaching developers. When I am not consulting, I am working on my SaaS SnapShooter - a DigitalOcean backup server

SnapShooter provides a secure and easier way for DigitalOcean users to back up their droplets and volumes. DigitalOcean is very limited in only offering weekly backups and retention of the last four. This was not good enough for me at work so I built a system that enables hourly backups. SnapShooter also offers volume backups which is not offered by DigitalOcean.

Since launching in February to date, SnapShooter has taken 150,000 backups, managing 2,000 droplets and volumes and has 44 paying customers at a MRR of $834.

What motivated you to get started with SnapShooter?

@jonfriesen
jonfriesen / wsl-go-install.sh
Last active January 26, 2018 22:06
Script to install Go 1.8.3 on Linux and WSL (Windows Subsystem for Linux)
#!/bin/bash
set -e
GVERSION="1.8.3"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="/mnt/d/GoPath/"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"

Keybase proof

I hereby claim:

  • I am jonfriesen on github.
  • I am jonfriesen (https://keybase.io/jonfriesen) on keybase.
  • I have a public key ASBfnWKFBT-cEAQ5AbDFsBd0E_5T7q_93lSbrtLH1IyTcgo

To claim this, I am signing this object:

service: my-bucket-test
provider:
name: aws
runtime: nodejs6.10
functions:
hello:
handler: handler.hello
events:
- s3:
bucket: testbucket
[{"id":"5153fe16-9035-4ba7-ac3d-afd478402235","first_name":"Dennis","last_name":"Parker","domain":"macromedia.com","email":"Dennis.Parker@macromedia.com","gender":"Male","city":"Nyazepetrovsk","address":"8 Boyd Avenue","phone_number":"7-(908)778-0060"},
{"id":"4672aba7-bf14-4ec7-a426-b0f266cdd4a6","first_name":"Donna","last_name":"Evans","domain":"microsoft.com","email":"Donna.Evans@microsoft.com","gender":"Female","city":"Ambanja","address":"740 Hazelcrest Place","phone_number":"261-(502)571-6547"},
{"id":"4aa83d08-90bd-4b5e-bfb3-bf21c925bc2d","first_name":"Edward","last_name":"Jenkins","domain":"ning.com","email":"Edward.Jenkins@ning.com","gender":"Male","city":"Patabog","address":"9853 Chinook Pass","phone_number":"63-(763)910-9686"},
{"id":"15dd7efb-cbef-407a-9181-7e6ac3614dcf","first_name":"Lori","last_name":"Lawson","domain":"usa.gov","email":"Lori.Lawson@usa.gov","gender":"Female","city":"Qiawan","address":"47062 Harper Point","phone_number":"86-(778)959-1236"},
{"id":"27ebe034-8f2c-44b5-8b68-201ff558f
@jonfriesen
jonfriesen / OwinFileServerControl.cs
Last active June 12, 2016 03:53
Creates a http file server, if /exit is called server is shutdown
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Hosting;
using Owin;
using Microsoft.Owin.FileSystems;
using Microsoft.Owin.StaticFiles;
using System.Threading;