Skip to content

Instantly share code, notes, and snippets.

View mastilver's full-sized avatar

Thomas Sileghem mastilver

View GitHub Profile
@mastilver
mastilver / .gitconfig
Last active August 4, 2021 15:44
My git config
[push]
default = simple
[pull]
rebase = true
[fetch]
prune = true
[alias]
@mastilver
mastilver / npm-config
Last active January 7, 2016 11:31
configure npm on windows
npm config set msvs_version 2013 --global
@mastilver
mastilver / .gitattributes
Created April 13, 2016 15:40
windows env .gitattributes
* text=auto
*.js text eol=crlf
*.cs text eol=crlf
@mastilver
mastilver / keybase.md
Created April 14, 2016 09:11
keybase.md

Keybase proof

I hereby claim:

  • I am mastilver on github.
  • I am mastilver (https://keybase.io/mastilver) on keybase.
  • I have a public key whose fingerprint is FF4F 6A71 2BF6 2640 228C 9572 4C21 B96D 4EF3 476C

To claim this, I am signing this object:

@mastilver
mastilver / InstallHubFlow.ps1
Last active October 9, 2017 09:07
Hubflow windows installer
Add-Type -AssemblyName System.IO.Compression.FileSystem
$TEMP = $([environment]::GetEnvironmentVariable("TEMP", "User"))
$CWD = $(Split-Path $MyInvocation.MyCommand.Path)
$PATH = $([environment]::GetEnvironmentVariable("PATH", "User"))
$git_folder = "C:\Program Files\Git"
$git_bin_folder = "$($git_folder)\bin"
$tmp_folder = "$($TEMP)\$([guid]::NewGuid())";
@mastilver
mastilver / CreateUserCommand.js
Created December 21, 2016 19:12
Mediator pattern - Part 1
import handler from './handler'
type ICommand = {
username: string;
password: string;
email: string;
}
@handler('./createUserCommandHandler')
export default class CreateUserCommand {
@mastilver
mastilver / auth0-github-recipe.js
Last active December 29, 2016 14:39
auth0-github-recipe
function(accessToken, ctx, cb) {
request.get('https://api.github.com/user', {
headers: {
'User-Agent': 'Auth0-App',
'Authorization': 'Bearer ' + accessToken
}
}, function(e, r, body) {
if (e) return cb(e);
if (r.statusCode !== 200) return cb(new Error('StatusCode: ' + r.statusCode));
module.exports = {
plugins: [
"hyperline",
"hypercwd",
"hyper-alt-click",
"hyperterm-paste"
]
}
@mastilver
mastilver / package-list.txt
Created March 16, 2017 10:09
installed atom package
atom-beautify@0.29.17
atom-ternjs@0.18.2
autocomplete-paths@1.0.5
editorconfig@2.2.2
language-javascript-jsx@0.3.7
linter@1.11.23
linter-eslint@8.1.3
linter-jsonlint@1.3.0
linter-xo@0.21.2
minimap@4.26.8
@mastilver
mastilver / .dockerignore
Created May 3, 2017 08:53
Mininal docker container build with pkg
node_modules