This cheat sheet is not for beginners learning Git. Instead, it is a simple "here's all the most used commands" for when you inevitably forget one or two.
Table of Contents
from time import sleep | |
from datetime import datetime | |
""" | |
To read back JSON file: | |
Datetime str format: %Y-%m-%d %H:%M:%S.%f | |
datetime.strptime(datetime_string, "%Y-%m-%d %H:%M:%S.%f") | |
""" | |
SLEEP_TIME = 3 |
@echo OFF | |
REM Sets %$date% to M-D-YYYY | |
set $date=%date:~4% | |
set $date=%$date:/=-% | |
REM =========== CONFIG =========== | |
set COMPRESS_7Z_LOCATION="C:\Program Files\7-Zip\7zG.exe" |
This cheat sheet is not for beginners learning Git. Instead, it is a simple "here's all the most used commands" for when you inevitably forget one or two.
Table of Contents
import os, sys | |
power_plans_data = [] | |
available_power_plans = {} | |
input("\033[1;41mNOTE: If any of your power plans has more than one space in the name this program will NOT work!\n" | |
"Hit enter to continue\033[0m ") | |
power_plans = os.popen("powercfg /list").read() |