Skip to content

Instantly share code, notes, and snippets.

@ghostrydr
ghostrydr / aggregate-desktop-bgs.sh
Created April 8, 2020 21:41
Aggregate and symlink images from subdirectories
#!/bin/bash
# usage
# ---------
# ./aggregate-desktop-bgs /path/to/source /path/to/target
# then set deskto background to pull from /path/to/target in system settings
# default values
SOURCE=${1-~/Pictures/desktops}
TARGET=${2-~/Pictures/aggregated-bgs}
javascript:(function(){
var s = "Welcome to Stack Overflow! Please take the [tour](/tour) and read through the [help center](/help), in particular [_How do I ask a good question?_](/help/how-to-ask) Do your research, [search](/help/searching) for related topics on SO, and give it a go. _**If**_ you get stuck and can't get unstuck after doing more research and searching, post a [Minimal, Complete, and Verifiable example](/help/mcve) of your attempt and say specifically where you're stuck. People will be glad to help. Good luck! –";
document.getElementsByClassName("js-add-link")[0].click();
document.getElementsByName("comment")[0].value = s;
})();
@ghostrydr
ghostrydr / so-mcve
Created April 23, 2018 16:59
Stackoverflow - Please provide MCVE bookmarklet
javascript:(function(){
var s = "Please provide a [Minimal, Complete, and Verifiable example](/help/mcve)";
document.getElementsByClassName("js-add-link")[0].click();
document.getElementsByName("comment")[0].value = s;
})();