Skip to content

Instantly share code, notes, and snippets.

Working from home

Roeland r03

Working from home
  • Belgium
Block or report user

Report or block r03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
r03 /
Created Nov 15, 2019 — forked from V0idExp/
Go development environment on Windows with MSYS2

Go development environment on Windows with MSYS2

Normally, it is sufficient to grab the Go MSI installer from the website in order to set up the toolchain. However, some packages that provide Go wrappers for C libraries rely on cgo tool, which in turn, needs the GCC toolchain in order to build the glue code. Also, 3rd-party dependencies are usually hosted on services like GitHub, thus Git is also needed. This mini-guide illustrates how to setup a convenient development environment on Windows using MSYS2.

r03 / Solarized (light).tmTheme
Created May 4, 2019
Solarized (light) tmTheme improved for Rails with Sublime Text
View Solarized (light).tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: -->
<!-- code: -->
<plist version="1.0">
<string>Solarized (light)</string>
r03 /
Last active May 4, 2019
Run rubocop auto-correct on save
# save in /Users/roeland/Library/Application Support/Sublime Text 3/Packages/User/
import sublime
import sublime_plugin
import os
import subprocess
class RubocopOnSave(sublime_plugin.EventListener):
def on_post_save_async(self, view):
filename = view.file_name()
r03 /
Created May 3, 2019
Fix home/end mac keyboard
# run in console and restart after
mkdir -p $HOME/Library/KeyBindings
echo '{
/* Remap Home / End keys to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
You can’t perform that action at this time.