Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Jeurissen alexanderjeurissen

View GitHub Profile
View Solarized_flattened.js
t.prefs_.set('color-palette-overrides',[
"#073642",
"#dc322f",
"#859900",
"#b58900",
"#268bd2",
"#d33682",
"#2aa198",
"#eee8d5",
"#002b36",
View Keybase.md

Keybase proof

I hereby claim:

  • I am alexanderjeurissen on github.
  • I am alexanderjeuriss (https://keybase.io/alexanderjeuriss) on keybase.
  • I have a public key ASAiGlqI8ADWHG8j2fWfPQpSurzgrz-wCHn7JeBVV6aPgAo

To claim this, I am signing this object:

@alexanderjeurissen
alexanderjeurissen / rename_master_to_main
Last active Jun 19, 2020
Rename github master branch to main, change default github branch automatically using `hub. invoke as: rename_master_to_main username/repo
View rename_master_to_main
#!/usr/bin/env zsh
set -e
function echoStep {
export __TOTAL_START="${__TOTAL_START:-$(date +'%s')}"
__STEP=$1
__STEP_START=$(date +'%s')
printf $'\e[37;44m\033[1m'"$1"
echo $'\033[0m'
View vimiumsettings.vim
" Scroll down with C-d, and up with <c-u>
map <c-d> scrollPageDown
map <c-u> scrollPageUp
" close tab with d
unmap d
unmap x
map d removeTab
" Use u to undo tab close instead of X
View gist:8a9440269717eea53f2f5ed83c37333b
### Keybase proof
I hereby claim:
* I am alexanderjeurissen on github.
* I am ajeurissen (https://keybase.io/ajeurissen) on keybase.
* I have a public key ASAql6KYoz33wF0zCCJlU7xmzMJ3aeGQts2GG3SXjwT65Ao
To claim this, I am signing this object:
View fix-macbook-screen-resolution.sh
#!/bin/bash
# original author of this snippet: Esjee
monitor=`xrandr | grep -i edp | cut -d " " -f 1`
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode $monitor 1440x900_60.00
xrandr --output $monitor --mode 1440x900_60.00
@alexanderjeurissen
alexanderjeurissen / browse
Last active Jan 28, 2017
Fuzzy select a Arcanist differential to either browse or land
View browse
browse() {
case $1 in
acc)
diffs=`arc list | grep 'Accepted' | egrep -o 'D\d+: .*'`
;;
rev)
diffs=`arc list | grep 'Needs Review' | egrep -o 'D\d+: .*'`
;;
@alexanderjeurissen
alexanderjeurissen / devicons.py
Created May 5, 2016
Linemode that shows WebDevIcons in Ranger
View devicons.py
#!/usr/bin/python
# coding=UTF-8
import re;
import os;
# all those glyphs will show as weird squares if you don't have the correct patched font
file_node_extensions = {
'.styl' : '',
'.scss' : '',
'.htm' : '',
@alexanderjeurissen
alexanderjeurissen / .cvimrc
Last active Jul 4, 2017
Chromium vim extension configuration file
View .cvimrc
" Position bar at bottom like vimperator
let barposition = "bottom"
" Use <C-d> and <C-u> to scroll like in vimperator
map <C-u> scrollPageUp
map <C-d> scrollPageDown
" Use d for closing tab and u for undo close tab
" like in vimperator
unmap d
View application.controller.js
import Ember from 'ember';
import FilterSelectMixin from 'applicationfilter-select';
const {RSVP} = Ember;
export default Ember.Controller.extend(FilterSelectMixin, {
search: '',
filter: '',
queryParams: ['search', 'filter'],
sortAscending: false,