Skip to content

Instantly share code, notes, and snippets.

Henry Schober elhenro

Block or report user

Report or block elhenro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arnars / Gatsby v2 using Internet
Last active Sep 23, 2019
Tips for making Gatsby v2 working with IE / Internet Explorer
View Gatsby v2 using Internet

Making Gatsby work with Internet Explorer 10 and 11

I created this gist in order to help myself and others keep track of tips and tricks in order to make Gatsby v2 play nicely with Internet Explorer 10 and 11.

This is experience based. Please share your experiences when you have a solution to a problem.

External compilation of modules

If you suspect that an es6-based module is breaking your app, then try to add gatsby-plugin-compile-es6-packages and include the package as one of the modules.

danmikita / init.vim
Created Nov 16, 2018
File preview with FZF, RG, Bat, and Devicons
View init.vim
nnoremap <silent> <leader>e :call Fzf_dev()<CR>
" ripgrep
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
" Files + devicons
ivermac /
Created Aug 1, 2018
Using fetch with basic auth
let username = 'john';
let password = 'doe';
let url = `${username}/${password}`
let authString = `${username}:${password}`
let headers = new Headers();
headers.set('Authorization', 'Basic ' + btoa(authString))
fetch(url,{method: 'GET', headers: headers})
    .then(function (response) {
        console.log (response)
MilesMcBain / rofi.cfg
Created Jul 17, 2018
vim like keys for rofi
View rofi.cfg
rofi.kb-row-up: Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab
rofi.kb-row-down: Down,Control+j
rofi.kb-accept-entry: Control+m,Return,KP_Enter
rofi.terminal: mate-terminal
rofi.kb-remove-to-eol: Control+Shift+e
rofi.kb-mode-next: Shift+Right,Control+Tab,Control+l
rofi.kb-mode-previous: Shift+Left,Control+Shift+Tab,Control+h
rofi.kb-remove-char-back: BackSpace
johnnyopao /
Created May 2, 2018
GPG Encrypt all files in directory
# This uses gpg to encrypt every file in a directory as separate
# encrypted files
# Usage
# ./ ./dir-of-files-to-encrypt "PASSPHRASE"
random-robbie /
Created Apr 26, 2018
Install Go Lang 1.10.1 on Raspberry Pi 3
sudo tar -C /usr/local -xvf go1.10.1.linux-armv6l.tar.gz
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
source ~/.bashrc
simoncos /
Last active Jan 11, 2020 — forked from konradko/
Install Golang 1.9 on Raspberry Pi

Install Golang 1.9:

sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile

If already installed old golang with apt-get:

View gist:8836e724a53ddd55362644745cf8ca4c
/Applications/Google\\ Chrome --app=""
samgooi4189 / bcm57765or57785fix
Last active Dec 16, 2019
Fixing Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader
View bcm57765or57785fix
Follow the WORKAROUND:
1. Add a comand to /etc/rc.local, add the following line above "exit 0":
setpci -s 00:1c.2 0x50.B=0x41
2. Add the same comand to /etc/apm/resume.d/21aspm (which does not exist yet):
setpci -s 00:1c.2 0x50.B=0x41
3. Add the following to /etc/modprobe.d/sdhci.conf:
options sdhci debug_quirks2=4
4. Re-generate initrd:
sudo update-initramfs -u -k all
5. Reboot or reload sdhci module:
noelboss /
Last active Jan 20, 2020
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like or and pull or export it to a production server. Or you use a service like to act upon a Web-Hook that's triggered that service.

You can’t perform that action at this time.