Moved to https://github.com/tomgidden/nfs-automount-on-macos
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 zsh | |
| # ^^ although a shebang's not required for a library script... | |
| # https://gist.github.com/tomgidden/8894dffa4ab6fa8b76f6660fca1cf539 | |
| # Usage in script: | |
| # source "${0:A:h}/common_getopts.zsh" | |
| # but don't pass any args or it won't work! | |
| # |
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/zsh | |
| # https://gist.github.com/tomgidden/6cfc0e2a3faa0300edd86e36c35a18f7 | |
| # or: curl -fsSL https://unflab.app/get | sh -s -- expunge_googleupdate | |
| set -eu | |
| emulate -L zsh | |
| zparseopts -D -E v=verbose n=dry_run | |
| [[ -n $dry_run ]] && verbose=-v |
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/zsh | |
| set -eu | |
| main() { | |
| colors_init | |
| echo "\$COLOR=$COLOR" | |
| echo "\$DARK=$DARK" | |
| echo "\$COLOR_RGB=$COLOR_RGB" |
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/zsh | |
| # https://gist.github.com/tomgidden/6a9f083988f7d4505d4e38674d416c04 | |
| # or: curl -fsSL https://unflab.app/get | sh -s -- expunge_adobecc | |
| PROCESS_NAMES=( | |
| "ACCFinderSync" | |
| "Adobe Acrobat DC" | |
| "Adobe Acrobat" | |
| "Adobe After Effects" |
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
| [Unit] | |
| Description=%i service with docker compose | |
| Requires=docker.service | |
| After=docker.service network-online.target autofs.service | |
| [Service] | |
| Type=oneshot | |
| RemainAfterExit=true | |
| WorkingDirectory=/etc/docker/compose/%i | |
| ExecStart=/bin/sh -c 'cd "$(dirname $(realpath /etc/docker/compose/%i/compose.yml))" && docker compose up -d --remove-orphans' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| ### ------------------------------------------------------------------------ | |
| ### Terminal window colour from context | |
| ### https://gist.github.com/tomgidden/f6e11571d4f6e52faa45ebecc4d18a7b | |
| # https://www.xfree86.org/current/ctlseqs.html | |
| # Italic: "\x1b[38;2;3m" | |
| # Bright: "\x1b[38;2;0m" | |
| tty_color () { | |
| local C=$1 |
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/sh | |
| # Test if CN-EXT charsets are enabled | |
| if ( iconv -l | egrep -q 'CN-?EXT' ); then | |
| # Comment out CN-EXT charsets in gconv-modules config | |
| find /usr/lib* \( -path '*/gconv-modules' -o -path '*/gconv-modules-extra.conf' \) \ | |
| -exec sed '/^\([^#].*\)\?\(CNEXT\|CN-EXT\)/ s/^/###mitigate_CVE-2024-2961: /g' -i {} \; | |
| # Rebuild gconv-modules.cache |
"If I whisk it awwww, could you bweak my fawwww?
Howdowahruh? Howdowahbrie? I am naahrrimam suffocating.
I wannafewah. Rufuwahblah.
Tell me is this wuhuhkifiuhlah.
NewerOlder