Skip to content

Instantly share code, notes, and snippets.

View aleksbelic's full-sized avatar
🍺
Cheerz...

Aleksandar Belic Aleksanchez aleksbelic

🍺
Cheerz...
View GitHub Profile
@aleksbelic
aleksbelic / git-commands.txt
Last active March 5, 2026 23:19
Git commands
# initialize a new Git repository in the current directory
git init
# show working tree status (staged, unstaged, untracked files)
git status
/*** CLONE ***/
# download (clone) the remote git repository
@aleksbelic
aleksbelic / GPG-commands.txt
Last active February 21, 2026 01:43
GPG commands overview
# list all public keys stored in your keyring:
gpg --list-keys
# list all private keys stored in your keyring:
gpg --list-secret-keys
# generate a new key(pair):
gpg --gen-key
# generate a revocation certificate:
@aleksbelic
aleksbelic / yum2csv.sh
Last active August 11, 2023 14:31
Yum list installed to CSV
yum list installed | awk '{print $1";"$2";"$3}' > /home/list_installed.csv
yum list available | awk '{print $1";"$2";"$3}' > /home/list_available.csv
yum check-update | awk '{print $1";"$2";"$3}' > /home/check_update.csv