Skip to content

Instantly share code, notes, and snippets.

View martianinteractive's full-sized avatar

Martian Interactive martianinteractive

View GitHub Profile
#!/usr/bin/env ruby
require "openssl"
p OpenSSL::X509::Request.new(<<-CSR)
-----BEGIN NEW CERTIFICATE REQUEST-----
MIGkMIGaAgEAMIGJMRYwFAYDVQQDEw13d3cuZm9vLTMubmV0MQswCQYDVQQGEwJV
UzEeMBwGCSqGSIb3DQEJARYPZW1haWxAdGVzdC5ob3N0MRAwDgYDVQQHEwdPcmxh
bmRvMRMwEQYDVQQKEwpSYWlscyBFbnZ5MQkwBwYDVQQLEwAxEDAOBgNVBAgTB0Zs
b3JpZGEwBzACBgADAQCgADACBgADAQA=
-----END NEW CERTIFICATE REQUEST-----
@martianinteractive
martianinteractive / gist:b2b97a0076aa36e1c16e
Created November 13, 2014 15:22
curl -sSL https://get.rvm.io | bash -s stable --ruby=1.9.3-p545
contents of: /Users/sergiobayona/.rvm/log/1415891059_ruby-1.9.3-p545/package_install_autoconf_automake_libtool_pkg-config_gcc48_libyaml_readline_libksba_openssl.log
[2014-11-13 10:04:23] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install ()
{
brew unlink "$@" || true;
brew install "$@" || {
typeset ret=$?;
rvm_warn "There were package installation errors, make sure to read the log.
var myInstance = (function() {
var privateVar = '';
function privateMethod () {
// ...
}
return { // public interface
publicMethod1: function () {
// all private members are accesible here
Retrieving rubygems-1.8.25
There is no checksum for 'http://production.cf.rubygems.org/rubygems/rubygems-1.8.25.tgz' or 'rubygems-1.8.25.tgz', it's not possible to validate it.
If you wish to continue with unverified download add '--verify-downloads 1' after the command.
pry(main)> Resque.redis = "localhost:6779:6"
=> "localhost:6779:6"
pry(main)> Resque.workers
=> []
pry(main)> Resque.redis = "localhost:6379:0"
=> "localhost:6379:0"
pry(main)> Resque.workers
=> [#<Worker ub40:6352:*>, #<Worker ub40:2011:*>]
> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-12-11 12:55:22] INFO WEBrick 1.3.1
[2010-12-11 12:55:22] INFO ruby 1.9.2 (2010-08-18) [i386-darwin9.8.0]
[2010-12-11 12:55:22] INFO WEBrick::HTTPServer#start: pid=7406 port=3000
Started GET "/" for 127.0.0.1 at 2010-12-11 12:55:24 -0500
testing public gist
<h2 class="employees"><r:employee:kind /></h2>
<p><span class="bold"><r:employee:name />.</span> <em><r:employee:title /></em> <br/>
<img alt="<r:employee:first_name />" src="<r:employee:profile_thumbnail_filename />" />
<r:employee:extended_profile />
<h2>Management &amp; Office Staff</h2>
<ul class="employees">
<r:employees:collection container="list" order="show_order" employee_type="managers">
<r:name_link />
</r:employees:collection>
</ul>
hello world!