Skip to content

Instantly share code, notes, and snippets.

View qkdreyer's full-sized avatar
📱
Working

Quentin Dreyer qkdreyer

📱
Working
View GitHub Profile
@qkdreyer
qkdreyer / pubkey.gpg
Created April 24, 2016 15:23
GPG Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFcc3/YBEAC9HUBLsLQR9RJa0qsmdnyf4jWWoES6ISKneZZQB0uhFBwo7r+i
CvGfWgPsILSnkC+hpvIo01Holq/PgOrNEowQ1MtUWE8O29fO+Ez4X2FPlL16FGiM
IF3+BoV615HWOruDf5faI5enBQ0Cgq5tKSz/KomWeHxjwSd8MB7uQ23IvX8xMESv
TiQ4K8ulQy3zgGqzjKMLY7JS1jinI3em9LYCVZ/QkD2OKJ38id4wf+4jM/YqEjg2
eJfvMkJXaAVZ04Exp4VhzZ8+iLTZWHHowNpv2d9MS75aMm3NMZ4BffN2iTSGZ/pw
SX2QtLIL+j9Mr2/eaxYan9NQusfZ9XiWK9gwdTtO+0zAtk05E7SzMIy08M3Kuvnn
9Pz0WDqol486eAV/rLe4d6wpsbw+GChl13DNe69JzBYnSI42zPAagFFN7dQBac9S
@qkdreyer
qkdreyer / .gitconfig
Last active June 3, 2016 10:11
OSX Git Configuration
[core]
excludesfile = ~/.gitignore_global
editor = subl
autocrlf = input
[user]
email = [email protected]
name = qkdreyer
signingkey = AE749F81
[push]
default = current
@qkdreyer
qkdreyer / ios-webinspector
Last active December 15, 2016 12:28
Automatically open Safari Web Inspector
#!/usr/bin/osascript
# Automatically open Safari Web Inspector
set _browser to "Safari"
set _develop to "Développement"
set _inspector to "Inspecteur web"
set _phone to "iPhone"
set _ignore to "about:"
tell application _browser to activate
@qkdreyer
qkdreyer / keybase.md
Created August 17, 2017 01:07
Keybase Proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@qkdreyer
qkdreyer / crypto-loot.js
Last active November 26, 2017 00:55
Crypto Loot Script
(function(doc, tag, cb) {
var js = doc.createElement(tag), ref = doc.getElementsByTagName(tag)[0];
js.async = true;
js.onload = js.onreadystatechange = function(_, isAbort) {
if (isAbort || !js.readyState || /loaded|complete/.test(js.readyState)) {
js.onload = js.onreadystatechange = null;
js = undefined;
!isAbort && cb && cb();
}
};
@qkdreyer
qkdreyer / _.toObjectURL.js
Last active March 1, 2018 19:36
Lodash/Underscore dataURI/base64/string/typedArray to objectURL mixin
_.mixin({
dataURIToObjectURL(dataURI) {
return this.blobToObjectURL(this.dataURIToBlob(dataURI));
},
base64ToObjectURL(base64, type) {
return this.blobToObjectURL(this.base64ToBlob(base64, type));
},
stringToObjectURL(string, type) {
return this.blobToObjectURL(this.stringToBlob(string, type));
},
@qkdreyer
qkdreyer / Y.js
Created June 9, 2018 12:55
ES6 Y Combinator One Liner
// http://kestas.kuliukas.com/YCombinatorExplained/
// https://rosettacode.org/wiki/Y_combinator#JavaScript
//
// const factorial = Y(next => (n) => {
// if (n < 2) return 1;
// return n * next(n - 1);
// });
// console.log(factorial(5)); // 120
const Y = f => (...args) => f(Y(f))(...args);
@qkdreyer
qkdreyer / cloudSettings
Last active March 9, 2020 19:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-09T19:56:45.862Z","extensionVersion":"v3.4.3"}
Non Breaking Space Character
/[\u00A0]+/
Base Combining Characters
/[\u0300-\u036F]+/
@qkdreyer
qkdreyer / grevby.sh
Last active February 23, 2020 20:11
Git Reviewed By
#!/bin/sh
git config --global alias.revby "interpret-trailers --trailer \"Reviewed-by: $(git config user.name) <$(git config user.email)>\" --in-place"
git rebase @ --exec 'GIT_EDITOR="git revby" git commit --amend'