Skip to content

Instantly share code, notes, and snippets.

View JanDeDobbeleer's full-sized avatar

Jan De Dobbeleer JanDeDobbeleer

View GitHub Profile
@JanDeDobbeleer
JanDeDobbeleer / psakefile.ps1
Last active April 7, 2016 10:33
psake makefile templates
#requires -Version 1
Properties {
# This is the spot where you can add information needed to be able to build
}
Task VerifyBuildProperties {
# used to test necessary properties before handling a task
# example:
# Assert ($build_platform -ne $null) "Build platform should not be null"
}
[user]
signingkey = F6993303
name = Jan
email = jan.de.dobbeleer@gmail.com
[commit]
gpgsign = true
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
@JanDeDobbeleer
JanDeDobbeleer / commit-msg
Last active March 7, 2017 09:40
A commit-msg hook Enrico Campidoglio demonstrated at Techorama 2016. I found the code on his blog and as I don't trust myself, I tweaked the script to rerun the check until I get it right.
#!/bin/sh
#
# A hook script that checks the length of the commit message.
#
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
DEFAULT="\033[0m"
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
listen [::]:80;
server_name mastodon.herebedragons.io;
return 301 https://$host$request_uri;
@JanDeDobbeleer
JanDeDobbeleer / mastodon.herebedragons.io
Last active May 2, 2017 06:07
nginx configuration for mastodon.herebedragons.io
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
# set root and server_name here
root /var/www/html;
server_name mastodon.herebedragons.io;
@JanDeDobbeleer
JanDeDobbeleer / .env
Last active August 15, 2017 18:25
GitHub Tools
XHUB_SECRET=your_secret
GITHUB_API_KEY=your_personal_access_token
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2018-03-16 12:27:08" build="180206">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@JanDeDobbeleer
JanDeDobbeleer / egg.go
Created March 20, 2018 09:32
Break the egg
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)

Keybase proof

I hereby claim:

  • I am jandedobbeleer on github.
  • I am jandedobbeleer (https://keybase.io/jandedobbeleer) on keybase.
  • I have a public key ASDWX_t2ynzDTNCKIZy3QqfKi1QOdeRhXmW_BLTd4sp6FQo

To claim this, I am signing this object:

@JanDeDobbeleer
JanDeDobbeleer / crashlytrics.rb
Last active July 15, 2018 20:54
Dashing - Crashlytics & Xaramin Insights crash free users rate widget + jobs
require 'net/https'
require 'json'
#--------------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------------
configuration = {
:uri => 'https://fabric.io',
:credentials => {
:username => '',