This file contains hidden or 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
# Change AWS instance type by hostname | |
function modify-aws-instance-type() { | |
local hostname=$1 | |
if [ -z $hostname ]; then | |
echo "ERR: hostname not provided, usage:" | |
echo " modify-aws-instance-type HOSTNAME INSTANCE_TYPE" | |
return 1 | |
fi | |
local instance_type=$2 | |
if [ -z $instance_type ]; then |
This file contains hidden or 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
<%* | |
moment.locale("en-gb") | |
const thisDay = window.moment(new Date(tp.file.title)); | |
const previousDay = thisDay.clone().subtract(1, 'days'); | |
const previousDayFmt = previousDay.format("YYYY-MM-DD") | |
const lastYearDay = thisDay.clone().subtract(1, 'years'); | |
const nextDay = thisDay.clone().add(1, 'days'); | |
const nextDayFmt = nextDay.format("YYYY-MM-DD") | |
const thisWeek = thisDay.format("YYYY-[W]ww") | |
const thisMonth = thisDay.format("YYYY-MM-[M]") |
This file contains hidden or 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
import os | |
import re | |
import shutil | |
from pathlib import Path | |
# Get the script directory and define the daily directory path | |
SCRIPT_DIR = Path(__file__).parent | |
DAILY_DIR = SCRIPT_DIR.parent / "planner" / "daily" | |
# Function to ensure a directory exists |
OlderNewer