Skip to content

Instantly share code, notes, and snippets.

View qrush's full-sized avatar
🕸️
Making internets

Nick Quaranto qrush

🕸️
Making internets
View GitHub Profile
@qrush
qrush / index.js
Created May 30, 2018 17:27 — forked from marianmoldovan/index.js
AWS Polly Lambda API
'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',
@qrush
qrush / PhantomJS Install.md
Created August 10, 2016 02:29 — forked from pboling/PhantomJS Install.md
How to install old PhantomJS 1.8.2 on Mac OS X

Homebrew Formula patching old ImageMagick release 6.7.7-6

Install

$ brew install https://gist.githubusercontent.com/qrush/5bcf16a37db0cfac95e3/raw/6becf02afdd15c9ee67828358f5c85b789358866/imagemagick.rb

Tested

@qrush
qrush / gist:6632713
Last active December 23, 2015 11:59 — forked from aquaranto/gist:6500188
Blue Shirts
======
Men's
-----
3 - S --- 4
38(50) - M --- 46
33(50) - L --- 47
17(25) - XL --- 24
9 - XXL --- 11
diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb
dissimilarity index 99%
index 414904b..0b0b21d 100644
--- a/app/views/devise/shared/_links.erb
+++ b/app/views/devise/shared/_links.erb
@@ -1,19 +1,15 @@
-<%- if controller_name != 'sessions' %>
- <%= link_to "Sign in", new_session_path(resource_name) %><br />
-<% end -%>
-
someFunction
args: [1, 2, 3]
success: () ->
console.log "Success!"
failure: () ->
console.log "Failure!"
@qrush
qrush / gist:1925028
Created February 27, 2012 16:11 — forked from trevorturk/gist:1756760
Bare minimum html5 template
<!DOCTYPE html>
<html>
<head>
<title>title</title>
</head>
<body>
<p>body</p>
</body>
</html>
@qrush
qrush / gist:1004684
Created June 2, 2011 15:56 — forked from anonymous/gist:1004681
git diff v1.3.7..v1.8.5 lib/rubygems/source_index.rb
diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb
index f9b8ea0..0cc7762 100644
--- a/lib/rubygems/source_index.rb
+++ b/lib/rubygems/source_index.rb
@@ -4,14 +4,8 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems/user_interaction'
require 'rubygems/specification'
@qrush
qrush / a-screenshot.md
Created February 10, 2011 16:17 — forked from tmm1/README.md
apply in: /Applications/Propane.app/Contents/Resources

#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db