This commit is contained in:
z3rOR0ne 2021-11-14 03:36:03 -08:00
commit c522b464a5
4 changed files with 57 additions and 18 deletions

View file

@ -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

View file

@ -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

27
postgreSQL_runit.txt Normal file
View file

@ -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

View file

@ -52,19 +52,18 @@
<property name="&lt;Super&gt;p" type="string" value="postman"/>
<property name="&lt;Super&gt;s" type="string" value="iscan"/>
<property name="&lt;Super&gt;Return" type="string" value="alacritty"/>
<property name="&lt;Super&gt;v" type="string" value="vlc"/>
<property name="&lt;Super&gt;a" type="string" value="figma-linux"/>
<property name="&lt;Shift&gt;&lt;Super&gt;s" type="string" value="xfce4-screenshooter -r"/>
<property name="&lt;Super&gt;c" type="string" value="code"/>
<property name="&lt;Super&gt;u" type="string" value="galculator"/>
<property name="&lt;Super&gt;y" type="string" value="steam"/>
<property name="&lt;Super&gt;f" type="string" value="firefox-developer-edition"/>
<property name="&lt;Super&gt;b" type="string" value="xfce4-terminal --geometry=127x51+0+0 -x btop"/>
<property name="&lt;Super&gt;n" type="string" value="alacritty -e nvim"/>
<property name="&lt;Super&gt;d" type="string" value="xfce4-popup-whiskermenu"/>
<property name="&lt;Super&gt;m" type="string" value="alacritty -e micro"/>
<property name="&lt;Super&gt;x" type="string" value="xfce4-terminal --geometry=127x51+0+0"/>
<property name="&lt;Super&gt;t" type="string" value="thunar"/>
<property name="&lt;Super&gt;b" type="string" value="xfce4-terminal --geometry=142x57+0+0 -x btop"/>
<property name="&lt;Super&gt;x" type="string" value="xfce4-terminal --geometry=142x57+0+0"/>
<property name="&lt;Super&gt;c" type="string" value="chromium"/>
<property name="&lt;Super&gt;v" type="string" value="codium"/>
</property>
</property>
<property name="xfwm4" type="empty">
@ -230,7 +229,7 @@
<property name="&lt;Super&gt;q" type="string" value="tile_up_left_key"/>
<property name="&lt;Super&gt;w" type="string" value="tile_up_right_key"/>
<property name="&lt;Alt&gt;f" type="string" value="fullscreen_key"/>
<property name="&lt;Alt&gt;q" type="string" value="close_window_key"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;q" type="string" value="close_window_key"/>
</property>
</property>
<property name="providers" type="array">