diff --git a/.config/systemd/user/cron-13e35ebf5e7e.service b/.config/systemd/user/cron-13e35ebf5e7e.service new file mode 100644 index 0000000..02d75a0 --- /dev/null +++ b/.config/systemd/user/cron-13e35ebf5e7e.service @@ -0,0 +1,7 @@ +[Unit] +Description=cron-13e35ebf5e7e service unit + +[Service] +TimeoutStartSec=0 +ExecStart=nest resources >> ~/automated/resources.txt +Type=oneshot diff --git a/.config/systemd/user/cron-13e35ebf5e7e.timer b/.config/systemd/user/cron-13e35ebf5e7e.timer new file mode 100644 index 0000000..22cfb6d --- /dev/null +++ b/.config/systemd/user/cron-13e35ebf5e7e.timer @@ -0,0 +1,5 @@ +[Unit] +Description=cron-13e35ebf5e7e timer unit + +[Timer] +OnCalendar=*:0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 diff --git a/.config/systemd/user/cron-53dc9761798a.service b/.config/systemd/user/cron-53dc9761798a.service new file mode 100644 index 0000000..398e226 --- /dev/null +++ b/.config/systemd/user/cron-53dc9761798a.service @@ -0,0 +1,7 @@ +[Unit] +Description=cron-53dc9761798a service unit + +[Service] +TimeoutStartSec=0 +ExecStart=bash update_git.sh +Type=oneshot diff --git a/.config/systemd/user/cron-53dc9761798a.timer b/.config/systemd/user/cron-53dc9761798a.timer new file mode 100644 index 0000000..970310a --- /dev/null +++ b/.config/systemd/user/cron-53dc9761798a.timer @@ -0,0 +1,5 @@ +[Unit] +Description=cron-53dc9761798a timer unit + +[Timer] +OnCalendar=*:* diff --git a/.config/systemd/user/cron-d4e24025f0a5.service b/.config/systemd/user/cron-d4e24025f0a5.service new file mode 100644 index 0000000..2bd53cc --- /dev/null +++ b/.config/systemd/user/cron-d4e24025f0a5.service @@ -0,0 +1,7 @@ +[Unit] +Description=cron-d4e24025f0a5 service unit + +[Service] +TimeoutStartSec=0 +ExecStart=bash clean.sh +Type=oneshot diff --git a/.config/systemd/user/cron-d4e24025f0a5.timer b/.config/systemd/user/cron-d4e24025f0a5.timer new file mode 100644 index 0000000..eadf982 --- /dev/null +++ b/.config/systemd/user/cron-d4e24025f0a5.timer @@ -0,0 +1,5 @@ +[Unit] +Description=cron-d4e24025f0a5 timer unit + +[Timer] +OnCalendar=*:* diff --git a/.config/systemd/user/cron-db07b00ab34e.service b/.config/systemd/user/cron-db07b00ab34e.service new file mode 100644 index 0000000..5bf2860 --- /dev/null +++ b/.config/systemd/user/cron-db07b00ab34e.service @@ -0,0 +1,7 @@ +[Unit] +Description=cron-db07b00ab34e service unit + +[Service] +TimeoutStartSec=0 +ExecStart=bash mass_delete_emails_reminder.sh +Type=oneshot diff --git a/.config/systemd/user/cron-db07b00ab34e.timer b/.config/systemd/user/cron-db07b00ab34e.timer new file mode 100644 index 0000000..72a1c3d --- /dev/null +++ b/.config/systemd/user/cron-db07b00ab34e.timer @@ -0,0 +1,5 @@ +[Unit] +Description=cron-db07b00ab34e timer unit + +[Timer] +OnCalendar=1,3,5,7,9,11-1,31 0:0 diff --git a/.config/systemd/user/uptime.service b/.config/systemd/user/uptime.service new file mode 100644 index 0000000..6c4dfb6 --- /dev/null +++ b/.config/systemd/user/uptime.service @@ -0,0 +1,7 @@ +[Unit] +Description=Uptime + +[Service] +TimeoutStartSec=0 +ExecStart=bash /home/neon/uptime.sh +Type=oneshot diff --git a/.config/systemd/user/uptime.timer b/.config/systemd/user/uptime.timer new file mode 100644 index 0000000..3c7ee4f --- /dev/null +++ b/.config/systemd/user/uptime.timer @@ -0,0 +1,5 @@ +[Unit] +Description=Uptime for 1min + +[Timer] +OnCalendar=*:* diff --git a/.github/workflows/restart-systemd.yml b/.github/workflows/restart-systemd.yml new file mode 100644 index 0000000..5416844 --- /dev/null +++ b/.github/workflows/restart-systemd.yml @@ -0,0 +1,29 @@ +name: Restart Systemd +on: + push: + branches: + - main + paths: + - ".config/systemd/user/**" + workflow_dispatch: + + +jobs: + build: + name: Restart Systemd + runs-on: ubuntu-latest + steps: + - name: is zeon + uses: zeon-neon/gh-action-no-zeon@v1 + id: zeonallowed + - name: Execute + if: ${{ steps.zeonallowed.outputs.skip == 'false' }} + uses: appleboy/ssh-action@v1.0.3 + with: + host: hackclub.app + username: neon + passphrase: ${{ secrets.PASSWORD }} + key: ${{ secrets.ZEON_KEY }} + port: 22 + script: | + systemctl --user daemon-reload diff --git a/.gitignore b/.gitignore index 38a3197..c17c45f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ sent # all sent mail is there .cache/* .env .env.* +.uptime-url +main.cron diff --git a/.wget-hsts b/.wget-hsts deleted file mode 100644 index 3c5001a..0000000 --- a/.wget-hsts +++ /dev/null @@ -1,5 +0,0 @@ -# HSTS 1.0 Known Hosts database for GNU Wget. -# Edit at your own risk. -# -raw.githubusercontent.com 0 0 1726022810 31536000 -github.com 0 1 1726250945 31536000 diff --git a/clean.sh b/clean.sh index b0f1bf5..9cda2be 100644 --- a/clean.sh +++ b/clean.sh @@ -4,3 +4,5 @@ rm .bash_history .bash_logout rm .sh_history rm .lesshst rm -rf .links2 +rm -rf .wget-hsts + diff --git a/install_cron_to_systemd.sh b/install_cron_to_systemd.sh new file mode 100644 index 0000000..e05fc3f --- /dev/null +++ b/install_cron_to_systemd.sh @@ -0,0 +1 @@ +ct2stimer -f main.cron -o ~/.config/systemd/user/ --reload diff --git a/ssh-pgp-nest-chat/.gitkeep b/ssh-pgp-nest-chat/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/uptime.sh b/uptime.sh new file mode 100644 index 0000000..8d1b468 --- /dev/null +++ b/uptime.sh @@ -0,0 +1,2 @@ +echo "$(cat ~/.uptime-url)" +curl -v "$(cat ~/.uptime-url)"