Skip to content

Instantly share code, notes, and snippets.

View Gabri's full-sized avatar
💭
Stay human

Gabri Gabri

💭
Stay human
View GitHub Profile
@Gabri
Gabri / snippets_arch.sh
Last active June 9, 2021 08:46
[Linux] arch linux snippets #linux #arch
# How to list all auto-start services in archlinux?
systemctl list-unit-files | grep enabled && systemctl --user list-unit-files | grep enabled
# How to find out mount/partition a directory or file is on?
df -P file/goes/here | tail -1 | cut -d' ' -f 1
# add GPG key (ERROR: One or more PGP signatures could not be verified!)
gpg --recv-key gpg --recv-key D1742AD60D811D58
@Gabri
Gabri / rsync.sh
Created December 27, 2020 16:35
[rsync] rsync commands #rsync #sync
# Testing rsync with dry-run
rsync --dry-run -vrhm --include='Bottino*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
rsync --dry-run -vrhm --include='Trend*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
rsync --dry-run -vrhm --include='Time*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
# NO dry-run
rsync -vrhm --include='*/' ~/shared/jesse/custom_indicators/ ~/ws/git/cry/jesse-py-strat/custom_indicators
rsync -vrhm --include='Bottino*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
rsync -vrhm --include='Time*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
rsync -vrhm --include='Trend*/*' --include='*/' --exclude='*' ~/shared/jesse/strategies/ ~/ws/git/cry/jesse-py-strat
@Gabri
Gabri / git.sh
Created February 26, 2021 16:46
[Git] git snippets #git
# pushing a new local branch ot a specific origin
git push -u origin-menarini HEAD
@Gabri
Gabri / gcp cloud sql proxy.md
Last active February 2, 2022 14:29
Google Cloud Plathform - course