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 | |
rootcheck () { | |
if [ $(id -u) != "0" ] | |
then | |
echo "warning: auto appending sudo.." | |
sudo "$0" "$@" | |
exit $? | |
fi | |
} | |
rootcheck |
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
general { | |
colors = true | |
interval = 1 | |
color_good = "#2AA198" | |
color_bad = "#586E75" | |
color_degraded = "#DC322F" | |
} | |
order += "volume master" | |
order += "cpu_usage" |
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 |
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
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
#!/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 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
! 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
# 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
=== * 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" |