Skip to content

Instantly share code, notes, and snippets.

@bigtiger
bigtiger / dosh.sh
Last active August 29, 2015 14:22
Show list of docker containers and make it easier to connect to them.
function dosh() {
if [ "$1" != "" ]
then
docker exec -i -t `docker ps|grep $1|cut -d ' ' -f 1` bash
else
docker ps|grep gopro.*:latest|grep -v postgres|cut -d ' ' -f 1-10
fi
}
dosh() {
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ]
then
read -r -d '' VAR << EOM
Usage: dosh [argument]
Arguments:
ls (default) lists running containers
[name|id] runs bash for specified container
help, -h, --help brings up this help

Keybase proof

I hereby claim:

  • I am bigtiger on github.
  • I am jremsikjr (https://keybase.io/jremsikjr) on keybase.
  • I have a public key ASAwzn79LSI5THj1HnBTTUOyBmaqVa0oFQGdLDCClp_p3wo

To claim this, I am signing this object:

# VDCAssistant is the daemon for the built-in iSight cameras on Mac hardware
sudo killall VDCAssistant
@bigtiger
bigtiger / readme.txt
Created September 21, 2018 19:23
Veggie Jam (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bigtiger
bigtiger / image_processing-on-heroku.md
Last active December 2, 2022 00:21
How We Deployed Image Processing to Heroku in Support of a Rails 6 Application

How We Deployed Image Processing to Heroku in Support of a Rails 6 Application

Our app was already deployed and working on Heroku with MiniMagick. There were a few features of Image Processing that were appealing, performance and autorotation, and it appeared to be a straightforward swap.

Locally, we had run brew install vips on our MacBooks to get it running. That was early in the process and a detail long forgotten. When I deployed to Heroku @juliancheal pointed out that the staging environment was failing with an ActiveSupport::MessageVerifier::InvalidSignature error.

We were able to quickly identify the missing libvips dependency.

Figuring out how to install libvips to support rubyvips to support Image Processing was not trivial and therefore this guidepost exists.

@bigtiger
bigtiger / flagrant-home.config.json
Created August 16, 2023 15:54
Links to commonly used internal Flagrant tools
{
"version": "2.0",
"id": "home.config",
"title": "Flagrant Home Config",
"featured": [
{
"name": "Flagrant Website",
"link": "https://www.beflagrant.com",
"background": "/assets/Frame_1.jpeg"
},