initial re-commit to wipe commit histoy due to public repo
This commit is contained in:
		
							
								
								
									
										13
									
								
								other/cbd.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								other/cbd.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Need to try next with arg --user 1000:1000 Nope, fails internall even with extra args
 | 
			
		||||
# For me, use certbot@hod
 | 
			
		||||
 | 
			
		||||
docker run -it --rm --name certbot \
 | 
			
		||||
  -v "/home/finn/d/cert/etc/letsencrypt:/etc/letsencrypt" \
 | 
			
		||||
  -v "/home/finn/d/cert/var/lib/letsencrypt:/var/lib/letsencrypt" \
 | 
			
		||||
  certbot/dns-linode certonly \
 | 
			
		||||
  --dns-linode \
 | 
			
		||||
  --dns-linode-credentials /etc/letsencrypt/ddnscred.txt \
 | 
			
		||||
  -d "oily.dad" \
 | 
			
		||||
  -d "*.oily.dad"
 | 
			
		||||
							
								
								
									
										4
									
								
								other/ddnscred.txt.sterile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								other/ddnscred.txt.sterile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
# Base ddns token
 | 
			
		||||
dns_linode_key = 1234
 | 
			
		||||
dns_linode_version = 4
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								other/haphazard_reboot.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								other/haphazard_reboot.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Random Reboot after minimum uptime script
 | 
			
		||||
# Flat 1 in $CHANCE chance of reboot -- crontab freq matters.
 | 
			
		||||
# Expected per hour run
 | 
			
		||||
# 1000000 is one day
 | 
			
		||||
# chance 192 is average 8 day
 | 
			
		||||
 | 
			
		||||
MIN_UT=4000000
 | 
			
		||||
CHANCE=192
 | 
			
		||||
 | 
			
		||||
UPTIMEVAL=$(uptime | cut -f 2 -d ' ' | sed "s/://g")
 | 
			
		||||
echo "Flat uptime:$UPTIMEVAL"
 | 
			
		||||
 | 
			
		||||
#UPTIMEVAL=220000
 | 
			
		||||
 | 
			
		||||
if [[ $UPTIMEVAL -gt $MIN_UT ]] ; then
 | 
			
		||||
	echo "gt success, now random"
 | 
			
		||||
	if [[ $(( $RANDOM % 48 )) == 0 ]] ; then
 | 
			
		||||
		echo "random success"
 | 
			
		||||
		reboot
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								other/renew.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								other/renew.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Need to try next with arg --user 1000:1000 Nope, fails internall even with extra args
 | 
			
		||||
# For me, use certbot@hod
 | 
			
		||||
# RENEW SCRIPT
 | 
			
		||||
 | 
			
		||||
docker run -it --rm --name certbot \
 | 
			
		||||
  -v "/home/finn/d/cert/etc/letsencrypt:/etc/letsencrypt" \
 | 
			
		||||
  -v "/home/finn/d/cert/var/lib/letsencrypt:/var/lib/letsencrypt" \
 | 
			
		||||
  certbot/dns-linode renew \
 | 
			
		||||
  --dns-linode \
 | 
			
		||||
  --dns-linode-credentials /etc/letsencrypt/ddnscred.txt \
 | 
			
		||||
  --dry-run
 | 
			
		||||
		Reference in New Issue
	
	Block a user