Skip to content

Instantly share code, notes, and snippets.

Shahmi Saidi TechnoSparks

View GitHub Profile
@TechnoSparks
TechnoSparks / backup.sh
Last active Mar 29, 2020
Use rsync to do incremental backup, that utilises "--link-dest" instead of "--backup". This allows the benefit of having all the files in a single directory
View backup.sh
#!/bin/bash
# EXTEND AS NEEDED
# Derived from https://www.howtogeek.com/175008/the-non-beginners-guide-to-syncing-data-with-rsync/
# confable
# backup_misc_dir needs to be absolute. careful!
to_backup="$(pwd)/Moonglow"
backup_dir="$(pwd)/Moonglow Backups"
backup_misc_dir="$backup_dir/logs and misc"
@TechnoSparks
TechnoSparks / runvidia
Created Apr 29, 2018
Script to define your own defaults when launching applications under bumblebee
View runvidia
#!/bin/bash
USAGE="How to use:
runvidia [OPTION] <command>
Available OPTIONs:
--vsync Sets vsync to turn ON, program-overridable
--vsync-force-off Force vsync to OFF, regardless program's preferences
--primussync NUM Changes primus_sync env var.
Defaults to NUM=1, which \"synchronizing primus' display
You can’t perform that action at this time.