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 | |
| # ============================================================================= | |
| # setup-openrgb-msi-3090.sh | |
| # Disables RGB LEDs on dual MSI GeForce RTX 3090 Gaming X Trio | |
| # Debian Trixie, headless/SSH only | |
| # ============================================================================= | |
| set -e | |
| DEB_URL="https://codeberg.org/OpenRGB/OpenRGB/releases/download/release_candidate_1.0rc2/openrgb_1.0rc2_amd64_trixie_0fca93e.deb" |
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 | |
| # Stop and disable service | |
| systemctl stop otel-collector.service 2>/dev/null | |
| systemctl disable otel-collector.service 2>/dev/null | |
| # Remove systemd service file | |
| rm -f /etc/systemd/system/otel-collector.service | |
| systemctl daemon-reload |
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
| parallel --tag -j 2 ocrmypdf --rotate-pages -O2 --deskew --clean --output-type pdf '{}' 'output/{}' ::: *.pdf |
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
| plink.exe -4 -batch -ssh -pw <your-password> <host-username>@<hostname> "sudo tcpdump -s0 -U -n -w - -i <network-interface> not port 22" | "C:\Program Files\Wireshark\Wireshark.exe" -k -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
| docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \ | |
| assaflavie/runlike YOUR-CONTAINER |
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
| docker volume create portainer_data | |
| docker run --name portainer -d -p 8000:8000 -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer |
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
| docker run \ | |
| -d \ | |
| --name plex \ | |
| --network=host \ | |
| --restart=always \ | |
| -e TZ="Europe/Brussels" \ | |
| -e PUID=1001 -e PGID=1001 \ | |
| -e PLEX_CLAIM="<plex_claim>" \ | |
| -v /home/plex/config:/config \ | |
| -v /home/plex/transcode:/transcode \ |
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 | |
| mkdir postgres | |
| cd postgres | |
| sudo docker volume create --driver local --name=pgvolume | |
| sudo docker volume create --driver local --name=pga4volume | |
| sudo docker network create --driver bridge pgnetwork |
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
| # initialize the swarm on the default ethernet ip address | |
| docker swarm init --advertise-addr `/sbin/ip -o -4 addr list enp0s3 | awk '{print $4}' | cut -d/ -f1` |
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
| # add key | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| # add repo | |
| sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
| # update | |
| sudo apt-get update | |
| # install docker | |
| sudo apt-get install -y docker-engine | |
| # check docker | |
| sudo systemctl status docker |
NewerOlder