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 22, 2026 10:08
Git commands
# initialize a new Git repository in the current directory
git init
# show working tree status (staged, unstaged, untracked files)
git status
/*** CLONE ***/
# clone a remote repository into a new directory (named after the repo by default)
@aleksbelic
aleksbelic / GPG-commands.txt
Last active March 31, 2026 21:38
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