Skip to content

Instantly share code, notes, and snippets.

View matt-the-ogre's full-sized avatar

Matt Manuel matt-the-ogre

View GitHub Profile
#
winget install AgileBits.1Password
winget install ArduinoSA.IDE.stable
winget install curl.curl
winget install Docker.DockerDesktop
winget install EpicGames.EpicGamesLauncher
winget install Git.Git
winget install GitHub.cli
winget install GitHub.GitHubDesktop
winget install GNU.Grep
@matt-the-ogre
matt-the-ogre / convert-to-jpeg.bat
Created March 7, 2023 19:48
A drag-and-drop batch file for Windows that uses ImageMagick to convert images to JPEG format
@echo off
REM Loop through all the filenames passed to the script
REM requires installation of ImageMagick to work
for %%i in (%*) do (
REM Do something with the filename (e.g., print it to the console)
echo %%i
magick mogrify -format jpg %%i
)
@matt-the-ogre
matt-the-ogre / bash_alias
Last active September 14, 2015 01:40 — forked from vitorbritto/bash_alias
dotfiles - bash alias
#!/bin/bash
# ------------------------------------------------------------------------------
# | System |
# ------------------------------------------------------------------------------
# Navigation
# -------------------
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
#!/bin/bash
# Encode a WAV to a finalized podcast MP3 with metadata, in the current directory
# Requires lame
# With Homebrew on Mac OS X: brew install lame
SHOW_AUTHOR="K. Manuel"
LECTURE_DATE=$1
LECTURE_INDEX=$2
from scene import *
from PIL import Image
import sound
import random
GAME_READY = 0
GAME_PLAY = 1
GAME_DYING = 2
GAME_DEAD = 3
#!/usr/bin/ruby
# tp-dailylog.rb - Log TaskPaper tasks completed on the current day to a Day One entry
# Brett Terpstra 2012 <http://brettterpstra.com>
#
# Run it with launchd at 11pm and forget about it
#
# Notes:
# * Uses `mdfind` to locate all .taskpaper files changed in the last day
# * Scans for @done(xxxx-xx-xx) tags in each line matching today's date
# * Does not alter TaskPaper files in any way
# This script adds a "Webclip" shortcut to your homescreen.
# The shortcut can be used to open a web page in full-screen mode,
# or to launch a custom URL (e.g. a third-party app).
# You'll be asked for a title, a URL, and an icon (from your camera roll)
import plistlib
import BaseHTTPServer
import webbrowser
import uuid
from io import BytesIO