Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Learning as much

Jereme Causing jeremejazz

:octocat:
Learning as much
View GitHub Profile
@jeremejazz
jeremejazz / emedia_pianomethod_linux.md
Last active Jul 10, 2021
How to Install Emedia Piano & Keyboard Method on Ubuntu (using WINE)
View emedia_pianomethod_linux.md

Install Emedia Piano & Keyboard method on Ubuntu (using WINE)

self notes

sudo apt install fluidsynth
View Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
View open_source_church_software.md
View rawurlencode.sh
rawurlencode() {
local string="${1}"
local strlen=${#string}
local encoded=""
local pos c o
for (( pos=0 ; pos<strlen ; pos++ )); do
c=${string:$pos:1}
case "$c" in
[-_.~a-zA-Z0-9] ) o="${c}" ;;
@jeremejazz
jeremejazz / update_theme.sh
Created May 26, 2019
Hugo Theme Update Script. Uses git subtree
View update_theme.sh
#!/usr/bin/env bash
# This script will download the latest theme release from the Github repository.
# requires jq
REPO="" # github "user/repo"
GITHUB_USERNAME=""
metas=$(echo $REPO | tr "/" "\n")
THEME_NAME=$(echo $metas | awk '{print $2}')
@jeremejazz
jeremejazz / gdal2tiles.py
Created May 2, 2019
Gdal2tiles-leaflet converted to Python3
View gdal2tiles.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ******************************************************************************
# $Id: gdal2tiles.py 27349 2014-05-16 18:58:51Z rouault $
#
# Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/)
# Support: BRGM (http://www.brgm.fr)
# Purpose: Convert a raster into TMS (Tile Map Service) tiles in a directory.
# - generate Google Earth metadata (KML SuperOverlay)
@jeremejazz
jeremejazz / gdal2tiles.py
Created May 2, 2019
Gdal2tiles-leaflet converted to Python3
View gdal2tiles.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ******************************************************************************
# $Id: gdal2tiles.py 27349 2014-05-16 18:58:51Z rouault $
#
# Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/)
# Support: BRGM (http://www.brgm.fr)
# Purpose: Convert a raster into TMS (Tile Map Service) tiles in a directory.
# - generate Google Earth metadata (KML SuperOverlay)
@jeremejazz
jeremejazz / tsconfig.json
Created Mar 28, 2019
Typescript and Webpack configuration for multi-page site
View tsconfig.json
{
"compilerOptions": {
"outDir": "./public/js/dist",
"allowJs": true,
"target": "es5",
"module": "es6"
},
"include": [
"./public/js/src/**/*"
]
View simple-jquery-bootstrap-validation.js
$.each($("#orders_modal input, #orders_modal textarea, #orders_modal select"), function (index, value) {
if($(value).attr("required") === undefined){
return;
}else{
if(!$(value).val()){
$(value).addClass("is-invalid")
}else{
$(value).removeClass("is-invalid")
}
}
@jeremejazz
jeremejazz / Go Arsenal.md
Last active Mar 5, 2019
A collection of useful tools in Go
View Go Arsenal.md

This is a shorter version of awesome go. Just tools I personally use.

Database

Utilities

  • go-funk Modern Go utility library which provides helpers (map, find, contains, filter, chunk, reverse, ...).