Skip to content

Instantly share code, notes, and snippets.

@MaienM
MaienM / keybase.md
Created March 17, 2020 11:47
Keybase proof

Keybase proof

I hereby claim:

  • I am maienm on github.
  • I am maienm (https://keybase.io/maienm) on keybase.
  • I have a public key ASAd6ZWFhjoIUWu-_VWlCpG8aRQ45M0Ksm0KBjQu_K1Afwo

To claim this, I am signing this object:

@MaienM
MaienM / gitlab-utils.js
Last active July 20, 2018 08:29
GitLab Utils
// ==UserScript==
// @name GitLab Utils
// @namespace https://gist.github.com/MaienM/d6131f286942e530f4b4267162178d80
// @updateUrl https://gist.githubusercontent.com/MaienM/d6131f286942e530f4b4267162178d80/raw/
// @version 0.1
// @description GitLab Utilities
// @author MaienM
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js
@MaienM
MaienM / better-bitbucket.userscript.js
Last active May 17, 2018 11:42
Better bitbucket
// ==UserScript==
// @name Better Bitbucket
// @namespace https://gist.github.com/MaienM/e6e81d46a2acaf12ac73e365b53e8877
// @updateUrl https://gist.githubusercontent.com/MaienM/e6e81d46a2acaf12ac73e365b53e8877/raw/
// @version 0.5.1
// @description Improve the interface of Bitbucket, with a focus on code review
// @author MaienM
// @match https://bitbucket.org/*/pull-requests/*
// @match https://bitbucket.org/*/commits/*
// @match https://bitbucket.org/*
version: '2'
# echo 'client_max_body_size 0;' | sudo tee /srv/nginx/vhost.d/docker.waxd.nl_location
# docker run --rm -it --entrypoint htpasswd registry:2 -n <username> | grep -vi password | sudo tee -a /srv/nginx/htpasswd/docker.waxd.nl
services:
registry:
restart: unless-stopped
image: registry
volumes:
@MaienM
MaienM / ThuisbezorgdFix.js
Created October 10, 2015 16:14
Make the new (and rubbish) Thuisbezorgd site behave a little bit more sensibly.
// ==UserScript==
// @name Thuisbezorgd
// @version 0.1
// @author MaienM
// @match http://www.thuisbezorgd.nl/*
// ==/UserScript==
// Prevent the site from automagically navigating to restaurants you click, so you can open stuff in a new tab.
$('.restaurant').attr('onclick', '');
@MaienM
MaienM / PocketcastsUtils.js
Last active August 29, 2015 14:11
Pocketcasts Utils
// ==UserScript==
// @name Pocketcasts Utils
// @namespace https://gist.github.com/MaienM/e477e0f4e8ec3c1836a7
// @updateURL https://gist.githubusercontent.com/MaienM/e477e0f4e8ec3c1836a7/raw/
// @version 1.7.1
// @description Some utilities for pocketcasts
// @author MaienM
// @match https://play.pocketcasts.com/*
// @grant GM_info
// @grant GM_getValue
@MaienM
MaienM / gist:522aea6c5ce3552abb36
Created May 31, 2014 01:01
Notehub side-by-side
html, body, form, #preview, .central-element {
height: 100%;
}
#preview,
.central-element {
width: 45%;
float: left;
margin: 0 !important;
margin-left: 2.5% !important;
@MaienM
MaienM / cucumbertables.vim
Created October 2, 2011 21:48 — forked from tpope/cucumbertables.vim
Auto-align on equal signs (=) using Tabularize.
inoremap <silent> = =<Esc>:call <SID>ealign()<CR>a
function! s:ealign()
let p = '^.*=\s.*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
Tabularize/=/l1
normal! 0
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif