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
| curl -O https://distro.ibiblio.org/puppylinux/puppy-bookwormpup/BookwormPup64/10.0.12/BookwormPup64_10.0.12.iso | |
| # Write the iso directly to device REPLACES ALL DATA | |
| sudo dd if=BookwormPup64_10.0.12.iso of=/dev/sda status=progress |
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 | |
| # GitHub Repository Statistics Script (GraphQL Version) | |
| # Usage: ./github_stats.sh owner/repo1 owner/repo2 ... | |
| # Requires: GITHUB_TOKEN environment variable for authentication | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' |
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
| =reduce(false, <range>, lambda(acc, curr, OR(acc, ISFORMULA(curr)))) |
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
| CRDTs | |
| Conflict-free Resolution Data Types | |
| https://jakelazaroff.com/words/an-interactive-intro-to-crdts/ |
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 | |
| # Period should be half of buffer | |
| export BUFFER="--buffer-size=32 --period-size=16" | |
| # See arecord -D hw:CARD=U192k,DEV=0 --dump-hw-params | |
| export UMC404HD="-D hw:CARD=U192k,DEV=0 -f S32_LE -c4 -r44100" | |
| arecord $UMC404HD -t raw $BUFFER | aplay $UMC404HD $BUFFER |
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 -e | |
| apt update | |
| apt install -y lsb-release curl gpg | |
| curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list | |
| apt update | |
| apt install -y redis-tools |
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
| sudo apt install \ | |
| build-essential \ | |
| cmake \ | |
| make \ | |
| qtbase5-dev \ | |
| qtdeclarative5-dev \ | |
| qttools5-dev \ | |
| qttools5-dev-tools \ | |
| libqt5svg5-dev \ | |
| ladspa-sdk \ |
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 -e | |
| account_prefix=agrinous | |
| accounts="master dev stg etc" | |
| format_bytes() { | |
| echo $1 | numfmt --to=iec-i | |
| } |
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
| ```shell | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl gnupg | |
| sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
| sudo usermod -aG docker ${USER} | |
| # Avoid logout / login | |
| newgrp docker |
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
| export XAUTHORITY=$HOME/.Xauthority |
NewerOlder