Skip to content

Instantly share code, notes, and snippets.

View KYDronePilot's full-sized avatar

Michael Galliers KYDronePilot

  • Kentucky, United States
View GitHub Profile
@KYDronePilot
KYDronePilot / course_info_scraper.js
Created July 21, 2019 19:59
Get info and schedule for Eastern Kentucky University courses
// Get all of the raw course tables (info and schedule)
let rawTables = document.querySelectorAll("table.datadisplaytable");
// Zip together info and schedule tables of the same course
let rawCourses = [];
for (let i = 0; i < rawTables.length; i += 2) {
let course = {};
course.info = rawTables[i];
course.schedule = rawTables[i + 1];
rawCourses.push(course);
@KYDronePilot
KYDronePilot / HotCorner.ahk
Last active May 2, 2023 08:03 — forked from dvtate/HotCorner.ahk
Hot Corners for Windows 10 using AutoHotKey
; ## What is it?
;
; An AutoHotKey script that replicates the "Hot Corners" feature of macOS on
; Windows
;
; ## How to use it?
;
; Modify the code in each `if` block (before the sleep command, which prevents
; duplicate triggers) for each corner below so it performs the desired action.
@KYDronePilot
KYDronePilot / MacTextEditingShortcuts.md
Last active January 30, 2021 23:01
Mac shortcuts for text editing

Mac Text Editing Shortcuts

Source: https://www.howtogeek.com/681662/35-mac-text-editing-keyboard-shortcuts-to-speed-up-typing/

Option+Left Arrow: To the beginning of the previous word. Option+Right Arrow: To the beginning of the next word. Command+Left Arrow: To the beginning of the current line. Command+Right Arrow: To the end of the current line. Option+Up Arrow: To the beginning of the current paragraph. Option+Down Arrow: To the end of current paragraph.

@KYDronePilot
KYDronePilot / Dockerfile
Created February 27, 2021 15:58
Pipenv Dockerfile template
FROM python:3-alpine AS base
WORKDIR /project
ENV PIPENV_VENV_IN_PROJECT=1
RUN pip install --no-cache-dir pipenv
COPY ./Pipfile* ./
# Install/build pipenv environment in separate container to reduce bulk
@KYDronePilot
KYDronePilot / init.vim
Last active June 14, 2022 18:19
My neovim init.vim
" *****************************************************************************
" init.vim - my neovim config
"
" Copyright (c) 2022 Michael Galliers
" *****************************************************************************
" -----------------------------------------------------------------------------
" Global settings
" -----------------------------------------------------------------------------
@KYDronePilot
KYDronePilot / config.sh
Created August 5, 2022 14:53
yt-dlp settings
# Thumbnail embed
--embed-thumbnail
# Video description+chapters embed
--embed-metadata
# Auto-gen subtitles embed
--write-auto-subs
--embed-subs
# Max mp4 (up to 1080p) and m4a (requires ffmpeg)
--format 'bestvideo[ext=mp4][height<=1080]+bestaudio[ext=m4a]'
# Format filename