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
| #!/bin/bash | |
| # A generic idf-docker wrapper script. | |
| # This script must either be named like idf-v4.4.6, idf-v5.0.5, etc. (Select a tag from: https://hub.docker.com/r/espressif/idf/tags), | |
| # or you can rename it like idf-docker and 'busybox symlink' to it using such names. (It will automatically use the version deduced from the name.) | |
| # | |
| # Afterwards use it just like idf.py [ARGS, ...] but instead write e.g.: idf-v4.4.6 [ARGS, ...] | |
| die() { | |
| echo "$1" 1>&2 |
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
| #!/usr/bin/env bash | |
| # Print Help Message | |
| function print_help() { | |
| echo "Usage: $0 [OPTIONS] DEB_FILE DIR" | |
| echo "" | |
| echo "Install a Google Chrome .deb package to the specified directory." | |
| echo "" | |
| echo "Options:" | |
| echo " -h, --help Show this help message and exit." |
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
| // Paste in browser console | |
| (() => { | |
| let old = document.getElementById('scanline-overlay'); | |
| if (old) old.remove(); | |
| document.body.appendChild(Object.assign(document.createElement('div'), { | |
| id: 'scanline-overlay', | |
| style: 'position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:999999;background-image:repeating-linear-gradient(to bottom, rgba(0,0,0,0.3) 0px, rgba(0,0,0,0.3) 2px, transparent 2px, transparent 4px);' | |
| })); | |
| })(); |
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
| #!/bin/bash | |
| # autocrat.sh: devilspie(2) written in bash, but simpler and more versatile | |
| # Decrees can be written by asking ChatGPT to formulate them. | |
| # Use the following priming prompt to do so: | |
| cat > /dev/null <<EOF | |
| I am building a Bash script called autocrat.sh that manages window behavior in Linux, similar to devilspie2. |
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
| #!/bin/bash | |
| set -euo pipefail | |
| # ppng.io - Securely transfer files or directories using a piping server | |
| # | |
| # Learn more about the underlying principles at: | |
| # https://github.com/nwtgck/piping-server#readme | |
| die() { echo "Error: $1" >&2; exit 1; } |
OlderNewer