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 | |
| title="Battery" | |
| battery_level="$(pmset -g batt | grep 'InternalBattery' | awk '{print $3 $4}' | awk '{print $1}' | cut -d';' -f1)" | |
| osascript -e "display notification \"${battery_level}\" with title \"${title}\"" |
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 | |
| # Usage: macos-notify-send.sh "Title" "Message" | |
| osascript -e "display notification \"$2\" with title \"$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
| { config, pkgs, ... }: | |
| { | |
| #package config | |
| nix.package = pkgs.nix; | |
| nixpkgs.config.allowUnfree = true; | |
| #homebrew packages | |
| homebrew = { | |
| enable = true; |
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 steamos-readonly disable | |
| sudo pacman -Sy --noconfirm wireguard-tools resolvconf | |
| # Re-enable wireguard and sshd | |
| sudo systemctl enable --now wireguard.service | |
| sudo systemctl enable --now sshd.service | |
| # Disable power-save so SSH commands aren't so delayed: https://gitlab.com/popsulfr/steam-deck-tricks#disable-powersave-on-wlan0-for-snappier-remote-command | |
| sudo iw dev wlan0 set power_save off |
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 | |
| media_dir="/Volumes/DataStore2" | |
| root_dir="/Volumes/DataStore2/plex_containers" | |
| docker network ls | grep -q plex && docker network create plex | |
| mkdir -p ${root_dir} | |
| #docker run -d --restart unless-stopped --name plex \ | |
| # -v ${root_dir}/plex:/config \ |
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 | |
| # Variable for path to mobile-nix boot.img | |
| mobile_nix_boot_img_path='./mobile-nix-boot.img' | |
| # Variable for path to lineage boot.img (recovery) | |
| lineage_boot_img_path='./lineage-boot.img' | |
| # Variables for directory names to place extracted contents | |
| lineage_out_dir='lineage-extracted' | |
| mobile_nix_out_dir='mobile-nix-extracted' |
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 | |
| if uname -a | grep -iq Darwin &>/dev/null | |
| then | |
| /usr/bin/pbcopy | |
| else | |
| xclip -r -selection clipboard | |
| 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
| [ | |
| { | |
| "name": "Giant Ants of the Commonwealth", | |
| "game": "fallout4", | |
| "modId": 34860, | |
| "fileId": 160279, | |
| "source": "nexus" | |
| }, | |
| { | |
| "name": "Glock 19X - Pistol", |
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 | |
| # If Arch Linux | |
| if grep -q 'Arch Linux' /etc/os-release | |
| then | |
| pacman -Syu --noconfirm --overwrite '*' ansible git vim curl \ | |
| && echo 'Installed base packages' | tee -a /opt/setup.log | |
| ln -s /usr/bin/vim /usr/bin/vi | |
| 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
| version: '3.7' | |
| services: | |
| redis-server: | |
| image: greenbone/redis-server | |
| restart: on-failure | |
| cap_drop: | |
| - ALL | |
| volumes: | |
| - redis_socket_vol:/run/redis/ |