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 / 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"
@jonfriesen
jonfriesen / .travis.yml
Last active March 20, 2021 08:23 — forked from ryboe/.travis.yml
Example .travis.yml for Golang with CodeCov.io integration
language: go
# Only the last two Go releases are supported by the Go team with security
# updates. Any versions older than that should be considered deprecated.
# Don't bother testing with them. tip builds your code with the latest
# development version of Go. This can warn you that your code will break
# in the next version of Go. Don't worry! Later we declare that test runs
# are allowed to fail on Go tip.
go:
- 1.9
@jonfriesen
jonfriesen / template.bat
Created February 6, 2018 00:40
A simple bat file template
@::!/dos/rocks
@echo off
goto :init
:header
echo %__NAME% v%__VERSION%
echo This is a sample batch file template,
echo providing command-line arguments and flags.
echo.
goto :eof

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 / braceBalanceChecker.js
Created June 12, 2016 03:51
Simple kata for finding if a string has balanced braces (no other characters). Solves a simple programming interview question a friend had to do.
function isArrayBalanced(inputArray) {
function isBalanced(input) {
Array.prototype.peek = function() {
return this[this.length - 1];
};
if (input.length % 2 !== 0) return "NO";
var braceStack = [];
var braceMap = {
"}" : "{",
"]" : "[",
@jonfriesen
jonfriesen / hashstairs-recursive.js
Last active June 11, 2016 23:12
Create a set of stairs using hashes
// Build a function that draws a set of stairs using hashes
// that climb vertically from left to right. The bottom stairs
// should have no spaces in front of it, for example:
// This is a set of 3
// #
// ##
//###
function hashStairs(num, spaces, notFirstRun) {