Skip to content

Instantly share code, notes, and snippets.

View stevenirby's full-sized avatar
🚀
Shipping

Steven Irby stevenirby

🚀
Shipping
View GitHub Profile
@alisonailea
alisonailea / AwakenSpotify.scpt
Last active February 20, 2025 09:11
AppleScript to automate the Spotify playlist launch based on the time of day
--current time in seconds since midnight
set currentTime to (time of (current date))
## Morning
-- (04:00 - 10:30)
set morning to 37800
set morningVolume to 80
-- Happy: Wake Up in a Good Mood
set morningTrack to "spotify:user:116779154:playlist:5sYrf2RnhPY22meUSS5fUu"
@samhernandez
samhernandez / mysqlsync
Last active May 5, 2026 00:00
Sync remote mysql database to local over ssh
#!/bin/bash
# This script assumes you have ssh access to a remote server
# Both databases are backed up to sql files in the same directory
# this script is executed from.
# Usage:
# 1. Make sure this file is executable with `chmod +x mysqlsync`
# 2. Set the credentials for the variables at the top
# (Remember, no spaces around the '=' sign)
# 3. Run it from a directory where you'd like the backup files to go:
@lfender6445
lfender6445 / gist:70b00c97df43827279f7
Last active September 12, 2018 07:50
Never go idle in hipchat - Disable hipchat idle when away from computer
#! /bin/bash
# This if for the mac hipchat client
# To setup, download this file to any folder and save as `hip.sh`
# change the permissions of the file so it is executable using terminal
# You can do this by running `chmod u+x ./hip.sh`
# Now you can run `./hip.sh`
echo 'Hipchat hooray...ho... - Press CTRL+C to stop'
while :
do
@johnchristopher
johnchristopher / extract-audio-from-video.sh
Last active December 19, 2025 10:38
FFmpeg subtitles commands
ffmpeg -i input.mp4 \
-map 0:1 \
-c:a copy \
-y output.m4a
@joeguilmette
joeguilmette / gist:ef231d10554da29c6782
Last active October 1, 2015 05:41
Bangkok for Jean and Chris

#Bangkok Survival Guide This is by no means complete or anything, but hopefully it'll give you a quick rundown of how I learned to enjoy and indeed fall in love with Bangkok. It is by no means everyone's cup of tea, so I will take no offense if you hate it, hate my ideas of what to do, or whatever. So... Here we go!

PS I didn't proofread this at all.

##Stay Near Saphan Taksin It has a BTS station and a boat pier. The neighborhood sucks but you wont spend any time there. You'll get the fuck out and thanks to the public transit available there you'll be able to go anywhere in the city ASAP regardless of traffic.

##Transportation The key to the city is access to transportation next to your bed. Once you have access, you just need to understand the different ways to get around, how they are effected by traffic, and how to mitigate those effects. Kind of like any city in the world.

@ndarville
ndarville / business-models.md
Last active July 6, 2026 01:15
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google