This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import os | |
hosts = [ | |
'google.com', | |
'microsoft.com' | |
] | |
header = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp) | |
cpuTemp1=$(($cpuTemp0/1000)) | |
cpuTemp2=$(($cpuTemp0/100)) | |
cpuTempM=$(($cpuTemp2 % $cpuTemp1)) | |
serial=$(cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2) | |
host="localhost:8086" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application id "com.microsoft.Word" | |
activate | |
repeat with aFile in input | |
open aFile | |
set theOutputPath to ((aFile as text) & ".pdf") | |
tell active document | |
save as it file name theOutputPath file format format PDF | |
close saving no | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -f *.pdf | |
rm -f *.png | |
COMMIT=$(git rev-parse HEAD) | |
for f in *.drawio | |
do | |
/Applications/draw.io.app/Contents/MacOS/draw.io --export --all-pages --output $f.pdf $f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async email(message, env, ctx) { | |
switch (message.to) { | |
case "[email protected]": | |
const taskContent = message.headers.get('subject'); // Use email subject as the task content | |
const requestBody = JSON.stringify({ | |
content: taskContent, | |
due_string: "today", | |
due_lang: "en", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async email(message, env, ctx) { | |
switch (message.to) { | |
case "[email protected]": | |
let subject = message.headers.get('subject'); | |
const todoist_project = 1234; | |
// Get the email body text | |
const emailText = await new Response(message.raw).text(); |
OlderNewer