This file contains 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
echo "#manual" > >> /etc/apt.sources.list | |
echo "deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware" >> /etc/apt.sources.list | |
echo "deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware" >> /etc/apt.sources.list | |
echo "deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware" >> /etc/apt.sources.list | |
echo "deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware" >> /etc/apt.sources.list | |
echo "deb https://security.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware" >> /etc/apt.sources.list | |
apt update | |
apt install -y sudo | |
/usr/sbin/usermod -aG sudo blue |
This file contains 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: "2.1" | |
services: | |
watchtower: | |
image: containrrr/watchtower | |
container_name: watchtower | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/Bucharest |
This file contains 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: "2.1" | |
services: | |
apt-cacher-ng: | |
image: sameersbn/apt-cacher-ng:3.7.4-20220421 | |
container_name: apt-cacher-ng | |
ports: | |
- <ip>:3142:3142 | |
volumes: |
This file contains 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 | |
# Read the ID from the first argument | |
id="$1" | |
MODE="stop" | |
STORAGE_LOCAL="backups3" | |
STORAGE_LOCAL_PATH="/storage3/pve-backup" | |
REMOTE_HOST="outbound" |
This file contains 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
# | |
# set start/end with gcode: | |
# | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=start VALUE=2 | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=now VALUE=2 | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=end VALUE=5 | |
# | |
# if you set now on each toolchange, if it runs out, the next tool will be used | |
# | |
# then run gcode: |
This file contains 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
# original: https://askubuntu.com/questions/25071/how-to-run-a-script-when-a-specific-flash-drive-is-mounted | |
# you can find your device unit with: sudo systemctl list-units -t mount | |
# put this into /etc/systemd/system/your.service | |
[Unit] | |
Description=SharedMountTrigger | |
Requires=mnt-shared.mount | |
After=mnt-shared.mount | |
[Service] |
This file contains 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
function cleanUpAll(){ | |
clean7DaysAutoPrune(); | |
clean6MonthsAutoPrune(); | |
clean1YearAutoPrune(); | |
} | |
function clean7DaysAutoPrune(){ | |
cleanUpWithParams(7,'auto-prune/auto-prune-7d'); | |
} |
This file contains 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
# | |
# mkdir -p /shared/portainer/data/ | |
# docker-compose -f portainer-only.yml -p portainer up -d | |
# | |
version: '3.7' | |
services: | |
portainer: | |
image: portainer/portainer-ce:latest | |
container_name: 'portainer' |
This file contains 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
<?php | |
$list=@shell_exec('netstat -antepul | grep -i "listen" | grep "127.0.0.1:" | grep -i "docker-proxy"'); | |
$list=explode("\n",str_replace("\r","",$list)); | |
$ports=array(); | |
foreach($list as $k=>$v){ | |
$v=trim($v); | |
if(strlen($v)>0){ | |
while(stripos($v,' ')!==false){ |
This file contains 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 | |
# based on | |
# https://learn.adafruit.com/read-only-raspberry-pi/ | |
if [ $(id -u) -ne 0 ]; then | |
echo "Installer must be run as root." | |
echo "Try 'sudo bash $0'" | |
exit 1 | |
fi |
NewerOlder