Added all my Peronal Scripts
This commit is contained in:
8
NTINDEX
8
NTINDEX
@@ -1,3 +1,11 @@
|
||||
# Snippets
|
||||
|
||||
snippets/aptautoremoveandclean.snippet@9EDB63930982F7D5C5105A089248B860
|
||||
snippets/dockcheckupdater.snippet@1CEDC394FA86FF517CF389FA17216EF1
|
||||
snippets/dockerfullprune.snippet@2F499A3925734CDFD6B4C0B074E67C8E
|
||||
snippets/nextcloudappsupdater.snippet@31152143A61485B7C7CFDE112DBCE3E6
|
||||
snippets/nohupdockcheck.snippet@19058B21C6CDD34F4B64E73FC92742B6
|
||||
snippets/resticbackupperubuntu.snippet@C836474C896F005CF532BB574B6B3CDD
|
||||
snippets/resticbackupperwin.snippet@3B4ED66047F874BA9F5FCF3FA80080DD
|
||||
snippets/restserver.snippet@B72873EB5CED33239487A3F27BAF0ECD
|
||||
snippets/wingetupdater.snippet@2E27D5A7E019E42709F6A55FB5AD48C6
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Nexterm-Source
|
||||
|
||||
These are my custom Nexterm Scripts and Snippets
|
||||
|
||||
5
snippets/aptautoremoveandclean.snippet
Normal file
5
snippets/aptautoremoveandclean.snippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# @name: apt autoremove and clean
|
||||
# @description: This will remove all the extra packages from apt
|
||||
# @os: Ubuntu
|
||||
|
||||
sudo apt autoremove && sudo apt clean
|
||||
5
snippets/dockerfullprune.snippet
Normal file
5
snippets/dockerfullprune.snippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# @name: Docker Full Prune
|
||||
# @description: This will remove all stopped containers & all networks not used by at least one container & all images without at least one container associated to them & all build cache
|
||||
# @os: Ubuntu
|
||||
|
||||
docker system prune -a
|
||||
5
snippets/nextcloudappsupdater.snippet
Normal file
5
snippets/nextcloudappsupdater.snippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# @name: Nextcloud Apps Updater
|
||||
# @description: This is going to Update all the Apps inside my Nextcloud Service
|
||||
# @os: Ubuntu
|
||||
|
||||
sudo docker exec linuxserver-nextcloud-app-1 occ app:update --all
|
||||
5
snippets/nohupdockcheck.snippet
Normal file
5
snippets/nohupdockcheck.snippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# @name: nohup (dockcheck)
|
||||
# @description: This will check if the dockcheck script that has been executed using n8n with nohup is running
|
||||
# @os: Ubuntu
|
||||
|
||||
ps aux | grep dockcheck
|
||||
5
snippets/resticbackupperubuntu.snippet
Normal file
5
snippets/resticbackupperubuntu.snippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# @name: Restic Backupper (Ubuntu)
|
||||
# @description: This will make a new backup snapshot using Restic on Ubuntu, and then keep the latest 7 ones
|
||||
# @os: Ubuntu
|
||||
|
||||
sudo bash -c "export RESTIC_PASSWORD='Ms@199903' && restic -r rest:http://192.168.0.100:8080/ --verbose backup /DATA/AppData && restic -r rest:http://192.168.0.100:8080/ forget --keep-last 7 --prune"
|
||||
4
snippets/resticbackupperwin.snippet
Normal file
4
snippets/resticbackupperwin.snippet
Normal file
@@ -0,0 +1,4 @@
|
||||
# @name: Restic Backupper (Win)
|
||||
# @description: This will make a new backup snapshot using Restic on Windows, and then keep the latest 7 ones
|
||||
|
||||
$env:RESTIC_PASSWORD='Ms@199903'; restic -r 'D:\Backups\restic' --verbose backup --use-fs-snapshot 'C:\Data\AppData'; restic -r 'D:\Backups\restic' forget --keep-last 7 --prune
|
||||
4
snippets/restserver.snippet
Normal file
4
snippets/restserver.snippet
Normal file
@@ -0,0 +1,4 @@
|
||||
# @name: Rest Server
|
||||
# @description: Start the Rest Server on Windows for Restic
|
||||
|
||||
C:\Portables\rest-server\rest-server.exe --listen :8080 --path D:\Backups\Restic --no-auth
|
||||
4
snippets/wingetupdater.snippet
Normal file
4
snippets/wingetupdater.snippet
Normal file
@@ -0,0 +1,4 @@
|
||||
# @name: Winget Updater
|
||||
# @description: This will update all the Apps on Windows using Winget
|
||||
|
||||
winget upgrade --all --silent --accept-package-agreements --accept-source-agreements
|
||||
Reference in New Issue
Block a user