This file contains 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
Arch Wiki has a great article on installing Arch Linux that you can refer while following this guide: https://wiki.archlinux.org/index.php/installation_guide | |
Step 1: | |
Verify the boot mode | |
If the command shows the directory without error, then the system is booted in UEFI mode | |
# ls /sys/firmware/efi/efivars | |
Step 2: | |
Connect to the wifi internet using iwd (https://wiki.archlinux.org/title/Iwd#iwctl) |
This file contains 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
# ----Server side----# | |
# Update server: | |
sudo apt update && sudo apt upgrade -y | |
# Install wireguard: | |
sudo apt install -y wireguard |
This file contains 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/sh | |
opkg update && opkg upgrade | |
opkg install vim htop tmux mc |
This file contains 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 bash | |
# /opt/retropie/supplementary/emulationstation/scrips/configscripts/emulationstation.sh | |
# This file is part of The RetroPie Project | |
# | |
# The RetroPie Project is the legal property of its developers, whose names are | |
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. | |
# | |
# See the LICENSE.md file at the top-level directory of this distribution and |
This file contains 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/sh | |
## update and upgrade system | |
echo | |
echo "========================================Upgrading========================================" | |
echo | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
## install required packages |
This file contains 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
rmlint -gkm [path] // [origpath] |
This file contains 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
# rename file by creation date | |
exiftool '-filename<CreateDate' -d '%Y%m%d_%H%M%S%%-c.%%le' -r ./ | |
perl-rename -v 's/(\d{4})-(\d{2})-(\d{2}) (\d{2}).(\d{2}).(\d{2})/$1$2$3_$4$5$6/' * | |
# remove IMG or VID prefix | |
perl-rename -v 's/(IMG)_(\d{8})_(\d{6})/$2_$3/' * |
This file contains 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/zsh | |
sleep 10 && scp -r aws:/home/tahir/projects/postgres_db/db_backups ./ |
This file contains 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
[flake8] | |
max-line-length = 88 | |
extend-ignore = E203, W503 | |
exclude = ./venv |
This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Theme |
NewerOlder