bruh moment
whitespace/formatting diff
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
complete -W "$(compgen -u)" workas
|
||||
3
instance-bash_completion
Normal file
3
instance-bash_completion
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
complete -W "$(compgen -u | sed 's/$/@/')" workas
|
||||
@@ -21,8 +21,8 @@ cat instance-bash_aliases | tee -a ~/.bash_aliases
|
||||
cat instance-bash_aliases | sudo tee -a /etc/skel/.bash_aliases
|
||||
|
||||
# some useful autocompletions
|
||||
chmod 774 instance-bash_autocompletions
|
||||
./instance-bash_autocompletions
|
||||
cat instance-bash_completion | tee -a ~/.bash_completion
|
||||
cat instance-bash_completion | sudo tee -a /etc/skel/.bash_completion
|
||||
|
||||
cd ~ || exit
|
||||
sudo apt-get update
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
echo -e "\n[+] setting up mealie\n\n-------\n"
|
||||
|
||||
envsubst < "${HOME}"/"${USER}"-compose_template.yaml > "${HOME}"/"${USER}"-compose.yaml
|
||||
envsubst <"${HOME}"/"${USER}"-compose_template.yaml >"${HOME}"/"${USER}"-compose.yaml
|
||||
|
||||
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@ services:
|
||||
- /etc/passwd:/etc/passwd:ro
|
||||
user: ${PUID}:${PGID}
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'psql -U postgres -d spotify-manager -c "select version();"']
|
||||
test:
|
||||
[
|
||||
'CMD-SHELL',
|
||||
'psql -U postgres -d spotify-manager -c "select version();"',
|
||||
]
|
||||
interval: 1s
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
|
||||
@@ -38,7 +38,11 @@ services:
|
||||
- postgres_data:/var/lib/postgresql
|
||||
user: ${PUID}:${PGID}
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "select version();"']
|
||||
test:
|
||||
[
|
||||
'CMD-SHELL',
|
||||
'psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "select version();"',
|
||||
]
|
||||
interval: 1s
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
|
||||
@@ -12,4 +12,3 @@ sudo deluser --remove-all-files $username
|
||||
|
||||
# clean-up
|
||||
sudo find / -user "$uid_num" -delete
|
||||
|
||||
|
||||
12
wg/all_proxied/PreDown copy.ps1
Normal file
12
wg/all_proxied/PreDown copy.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
# WireGuard tunnel details
|
||||
$wgInterface = Get-NetAdapter -Name $env:WIREGUARD_TUNNEL_NAME
|
||||
|
||||
# Delete the default 0.0.0.0/0 route using the interface index
|
||||
route delete 0.0.0.0 mask 0.0.0.0 0.0.0.0 if $wgInterface.ifIndex
|
||||
|
||||
Set-Location "<path>\<to>\3proxy-0.9.4-x64\bin64\"
|
||||
|
||||
# Terminate any running instances of 3proxy.exe
|
||||
# Stop-Process -Name "3proxy" -Force
|
||||
# prefer taskkill for the /t option to end child processes
|
||||
taskkill.exe /f /t /im 3proxy.exe
|
||||
Reference in New Issue
Block a user