Skip to content

Instantly share code, notes, and snippets.

@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"
},
@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 / 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
# VDCAssistant is the daemon for the built-in iSight cameras on Mac hardware
sudo killall VDCAssistant

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:

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
@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
}
bigtiger@world-1:~$ gem install dictatorship —version ‘benevolent’
Fetching: i18n-0.6.9.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
// set variables for environment
var express = require('express');
var app = express();
var path = require('path');
var port = 4000;
// Displays server log in the CLI
app.use(express.logger());
// Set server port
@bigtiger
bigtiger / gist:7636066
Created November 25, 2013 03:51
Failure of WP on Heroku because of compilation error?
2013-11-25T03:38:03.689262+00:00 app[web.1]: 10.191.63.167 - - [25/Nov/2013:03:38:02 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 500 -
2013-11-25T03:37:13.211676+00:00 heroku[router]: at=info method=GET path=/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,jquery-u&load%5B%5D=i-droppable,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu&ver=3.7.1 host=raddison-trust-prod.herokuapp.com fwd="99.126.182.174" dyno=web.1 connect=7ms service=61ms status=200 bytes=207049
2013-11-25T03:38:13.074678+00:00 heroku[router]: at=info method=POST path=/wp-admin/admin-ajax.php host=raddison-trust-prod.herokuapp.com fwd="99.126.182.174" dyno=web.1 connect=3ms service=686ms status=500 bytes=0
2013-11-25T03:38:13.686963+00:00 app[web.1]: [Mon Nov 25 03:38:13 2013] [error] [client 10.4.19.235] PHP Fatal error: Call to undefined function mb_detect_encoding() in /app/www/wp-content/themes/bucket/theme-utiliti