Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block anthonybaldwin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anthonybaldwin /
Created Nov 12, 2019
Download most recent Chromedriver and update version file
#!/usr/bin/env bash
# Version
# Remove existing
rm chromedriver
rm chromedriver-mac
rm chromedriver.exe
View .zshrc
## Weather ##
# w 93101
# w "blue springs"
# weather "kansas city"
alias weather='w() {
if [ $1 ]; then
anthonybaldwin / WIP: Browser Based Text Animations for OBS Studio
Last active Jul 22, 2019
Browser Based Text Animations for OBS Studio, Using animate.css and Streamlabs Labels (README @ bottom of Gist)
View WIP: Browser Based Text Animations for OBS Studio
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 (found somewhere on StackOverflow researching CORS issue),
or most of ticker.js (this came with original post FTMP).
anthonybaldwin / follower.html
Created Jul 22, 2019
WIP: Follower animations using animate.css and Streamlabs Labels
View follower.html
<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">
anthonybaldwin /
Last active Jul 13, 2019 — forked from kus/
Convert any video (i.e.: AVI, MOV, MP4) to MP4 or WEBM with FFmpeg. Has option to export MP4 with YUV planar color space so it works with QuickTime and Safari.
# Version 1.0 2016-06-03
# MIT license
# Prerequisites:
# Homebrew:
# 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
# Run: ./
anthonybaldwin / template.ahk
Created Jun 23, 2019
AHK Blank Template by GroggyOtter
View template.ahk
;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+
anthonybaldwin / main.js
Last active Jun 13, 2019
DLive/TidyLabs stream overlay (requires electron/electron-quick-start)
View main.js
// git clone
// 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
anthonybaldwin /
Last active Jun 10, 2019
Save crypto prices to a text file
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
def get_latest_price(coin):
response = None

Keybase proof

I hereby claim:

  • I am anthonybaldwin on github.
  • I am anthonybaldwin ( on keybase.
  • I have a public key ASDFet-vv5GukByyMbReVg-GaW6eOdJXfI2jcwwS43s19go

To claim this, I am signing this object:

anthonybaldwin / __OntraportGoogleAnalyticsEcommerceMinified.js
Last active Jan 23, 2019
Send ONTRAPORT Order Form Transaction Information to Google Analytics/Ecommerce
View __OntraportGoogleAnalyticsEcommerceMinified.js
var googleAnalyticsId = "UA-123456789-1", // replace with your Google Analytics ID
googleAnalyticsCurrency = "USD"; // currency you wish to send purchases in
function gv(e){for(var"&"),r=0;r<a.length;r++){var t=a[r].split("=");if(t[0]==e)return decodeURIComponent(t[1]).replace(/\+/g," ")}return!1}function gae(){var e=gv("OrderId");if(e){ga("require","ecommerce");var a=gv("Revenue"),r=gv("Shipping"),t=gv("Tax");ga("ecommerce:addTransaction",{id:e,revenue:a,shipping:r,tax:t,currency:googleAnalyticsCurrency});var i=1,n=1;do{var c=gv("Item"+n+"Id"),o=gv("Item"+n+"Name"),g=c||o;if(c||o){var u=gv("Item"+n+"Price"),l=gv("Item"+n+"Quantity");ga("ecommerce:addItem",{id:e,name:o,price:u,quantity:l,sku:g}),n++}else i=0}while(i);ga("ecommerce:send"),ga("ecommerce:clear")}return!1}!function(e,a,r,t,i,n,c){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e
You can’t perform that action at this time.