diff --git a/bashrc.txt b/bashrc.txt index aa3ec9ac..45e45379 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -136,8 +136,7 @@ ex () *.tar.bz2) tar xjf $1 ;; *.tar.gz) tar xzf $1 ;; *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; + *.rar) unrar x $1 ;; *.gz) gunzip $1 ;; *.tar) tar xf $1 ;; *.tbz2) tar xjf $1 ;; *.tgz) tar xzf $1 ;; @@ -170,36 +169,39 @@ alias Code="cd ~/Documents/Code" alias js="cd ~/Documents/Code/javascript" alias py="cd ~/Documents/Code/python" alias ls="ls -lasSh --color=auto" -alias {evr,easyavr}="python3 -m easykeymap" alias {his,hist}="history" alias {cmatrix,matrix}="cmatrix -bm -C cyan" -alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" +alias btop="xfce4-terminal --geometry=127x51+0+0 -x btop" alias {firefox,ff}="firefox-developer-edition &" alias {sq,sql,sqlite}="sqlcipher" +alias view="viewnior" alias serve="live-server" alias tree="tree -ad -L 3 --prune -C" -alias {nv,nvi,vim,vi}="nvim" -alias {mi,mic,nano}="micro" +alias {nv,nvi}="nvim" +alias {mi,mic}="micro" alias {mysql,maria,mdb}="mariadb" -alias {market,stonks,stocks}="mop" +alias {mop,market,stonks,stocks}="cd aur_packages/mop && go run ./cmd/mop/main.go" alias {ddg,duck}="links https://www.duckduckgo.com" alias searx="links https://www.searx.bar" alias {vlc,mpl}="mplayer" -alias {musik,mcube,mkb,mcb}="musikcube" +alias {muse,musik,cmu}="cmus" +alias pulse="pamixer --set-volume" +alias mute="pamixer -t" alias ytdl="youtube-dl" alias thinkorswim="~/thinkorswim/thinkorswim &" -alias {vs,vsc}="code" -alias shutdown="shutdown -h now" +alias {vs,vsc,code}="codium" +alias cl="clear" +alias shutdown="doas shutdown -h now" +alias reboot="doas reboot" alias {log,logout}="xfce4-session-logout --logout" alias curltime="curl -w \"@$HOME/Documents/notes/curl-format.txt\" -o /dev/null -s" alias killport="fuser -k" alias rmorphans="sudo pacman -Rs $(pacman -Qdtq)" alias rmcache="paccache -rvk3" alias rm="rm -i" -alias sudo="doas" alias {doasedit,sudoedit}="doas rnano" alias shred="shred -uz" export EDITOR=nvim - +export PATH="$PATH:$GOPATH/bin" [ -f ~/.fzf.bash ] && source ~/.fzf.bash diff --git a/linux_notes.txt b/linux_notes.txt index af708812..8f4b5bc0 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -44,6 +44,17 @@ And decompress directory: gpg -d folder.tar.gz.gpg | tar -xvzf - +To mount a usb drive via terminal: +cd /mnt +mkdir media +mkdir media/usb-drive + +mount /dev/sda1 media/usb-drive + +And to unmount the usb drive: + +umount media/usb-drive + (make sure to clear your history afterwards) history -c diff --git a/postgreSQL_runit.txt b/postgreSQL_runit.txt new file mode 100644 index 00000000..3b9bd410 --- /dev/null +++ b/postgreSQL_runit.txt @@ -0,0 +1,27 @@ +# Running PostgreSQL on Artix/Runit system has been somewhat of a hassle, so here is a way of logging in quickly + +sudo -iu postgres (logs in as postgres, note you can't do this with doas) + +you can initialize a new database by invoking initdb + +initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data + +As long as the final line of output reads a command, invoke it like so: + +pg_ctl -D /var/lib/postgres/data -l logfile start + +If the process is already running, then you'll need to stop it by invoking it through ruhit's sv command: + +doas sv stop postgresql + +This should stop the port from being busy and then you can run the above pg_ctl command again + +Now from the postgres account you can log into postgres, but if you want to create access for your main user, invoke this as postgres: + +createuser --interactive + +It will then prompt you for the name and then also if you want to grant that user root privileges + +You can also createa new database + +createdb myDatabaseName diff --git a/xfce4-keyboard-shortcuts.xml b/xfce4-keyboard-shortcuts.xml index afe5123f..40135cdd 100644 --- a/xfce4-keyboard-shortcuts.xml +++ b/xfce4-keyboard-shortcuts.xml @@ -52,19 +52,18 @@ - - - - - + + + + @@ -230,7 +229,7 @@ - +