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
elhenro / gist:89e4288beb34a7b62bea72bd79e3697e
Last active Apr 12, 2018
Debugging Processwire Installation on Ubuntu/Osx
View gist:89e4288beb34a7b62bea72bd79e3697e
Processwire 500 Internal Server Error
check site/config.php mysql logins
check .htaccess
- check if it is read (paste shit in the top)
- check if it works with apache2
Processwire 403 Permission Denied
elhenro /
Created Mar 13, 2018
convert a video to the web video formats: mp4, webm, ogg
# how to use: sh fileToConvert.mp4
# how to use for batch conversion: find "$VIDEOS" -name '*.mp4' -exec sh -c 'ffmpeg ... or sh convertV..
output=$(echo $1 | sed 's/^\(.*\)\.[a-zA-Z0-9]*$/\1/')
# mp4
ffmpeg -i $input -vcodec h264 -acodec aac -strict -2 -s 1280x720 $output.mp4
# webm
#ffmpeg -i $input -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 1280x720 $output.webm
View c302-cave-soundIssue-sklnau8825max-folder
=== * HiFi.conf ===
SectionVerb {
EnableSequence [
cdev "hw:sklnau8825max"
cset "name='codec1_out mo media0_in mi Switch' off"
cset "name='codec0_out mo media0_in mi Switch' on"
cset "name='DAC Oversampling Rate' 128"
cset "name='Headset Mic Switch' off"
cset "name='media0_out mo codec0_in mi Switch' off"
View reinstall mongodb
# attention: this will delete all databases and everything mongodb related
# intended to fix a not starting mongoDb installation on ubuntu > 18.04
sudo apt purge mongodb-org*
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
sudo apt-key adv --keyserver hkp:// --recv EA312927
echo "deb xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt-get install -y mongodb-org
elhenro / .Xresources
Last active May 24, 2019
elhenro .Xresources
View .Xresources
! URxvt
URxvt.saveLines: 2000
URxvt.scrollBar: False
URxvt.scrollstyle: rxvt
URxvt.cursorBlink: False
! Extensions
URxvt.perl-ext-common: default,selection-to-clipboard,resize-font
URxvt.urlLauncher: xdg-open
URxvt.urlButton: 1
URxvt.underlineURLs: True
View lfrc
set previewer ~/.config/lf/
case "$1" in
*.tar*) tar tf "$1";;
*.zip) unzip -l "$1";;
*.rar) unrar l "$1";;
*.7z) 7z l "$1";;
*.pdf) pdftotext "$1" -;;
*) highlight -O ansi "$1" || cat "$1";;
elhenro / .vimrc
Last active Feb 5, 2020
elhenro vimrc
View .vimrc
set encoding=UTF-8
set expandtab
set shiftwidth=2
set tabstop=2
set mouse=a
set number
set autoread
set diffopt+=iwhite
set hidden
set ignorecase
elhenro / bashrc
Created May 9, 2019
bash rc profile
View bashrc
# ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
# go
export PATH="$PATH:$HOME/go/bin"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
elhenro / zsh-spaceship-hide-stuff
Created May 11, 2019
View zsh-spaceship-hide-stuff
You can’t perform that action at this time.