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
; Original: https://web.archive.org/web/20230528022520/https://www.howtogeek.com/445318/how-to-remap-the-office-key-on-your-keyboard/ | |
; Converted using: https://github.com/mmikeww/AHK-v2-script-converter | |
; Registry fix: | |
; Add: REG ADD HKCU\Software\Classes\ms-officeapp\Shell\Open\Command /t REG_SZ /d rundll32 | |
; Remove: REG DELETE HKCU\Software\Classes\ms-officeapp\Shell | |
; To use: | |
; - Run the registry ADD fix above via Administrator PowerShell | |
; - Run this script on StartUp (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp) by: |
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
const t12To24 = function(time: any) { //time=12:30PM | |
time = time.replace(/[AP]/, " $&"); //time=12:30 PM | |
let [t, p] = time.split(' '); //t=12:30, p=PM | |
let [h, m] = t.split(':'); //h=12, m=30 | |
if (h === '12') {h = '00';} //h=00 | |
if (p === 'PM') {h = parseInt(h, 10) + 12;} //h=12 | |
return `${h}:${m}`; //12:30 | |
} | |
let date = Trigger.CreatedAt; //date="April 20, 2021 at 04:20PM" |
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/bin/env bash | |
# Version | |
CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
# Remove existing | |
rm chromedriver | |
rm chromedriver-mac | |
rm chromedriver.exe |
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
## Weather ## | |
# w 93101 | |
# w "blue springs" | |
# weather "kansas city" | |
alias weather='w() { | |
if [ $1 ]; then | |
curl wttr.in/$1 | |
else | |
curl wttr.in |
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
Shitty README.md: | |
Inspiration: https://www.reddit.com/r/Twitch/comments/6uqhh9/how_to_use_css_to_format_imported_text/ | |
This started because OBS cannot convert "read from file" text to uppercase/lowercase. | |
"Issue" is fixed in SLOBS, so is possible...maybe next time I'll dive into OBS and see if a bug, or what. | |
I have cool animations now, so it was worth it anyway. ;) | |
I didn't write server.py (found somewhere on StackOverflow researching CORS issue), | |
or most of ticker.js (this came with original post FTMP). |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<script type="text/javascript" src="http://localhost:8888/ticker.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://localhost:8888/animate.css"> |
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 | |
# Version 1.0 2016-06-03 https://gist.github.com/kus/318f21b840df0b7a6377563ce717c184 | |
# MIT license | |
# Prerequisites: | |
# Homebrew: http://brew.sh/ | |
# Install FFmpeg via Homebrew: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvpx --with-theora --with-libogg --with-libvorbis --with-opus --with-x265 | |
# Make the script executable: sudo chmod u+x convert-video.sh | |
# Run: ./convert-video.sh |
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
;Blank Template written by GroggyOtter | |
;============================== Start Auto-Execution Section ============================== | |
; Always run as admin | |
if not A_IsAdmin | |
{ | |
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+ | |
ExitApp | |
} | |
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
// git clone https://github.com/electron/electron-quick-start | |
// Modules to control application life and create native browser window | |
const {app, BrowserWindow} = require('electron') | |
const path = require('path') | |
// Keep a global reference of the window object, if you don't, the window will | |
// be closed automatically when the JavaScript object is garbage collected. | |
let mainWindow |
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
import requests | |
import time, datetime | |
import sys | |
# find a home for these | |
directory = 'C://Users//antho//Downloads//Assets//' # include trailing slash, e.g., 'C://Users//antho//Downloads//Assets//' | |
# get latest price of desired coin from coinmarketcap.com | |
def get_latest_price(coin): | |
response = None |
NewerOlder