-
Generate ssh key pairs for accounts and add them to GitHub accounts.
-
Edit/Create ssh config file (
~/.ssh/config):# Default github account: user01 Host github.com HostName github.com
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # ./tts.py hello world | |
| import requests, string, os | |
| from playsound import playsound | |
| from sys import argv | |
| text = ( | |
| " ".join(argv[1:]).lower().translate(str.maketrans("", "", string.punctuation)).split(" ") | |
| ) |
This file contains hidden or 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
| # MSI laptop random screen brightness bug | |
| # https://askubuntu.com/questions/777754/brightness-randomly-up-and-down-on-msi-laptop/808785#808785 | |
| # /etc/X11/xorg.conf.d/10-quirks.conf | |
| Section "InputClass" | |
| Identifier "Spooky Ghosts" | |
| MatchProduct "Video Bus" | |
| Option "Ignore" "on" | |
| EndSection |
This file contains hidden or 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
| ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="*Video Bus*", ATTR{phys}=="*LNXVIDEO*", ATTR{inhibited}="1" |
This file contains hidden or 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
| #install fish | |
| paru -S fish pkgfile | |
| #setup command not found | |
| sudo pkgfile -u && sudo pkgfile makepkg | |
| #install oh-my-fish | |
| curl -L https://get.oh-my.fish | fish | |
| #install theme |
This file contains hidden or 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
| ############################################################## | |
| #setup postgresql | |
| sudo pacman -S postgresql && \ | |
| sudo mkdir /var/lib/postgres/data && \ | |
| sudo chown -c -R postgres:postgres /var/lib/postgres && \ | |
| sudo -i -u postgres | |
| initdb -D '/var/lib/postgres/data' | |
| logout |
This file contains hidden or 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
| #Create the file /etc/polkit-1/rules.d/50-udisks.rules with permissions 644, and with the following contents: | |
| polkit.addRule(function(action, subject) { | |
| var YES = polkit.Result.YES; | |
| var permission = { | |
| // only required for udisks2: | |
| "org.freedesktop.udisks2.filesystem-mount": YES, | |
| "org.freedesktop.udisks2.encrypted-unlock": YES, | |
| "org.freedesktop.udisks2.eject-media": YES, | |
| "org.freedesktop.udisks2.power-off-drive": YES, |
This file contains hidden or 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 | |
| # Location for file to save rotation state | |
| TOGGLE=/tmp/.toggle | |
| if [ ! -e $TOGGLE ]; then | |
| touch $TOGGLE | |
| xrandr -o inverted | |
| else | |
| rm $TOGGLE |
This file contains hidden or 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
| # https://cloudflaremirrors.com/ | |
| Server = https://cloudflaremirrors.com/archlinux/$repo/os/$arch | |
| Server = https://download.nus.edu.sg/mirror/archlinux/$repo/os/$arch | |
| Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch | |
| Server = https://asia.mirror.pkgbuild.com/$repo/os/$arch | |
| Server = https://mirror.f4st.host/archlinux/$repo/os/$arch | |
| Server = https://mirror.f4st.host/archlinux/$repo/os/$arch | |
| Server = https://mirror.chaoticum.net/arch/$repo/os/$arch | |
| Server = https://archlinux.mailtunnel.eu/$repo/os/$arch | |
| Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch |
This file contains hidden or 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
| #append this to | |
| #/usr/share/X11/xorg.conf.d/10-quirks.conf | |
| #Brightness changes randomly | |
| #https://ubuntuforums.org/showthread.php?t=2314161&page=2&p=13465220#post13465220 | |
| Section "InputClass" | |
| Identifier "Spooky Ghosts" | |
| MatchProduct "Video Bus" | |
| Option "Ignore" "on" |