Here's how to get the date in %Y-%m-%d
format on different shells/systems.
Docs: https://man7.org/linux/man-pages/man1/date.1.html
Note: Use the -I
flag.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from datetime import datetime, timedelta | |
# a function to print out all days of the current year | |
# in CSV format (for importing to a spreadsheet) | |
# has bool flag for incrementing and decrementing | |
def print_days_of_year(incrementing_days=True): |
document.body.style.background = 'pink'; |
Here's how to get the date in %Y-%m-%d
format on different shells/systems.
Docs: https://man7.org/linux/man-pages/man1/date.1.html
Note: Use the -I
flag.
#Requires AutoHotkey v2.0 | |
; Media Keys for AutoHotkey version 2 | |
^!Insert::Send "{Media_Play_Pause}" | |
^!Home::Send "{Media_Prev}" | |
^!End::Send "{Media_Next}" | |
^!PgUp::Send "{Volume_Up}" | |
^!PgDn::Send "{Volume_Down}" |
git_prompt() { | |
BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\(.*\)/\1/') | |
STATUS="$(git status 2> /dev/null)" | |
if [[ "$?" -ne 0 ]]; then | |
return | |
fi | |
if [ ! -z $BRANCH ]; then | |
printf "%s" "%F{reset}%F{yellow}$BRANCH" |
<!-- https://www.tomsguide.com/news/win10-browser-filepath-bsod --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Kill Windows 10</title> | |
</head> | |
<style> |