Merge branch 'main' of https://github.com/tomit4/notes
This commit is contained in:
commit
c522b464a5
4 changed files with 57 additions and 18 deletions
26
bashrc.txt
26
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
|
||||
|
|
|
|||
|
|
@ -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
27
postgreSQL_runit.txt
Normal 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
|
||||
|
|
@ -52,19 +52,18 @@
|
|||
<property name="<Super>p" type="string" value="postman"/>
|
||||
<property name="<Super>s" type="string" value="iscan"/>
|
||||
<property name="<Super>Return" type="string" value="alacritty"/>
|
||||
<property name="<Super>v" type="string" value="vlc"/>
|
||||
<property name="<Super>a" type="string" value="figma-linux"/>
|
||||
<property name="<Shift><Super>s" type="string" value="xfce4-screenshooter -r"/>
|
||||
<property name="<Super>c" type="string" value="code"/>
|
||||
<property name="<Super>u" type="string" value="galculator"/>
|
||||
<property name="<Super>y" type="string" value="steam"/>
|
||||
<property name="<Super>f" type="string" value="firefox-developer-edition"/>
|
||||
<property name="<Super>b" type="string" value="xfce4-terminal --geometry=127x51+0+0 -x btop"/>
|
||||
<property name="<Super>n" type="string" value="alacritty -e nvim"/>
|
||||
<property name="<Super>d" type="string" value="xfce4-popup-whiskermenu"/>
|
||||
<property name="<Super>m" type="string" value="alacritty -e micro"/>
|
||||
<property name="<Super>x" type="string" value="xfce4-terminal --geometry=127x51+0+0"/>
|
||||
<property name="<Super>t" type="string" value="thunar"/>
|
||||
<property name="<Super>b" type="string" value="xfce4-terminal --geometry=142x57+0+0 -x btop"/>
|
||||
<property name="<Super>x" type="string" value="xfce4-terminal --geometry=142x57+0+0"/>
|
||||
<property name="<Super>c" type="string" value="chromium"/>
|
||||
<property name="<Super>v" type="string" value="codium"/>
|
||||
</property>
|
||||
</property>
|
||||
<property name="xfwm4" type="empty">
|
||||
|
|
@ -230,7 +229,7 @@
|
|||
<property name="<Super>q" type="string" value="tile_up_left_key"/>
|
||||
<property name="<Super>w" type="string" value="tile_up_right_key"/>
|
||||
<property name="<Alt>f" type="string" value="fullscreen_key"/>
|
||||
<property name="<Alt>q" type="string" value="close_window_key"/>
|
||||
<property name="<Shift><Alt>q" type="string" value="close_window_key"/>
|
||||
</property>
|
||||
</property>
|
||||
<property name="providers" type="array">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue