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 / gist:7144a9301f7bc4122a7c
Created November 21, 2014 03:28
AWS Lambda Python Output
Logs
----
START RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929
2014-11-21T03:22:30.438Z a0537bcb-712d-11e4-8c97-af075a3c0929 stdout:
Goodbye, World!
END RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929
REPORT RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929 Duration: 718.65 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 14 MB
Message
@qrush
qrush / _.markdown
Last active August 29, 2015 14:10
help.rubygems.org intro

Any ideas on how to make this introduction text on help.rubygems.org friendlier? It just feels really grating from the start. Go away, don't submit tickets here. Please fork and edit as you see fit!

@qrush
qrush / tender.css
Created November 20, 2014 03:18
Old help.rubygems.org styles
#superheader {
background: #191919;
color: #fff;
border-bottom: 1px solid #f00;
}
#superheader a {
color: #AAA;
}

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 / pow_with_xcode_ci.conf
Last active August 29, 2015 14:01
Run Pow and Apache with Xcode CI bots
<VirtualHost *:80>
Alias /__xcsweb/xcswebxcode /Applications/Server.app/Contents/ServerRoot/usr/share/xcodeserver/web/desktop
Alias /__xcsweb/xcswebbase /Applications/Server.app/Contents/ServerRoot/usr/share/xcodeserver/web/base
Alias /__xcsweb/bigscreen /Applications/Server.app/Contents/ServerRoot/usr/share/xcodeserver/web/bigscreen
ProxyPass /__xcsweb/xcswebxcode !
ProxyPass /__xcsweb/xcswebbase !
ProxyPass /__xcsweb/bigscreen !
ProxyPass /xcs/svc http://localhost:4444/svc
export C_INCLUDE_PATH="$(xcrun --show-sdk-path)/usr/include"
export CPLUS_INCLUDE_PATH="$(xcrun --show-sdk-path)/usr/include"
export LIBRARY_PATH="$(xcrun --show-sdk-path)/usr/lib:$(xcrun --show-sdk-path)/usr/lib/system:$LIBRARY_PATH"
2014-05-20T02:39:10.388557+00:00 app[web.1]: Twitter::Error::Forbidden - Status is over 140 characters.:
2014-05-20T02:39:10.388564+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/twitter-4.8.1/lib/twitter/response/raise_error.rb:21:in `on_complete'
2014-05-20T02:39:10.388567+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/faraday-0.8.7/lib/faraday/response.rb:9:in `block in call'
2014-05-20T02:39:10.388569+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/faraday-0.8.7/lib/faraday/response.rb:63:in `on_complete'
2014-05-20T02:39:10.388570+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/faraday-0.8.7/lib/faraday/response.rb:8:in `call'
2014-05-20T02:39:10.388572+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/faraday-0.8.7/lib/faraday/request/url_encoded.rb:14:in `call'
2014-05-20T02:39:10.388574+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/faraday-0.8.7/lib/faraday/request/multipart.rb:13:in `call'
2014-05-20T02:39:10.388575+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.
2014-05-20T01:50:11.439918+00:00 app[web.1]: 54.245.153.90 - - [20/May/2014 01:50:11] "POST /hook HTTP/1.1" 500 30 132.3713
2014-05-20T01:51:24.185896+00:00 app[web.1]: Errno::ETIMEDOUT - Connection timed out - connect(2):
2014-05-20T01:51:24.185902+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:878:in `initialize'
2014-05-20T01:51:24.185904+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:878:in `open'
2014-05-20T01:51:24.185906+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
2014-05-20T01:51:24.185907+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
2014-05-20T01:51:24.185909+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:877:in `connect'
2014-05-20T01:51:24.185910+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
2014-05-20T01:51:24.185912+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:851:in `start'
2014
SET I
Skyway
20/20
The Median #
Complex
Super Mario Brothers Theme
All In ^,
Complex II * >
Origami
ABACAB **
@qrush
qrush / gist:10401517
Created April 10, 2014 16:51
Replace tabs with 4 spaces, remove leading spaces/tabs for Objective-C .m, .h files
find . -name "*.[mh]" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
find . -name "*.[mh]" | while read line; do git stripspace < $line > $line.new; mv $line.new $line; done