Skip to content

Instantly share code, notes, and snippets.

🕸
Making internets

Nick Quaranto qrush

🕸
Making internets
Block or report user

Report or block qrush

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
@qrush
qrush / application_job.rb
Created Jun 10, 2019
Use Honeycomb to trace ActiveRecord calls inside of ActiveJob
View application_job.rb
class ApplicationJob < ActiveJob::Base
around_perform do |job, block|
if Honeycomb.client
Honeycomb.span(job.class.name, type: 'worker', fields: {'queue.name': job.queue_name}, &block)
end
end
end
@qrush
qrush / index.js
Created May 30, 2018 — forked from marianmoldovan/index.js
AWS Polly Lambda API
View index.js
'use strict';
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
const polly = new aws.Polly({region: 'eu-west-1'});
const md5 = require('md5');
const request = require('request');
var params = {
OutputFormat: 'mp3',
Text: 'Hola',
View keybase.md

Keybase proof

I hereby claim:

  • I am qrush on github.
  • I am qrush (https://keybase.io/qrush) on keybase.
  • I have a public key ASBPz-9RTY-gqFJYfQd1Li7b6D5ipOU0jjNSwcXFkrOT7wo

To claim this, I am signing this object:

@qrush
qrush / PhantomJS Install.md
Created Aug 10, 2016 — forked from pboling/PhantomJS Install.md
How to install old PhantomJS 1.8.2 on Mac OS X
View PhantomJS Install.md

PhantomJS

Install phantomjs (http://phantomjs.org)

brew has a recipe for phantomjs, but it has moved on to version 2.0.0, and we still require 1.8.2 (at newest), and we can't get that old and dirty with brew anymore.

On a Mac:

mkdir -p ~/root
wget https://phantomjs.googlecode.com/files/phantomjs-1.8.2-macosx.zip -O ~/root/phantomjs-1.8.2-macosx.zip
View gist:aba1b1dfdff8dd74d7bc8087b60f419a
2016-05-22T14:15:53.638473114Z app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"exd8mOZhgm+jagtodSs/Rh4FGP4ewIqOpL7jX/SLYnhOWHZIgfMBBz6jLQIpCPb7qp7rLxe5zxI+lOrErYF0Yg==", "show"=>{"featured"=>"false", "unknown_setlist"=>"0", "raw_setlist"=>"Notes\r\n\r\nNumbers and Facts\r\nOrigami\r\nAll Night Long > \r\nTriangle\r\nStrange Times\r\nSkyway > \r\nDave's Song\r\nKitty Chaser (Explosions)", "extra_notes"=>"Marty teases in Origami and Dave's", "embeds"=>""}, "commit"=>"Update setlist", "show_id"=>"2016-05-21"}
@qrush
qrush / archive.sh
Last active May 31, 2016
archive pickaxe
View archive.sh
for t in `git tag | tac`
do
echo ">>>>>>>>>>"
echo $t
git reset --hard $t
git lfs fetch
git checkout -f $t
git lfs checkout
while [ $? -ne 0 ]; do
git lfs fetch
View .nethackrc
# http://sartak.katron.org/misc/pbf/images/088.jpg
OPTIONS=catname:Mittens
# http://sartak.katron.org/misc/pbf/images/146.jpg
OPTIONS=horsename:Silver Bullet
# http://sartak.katron.org/misc/pbf/images/127.jpg
OPTIONS=dogname:Barf
OPTIONS=hilite_pet
OPTIONS=fruit:milkshake
OPTIONS=autopickup,pickup_types:$!/="+?
View wrap_parameters_boog.rb
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
@qrush
qrush / wine.rb
Created Mar 12, 2016
Install wine via homebrew with directx patch for Stardew Valley
View wine.rb
# NOTE: When updating Wine, please check Wine-Gecko and Wine-Mono for updates
# too:
# - http://wiki.winehq.org/Gecko
# - http://wiki.winehq.org/Mono
class Wine < Formula
desc "Wine Is Not an Emulator"
homepage "https://www.winehq.org/"
head "git://source.winehq.org/git/wine.git"
stable do
View gist:8d88e66790278abb6f54
pickaxemap% git lfs checkout
Git LFS: (1167 of 1860 files) 3.97 GB / 5.82 GB error: git-lfs died of signal 13
pickaxemap% git lfs checkout
Git LFS: (1200 of 1860 files) 4.05 GB / 5.82 GB error: git-lfs died of signal 13
pickaxemap% git lfs checkout
Git LFS: (1234 of 1860 files) 4.17 GB / 5.82 GB error: git-lfs died of signal 13
pickaxemap% git lfs checkout
Git LFS: (1248 of 1860 files) 4.23 GB / 5.82 GB error: git-lfs died of signal 13
pickaxemap% git lfs checkout
You can’t perform that action at this time.