Skip to content

Instantly share code, notes, and snippets.

View emptyset's full-sized avatar
🦑
hello

Alan Fay emptyset

🦑
hello
  • Nowhere
View GitHub Profile
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active November 10, 2024 20:52
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

@NSAKEY
NSAKEY / subtilt.sh
Last active August 29, 2015 14:10 — forked from emptyset/split.sh
#!/bin/sh
# The product of brainstorming in the Cryptoparty room at PhreakNIC 18.
# The original script by emptyset can be found here:
# https://gist.github.com/emptyset/551f82819c339fc6f0db
# Lightly modified by _NSAKEY.
# This script was tested on Debian Wheezy and FreeBSD 10.1-RELEASE with bash, csh, and sh.
# Example: ./subtilt.sh Teenage_Mutant_Ninja_Turtles.srt Friday.srt
# The above will give you an srt file with Friday's dialogue set to display at the set times from the TMNT srt file.
@bgrins
bgrins / export-chrome-bookmarks.js
Last active February 26, 2024 04:00
Reminder of how to export bookmarks from Chrome as text.
/*
Export bookmarks from Chrome as text.
Go to Bookmarks Manager->Organize->Export to HTML file.
Then open that file, open console and run this command:
*/
[].map.call(document.querySelectorAll("dt a"), function(a) {
return a.textContent + " - " + a.href
}).join("\n");