Skip to content

Instantly share code, notes, and snippets.

View kjaymiller's full-sized avatar
🤔

Jay Miller kjaymiller

🤔
View GitHub Profile
@kjaymiller
kjaymiller / keyboardMaestroXMLMenu.js
Created September 6, 2018 17:23
Keyboard Maestro Script to Loop Through Array
function createButton(variable)
{
return `<dict>
<key>Default</key>
<string>1|0</string>
<key>Variable</key>
<string>a`+variable+`</string>
</dict>
`
};
@kjaymiller
kjaymiller / mute_toggle.scpt
Created January 7, 2019 05:45
Mute Button
if input volume of (get volume settings) = 0 then
set level to 100
else
set level to 0
end if
set volume input volume level
@kjaymiller
kjaymiller / Cover2CoverBooks.md
Created February 11, 2019 18:30
Books Read Cover to Cover
  • Cracking the Coding Interview
  • iOS Development for Dummies
  • Terraform Up and Running
  • Access Database (O'Reilly)
  • Effective STL
  • Effective C++ by Scott Meyers
  • Code Complete
  • CLR via C#
  • The Pragmatic Programmer: from journeyman to master.
  • The Mythical Man Month by Frederick Brooks
@kjaymiller
kjaymiller / vimrc
Last active May 23, 2019 16:04
My Vimrc File
" Basic Setup:
" From Thoughtbot Talk: https://www.youtube.com/watch?v=XA2WjJbmmoM&t=262s
set nocompatible
" Finding Files:
" Provide tab-completion for all file-related tasks
" ** == Search Recursively

A CLI for Bunch.app by Brett Terpstra

Save the file below as bunch in your path. Run bunch -h for help.

CLI for Bunch.app
    -h, --help                       Display this screen
    -l, --list                       List available Bunches
    -o, --open                       Open Bunch ignoring "Toggle Bunches" preference
 -c, --close Close Bunch ignoring "Toggle Bunches" preference
@kjaymiller
kjaymiller / pit_transcriptor.py
Created May 24, 2019 23:59
PIT Transcription Tool
from google.cloud import speech
from google.cloud.speech import enums
from google.cloud.speech import types
from google.cloud.storage import Blog
import sys
speech_client = speech.SpeechClient()
base_uri = sys.argv[1]
@kjaymiller
kjaymiller / pymonthly_twitter.py
Last active June 19, 2019 16:08
Python Monthly Twitter Bot
import tweepy
from secrets import consumer_key, consumer_secret, access_token, access_token_secret
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
search = api.search(q="#python lang:en filter:links min_retweets:10", count=10)
for tweet in search:
@kjaymiller
kjaymiller / reddit_weekly_bot.py
Created June 19, 2019 16:11
Reddit Weekly Bot
from secrets import (CLIENT_ID,
CLIENT_SECRET,
USERNAME,
PASSWORD)
import requests
import requests.auth
from datetime import datetime, timedelta
# Get Authorization Token - Only Good for an Hour so May as Well Refresh with Each Use
@kjaymiller
kjaymiller / watermarker.py
Last active July 18, 2019 23:23
Productivity in Tech More Productive Stamp Script
from PIL import Image, ImageDraw, ImageFont
from sys import argv
def watermark_with_transparency(base_image_path,
output_image_path,
watermark_image_path,
title,
position):
base_image = Image.open(base_image_path)
podcast_rez_image = base_image.resize((4000,4000))
@kjaymiller
kjaymiller / Pipfile
Last active July 29, 2019 19:17
Weekly Update Keyboard Maestro + Quickly Get a Date with Python
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
[[source]]
name = "pythonhosted"
url = "https://files.pythonhosted.org"
[dev-packages]