This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ensures the shell meets some minimum version, useful when using bash features introduced after a certain release | |
| check_version() { | |
| local reqMajor="$1" | |
| local reqMinor="$2" | |
| local major minor | |
| IFS=. read -r major minor _ <<< "$BASH_VERSION" | |
| if (( major < reqMajor )) || (( major == reqMajor && minor < reqMinor)); then | |
| echo "Bash version $reqMajor.$reqMinor or greater required, found $major.$minor" >&2 | |
| return 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git describe --tags --exact-match 2> /dev/null \ | |
| || git symbolic-ref -q --short HEAD \ | |
| || git rev-parse --short HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAKEFILE_PATH := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) # Keep at top of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foo | |
| bar | |
| baz | |
| qux | |
| quux | |
| corge | |
| grault | |
| garply | |
| waldo | |
| fred |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Hide "Suggested post" on Facebook | |
| // @include https://www.facebook.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function(){ | |
| var watcher = function(){ | |
| var bs=[...document.querySelectorAll('div[role="main"] div[data-pagelet="FeedUnit_{n}"]')].filter(div => div.innerHTML.includes('Suggested for you')).forEach(el => el.remove()) | |
| setTimeout(watcher, 200); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Options for libcamera based cameras (PiCam, Arducam, ...) | |
| # The port on which the webcam server for the camera should listen on. If you have only | |
| # one camera, leave at 8080. If you have more, change to 8081, 8082, etc. The primary | |
| # camera will be considered the one with 8080. | |
| PORT=8080 | |
| WIDTH=1640 | |
| HEIGHT=1232 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| M83 ; set to relative | |
| G1 E-6 F900 ; retract 6mm at 15mm/sec |
OlderNewer