Skip to content

Instantly share code, notes, and snippets.


Shahmi Saidi TechnoSparks

View GitHub Profile
View hearts-string-generator.html
<textarea id="container" rows="10" style="width: 99%" readonly></textarea><br>
<button onclick="heartgen()">Generate &amp; Copy</button>
function randomiser(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1) + min); //The maximum is inclusive and the minimum is inclusive
TechnoSparks /
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
# Derived from
# confable
# backup_misc_dir needs to be absolute. careful!
backup_dir="$(pwd)/Moonglow Backups"
backup_misc_dir="$backup_dir/logs and misc"
TechnoSparks / runvidia
Created Apr 29, 2018
Script to define your own defaults when launching applications under bumblebee
View runvidia
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