Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'sinatra'
require 'redis'
# To use, simply start your Redis server and boot this
# example app with:
# ruby example_note_keeping_app.rb
#
# Point your browser to http://localhost:4567 and enjoy!
#
From 46b84175dfac14a92fd6bcf3b03bc3c3715ab6cb Mon Sep 17 00:00:00 2001
From: nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sat, 6 Mar 2010 21:47:30 +0000
Subject: [PATCH] backport the commit from trunk:
Sun Feb 28 11:49:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
* openssl/ossl.c (OSSL_IMPL_SK2ARY): for OpenSSL 1.0.
patched by Jeroen van Meeuwen at [ruby-core:25210]
fixed by Nobuyoshi Nakada [ruby-core:25238],
Hongli Lai [ruby-core:27417],
#!/bin/bash
#
# http://gmarik.info/blog/2010/05/02/installing-ruby-1.8.6-on-OSX
#
sudo -s <<EOC
port install wget
port install git-core +bash_completion+doc+svn
port install ruby186 #apply http://gist.github.com/395524 patch
port install rb-rubygems +ruby186
port install mysql5-server
From cb62ef6b779af793e17c4fdd2f4e915d993c228e Mon Sep 17 00:00:00 2001
From: gmarik <gmarik@gmail.com>
Date: Sat, 8 May 2010 00:56:15 +0300
Subject: [PATCH] Fixes 'uninitialized constant User::Digest' error during rake db:setup
---
config/initializers/d.libs/libs.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/config/initializers/d.libs/libs.rb b/config/initializers/d.libs/libs.rb
commit ad2d933b8e7152569260b2c90006045e63db708e
Author: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Fri Jan 11 04:50:38 2008
* dln.c: use dlopen on Mac OS X 10.3 or later. backport from trunk.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@14986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
diff --git dln.c dln.c
# vim: ts=2:sw=2:et:ft=sh::
pkgname=ruby
pkgver=1.8.6_p399
_pkgver=1.8.6-p399
pkgrel=1
pkgdesc="Ruby - programmers best friend!"
arch=(i686 x86_64)
license=('custom')
url="http://www.ruby-lang.org/en/"
depends=('gdbm>=1.8.3' 'db>=4.7.25' 'openssl>=1.0' 'zlib>=1.2.3.3' 'readline>=5.2.013')
package main
import (
"bufio"
"fmt"
"net"
)
type Client struct {
incoming chan string
#!/bin/sh
which rvm >/dev/null 2>&1 || (echo 'requires RVM' && exit 1)
RUBY=$(rvm list default string)
function install()
{
echo "
Plan:
#!/usr/bin/env ruby
#
# http://gmarik.info/blog/2010/10/16/scraping-asp-net-site-with-mechanize
require 'rubygems'
require 'mechanize'
require 'logger'
user = 'user'
pass = 'pass'
$ ARCHFLAGS="-arch i386 -arch x86_64" gem install -V mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
GET http://cdscm/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://gemcutter.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz