Skip to content

Instantly share code, notes, and snippets.

View rogiervandenberg's full-sized avatar

Rogier van den Berg rogiervandenberg

View GitHub Profile
@rogiervandenberg
rogiervandenberg / keybase.md
Created August 4, 2016 15:06
Keybase Proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@rogiervandenberg
rogiervandenberg / cloudSettings
Last active February 18, 2022 08:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-02-18T08:58:36.142Z","extensionVersion":"v3.4.3"}
@rogiervandenberg
rogiervandenberg / readme.md
Last active July 22, 2019 08:13
Start Docker based Rails 6 project with Docker, without installing Ruby and/or Rails

Create new Rails 6 project with Docker

If you want to set-up a new Rails (6) project, but you don't want to go through the hassle of setting op Ruby, node, Yarn, Rails itself, etc. you could do it with Docker.

Setup

Prerequisite: Have Docker installed

If not, install Docker first

Create the directory for your project

Open a terminal, create a project folder somewhere and go into that directory:

@rogiervandenberg
rogiervandenberg / main.go
Created October 5, 2020 13:13
Basis Golang HTTP REST server - Best practices interpreted
/*
Based on the video's and blogposts of Mat Ryer (@matryer)..
- https://pace.dev/blog/2018/05/09/how-I-write-http-services-after-eight-years.html
- https://www.youtube.com/watch?v=FkPqqakDeRY
- https://www.youtube.com/watch?v=rWBSMsLG8po
.. I derived the following starting point for a GO HTTP REST server. It can be used to add all explained (see above) concepts.
You could spread the code below in separate files as follows:
@rogiervandenberg
rogiervandenberg / convert.sh
Created January 2, 2021 20:07 — forked from bittercoder/convert.sh
Convert .heic files to .jpg on linux (coming from an iOS11 device over USB)
# download release from github: https://github.com/monostream/tifig/releases and install at ~/tools/tifig
# then run these commands in the folder (just to keep things simple we normalize the file extension case before proceeding).
for f in *.HEIC; do mv "$f" "`echo $f | sed s/.HEIC/.heic/`"; done
for file in *.heic; do echo "~/tools/tifig -v -p $file ${file/%.heic/.jpg}"; done