summaryrefslogtreecommitdiff
path: root/.doom.d/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.doom.d/scripts')
-rw-r--r--.doom.d/scripts/.env.example3
-rwxr-xr-x.doom.d/scripts/check_jenkinsfile.py25
-rw-r--r--.doom.d/scripts/ics-to-org.el1
-rwxr-xr-x.doom.d/scripts/ics-to-org.sh22
4 files changed, 0 insertions, 51 deletions
diff --git a/.doom.d/scripts/.env.example b/.doom.d/scripts/.env.example
deleted file mode 100644
index 30ce39b7..00000000
--- a/.doom.d/scripts/.env.example
+++ /dev/null
@@ -1,3 +0,0 @@
-JENKINS_URL=http://my-jenkins.url
-JENKINS_USER=myusername
-JENKINS_PASS=mypassword
diff --git a/.doom.d/scripts/check_jenkinsfile.py b/.doom.d/scripts/check_jenkinsfile.py
deleted file mode 100755
index cf2b97d9..00000000
--- a/.doom.d/scripts/check_jenkinsfile.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import requests
-
-from dotenv import load_dotenv
-
-load_dotenv()
-
-JENKINS_URL = os.environ.get("JENKINS_URL")
-JENKINS_USER = os.environ.get("JENKINS_USER")
-JENKINS_PASS = os.environ.get("JENKINS_PASS")
-
-files = {
- "jenkinsfile": (None, open("Jenkinsfile", "rb")),
-}
-
-try:
- response = requests.post(
- f"{JENKINS_URL}/pipeline-model-converter/validate",
- files=files,
- auth=(JENKINS_USER, JENKINS_PASS))
- print(response.text)
-except requests.exceptions.ConnectionError:
- print("Jenkins can't be found. Is the VPN on?")
diff --git a/.doom.d/scripts/ics-to-org.el b/.doom.d/scripts/ics-to-org.el
deleted file mode 100644
index bf42c535..00000000
--- a/.doom.d/scripts/ics-to-org.el
+++ /dev/null
@@ -1 +0,0 @@
-(icalendar-import-file "/tmp/calendar/personal-calendar.ics" "~/.emacs.d/.local/cache/diary")
diff --git a/.doom.d/scripts/ics-to-org.sh b/.doom.d/scripts/ics-to-org.sh
deleted file mode 100755
index 7cf8f600..00000000
--- a/.doom.d/scripts/ics-to-org.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-# This is a cron that runs every 15 mins and populates my emacs diary file with my calendar items
-
-# Downloading calendar
-echo "Downloading Calendar"
-mkdir -p /tmp/calendar
-cd /tmp/calendar
-wget "https://cloud.rogs.me/remote.php/dav/public-calendars/kRMMJ2CArQeCPzRi/?export" -O "personal-calendar.ics" -c
-wget "https://files-f1.motorsportcalendars.com/f1-calendar_qualifying_sprint_gp.ics" -O "f1.ics" -c
-
-# Merge the calendars
-cat f1.ics >> personal-calendar.ics
-
-#Generating the file
-
-echo "#Generating the file"
-rm ~/.emacs.d/.local/cache/diary
-emacs --batch -l ~/.doom.d/scripts/ics-to-org.el
-
-echo "#Deleting everything"
-#Deleting everything
-rm -r /tmp/calendar