Skip to content

Instantly share code, notes, and snippets.

View TahirJalilov's full-sized avatar

Tahir Jalilov TahirJalilov

View GitHub Profile
@TahirJalilov
TahirJalilov / instruction.txt
Last active October 24, 2022 19:38
Arch Linux with BTRFS Installation + UEFI + systemd boot + KDE Plasma
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)
@TahirJalilov
TahirJalilov / wireguard_setup.txt
Last active May 11, 2022 18:50
Wireguard setup server/client
# ----Server side----#
# Update server:
sudo apt update && sudo apt upgrade -y
# Install wireguard:
sudo apt install -y wireguard
@TahirJalilov
TahirJalilov / first_steps_entware.sh
Created December 16, 2021 13:20
first_steps_entware.sh
#!/bin/sh
opkg update && opkg upgrade
opkg install vim htop tmux mc
@TahirJalilov
TahirJalilov / emulationstation.sh
Created November 15, 2021 05:43
Swap x and y buttons in the retropie emulationstation
#!/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
@TahirJalilov
TahirJalilov / first_steps_for_ubuntu_vps.sh
Last active December 13, 2021 18:21
First steps for new Ubuntu VPS
#!/bin/sh
## update and upgrade system
echo
echo "========================================Upgrading========================================"
echo
sudo apt-get update
sudo apt-get upgrade -y
## install required packages
@TahirJalilov
TahirJalilov / command.txt
Created March 25, 2021 14:56
rmlint usage
rmlint -gkm [path] // [origpath]
@TahirJalilov
TahirJalilov / command.txt
Last active March 15, 2023 21:55
exiftool photo and video renamer with date and time
# 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/' *
@TahirJalilov
TahirJalilov / backup_remote_folder.txt
Created February 23, 2021 18:12
backup remote server folder
#!/bin/zsh
sleep 10 && scp -r aws:/home/tahir/projects/postgres_db/db_backups ./
@TahirJalilov
TahirJalilov / flake8_projects.txt
Created February 23, 2021 18:10
flake8 settings for python projects
[flake8]
max-line-length = 88
extend-ignore = E203, W503
exclude = ./venv
@TahirJalilov
TahirJalilov / .zshrc
Created February 23, 2021 18:09
zshrc configs
# 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