This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# how to use: sh convertVideoToWebVideoFormats.sh fileToConvert.mp4 | |
# how to use for batch conversion: find "$VIDEOS" -name '*.mp4' -exec sh -c 'ffmpeg ... or sh convertV.. | |
input=$1 | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== * 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set previewer ~/.config/lf/pv.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
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";; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set encoding=utf-8 | |
set expandtab | |
set shiftwidth=2 | |
set tabstop=2 | |
set mouse=a | |
set number | |
set autoread | |
set diffopt+=iwhite | |
set nocompatible | |
set hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPACESHIP_GIT_SHOW=false | |
SPACESHIP_HG_SHOW=false | |
SPACESHIP_HG_BRANCH_SHOW=false | |
SPACESHIP_HG_STATUS_SHOW=false | |
SPACESHIP_PACKAGE_SHOW=false | |
SPACESHIP_NODE_SHOW=false | |
SPACESHIP_RUBY_SHOW=false | |
SPACESHIP_ELM_SHOW=false | |
SPACESHIP_ELIXIR_SHOW=false | |
SPACESHIP_XCODE_SHOW_LOCAL=false |
OlderNewer