-
Notifications
You must be signed in to change notification settings - Fork 4
/
roman.arch
54 lines (46 loc) · 1.57 KB
/
roman.arch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#============================#
# Reminders and Info #
#============================#
:: Arch Update Commands ::
sudo pacman -Syu
sudo yay -Syu
sudo pacman-key --refresh-keys
sudo pacman -Sc # Removes all packages in the Cache that are not currently installed on your system.
yay -Yc # Removes all unneeded dependencies on your system.
gem update
polybar -r bar_name # Refreshes polybar's cache.
:: Git Commands ::
git init # To make a new repo
git config --global user.name "NAME"
git config --global user.email "EMAIL"
git remote add origin https://github.com/VivaCaligula/DOTFILES.git
git add *
git commit -m "Text"
git push origin master
:: Font Checker ::
fc-list | grep FONT_NAME
:: Mounting a Drive ::
lsusb # lists devices
mount -t vfat /dev/sda $HOME/Desktop/flash
:: Time Update :: https://wiki.archlinux.org/index.php/Time
# To check current timezone defined for the system and list availables zones.
timedatectl
timedatectl list-timezones
timedatectl set-timezone Zone/SubZone
sudo ln -sf /usr/share/zoneinfo/Zone/SubZone /etc/localtime
# Show hardware clock and write current software UTC time to hardware clock.
sudo hwclock --show
sudo hwclock --systohc
:: Usefull Shell Script Stuff :: http://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php
# Check if a file exists.
# Change -f to -d to check for a directory.
FILE=$1
if [ -f $FILE ]; then
echo "File $FILE exists."
else
echo "File $FILE does not exist."
fi
# Check if a file doesn't exist.
if [ ! -f /tmp/foo.txt ]; then
echo "File not found!"
fi