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
r03 / go-env-with-msys2.md
Created Nov 15, 2019 — forked from V0idExp/go-env-with-msys2.md
Go development environment on Windows with MSYS2
View go-env-with-msys2.md

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
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (light)</string>
@r03
r03 / rubocop_on_save.py
Last active May 4, 2019
Run rubocop auto-correct on save
View rubocop_on_save.py
# 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
r03 / fix_mac_keyboard_home_end.sh
Created May 3, 2019
Fix home/end mac keyboard
View fix_mac_keyboard_home_end.sh
# https://coderwall.com/p/ikyhag/fixing-home-and-end-keys-and-more-on-macos
# 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.