Skip to content

Instantly share code, notes, and snippets.

Il simbolo della Apple in Unicode -->  <--
$ rails
<internal:gem_prelude>:114:in `push_gem_version_on_load_path': undefined method `<=>' for nil:NilClass (NoMethodError)
from <internal:gem_prelude>:8:in `gem'
from /usr/bin/rails:18:in `<main>'
$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
# Usage: ruby twitter-oauth-example.rb
require "rubygems"
require "oauth"
require "json"
CONSUMER_KEY = 'fill me'
CONSUMER_SECRET = 'fill me'
ACCESS_TOKEN = '' # don't worry
ACCESS_TOKEN_SECRET = '' # you'll get them!
# Usage: ruby google-oauth-example.rb
require "rubygems"
require "oauth"
require "json"
CONSUMER_KEY = 'anonymous'
CONSUMER_SECRET = 'anonymous'
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = '' # Get them from Google Playground
$ dev_appserver.sh root
13-lug-2010 15.57.57 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
13-lug-2010 15.57.57 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /home/grigio/Documenti/testing/appengine-blog-example/root/WEB-INF/appengine-web.xml
13-lug-2010 15.57.57 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /home/grigio/Documenti/testing/appengine-blog-example/root/WEB-INF/web.xml
13-lug-2010 15.58.23 com.google.apphosting.utils.jetty.JettyLogger warn
AVVERTENZA: EXCEPTION
java.lang.ClassNotFoundException: org.ringojs.jsgi.JsgiServlet
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
RANDFILE = $ENV::HOME/.rnd
@grigio
grigio / gist:3276129
Created August 6, 2012 16:21
How does the 14000 rows limitation work on heroku?
➜ myapp git:(master) heroku pg:psql
psql (9.1.3, server 9.1.4)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.
d7342gd34r=>
d7342gd34r=> select count(*) from coords;
count
--------
188980
@grigio
grigio / .configure
Created August 9, 2012 21:25
./configure for textmate via brew
#!/bin/sh
set -u
function error () { printf >&2 "%s\n\nPlease see README.md for build instructions.\n" "$1"; exit; }
# =================================================
# = Fallback build directory and signing identity =
# =================================================
: ${builddir:=$HOME/build/TextMate}
: ${identity:=-}
@grigio
grigio / gist:3768100
Created September 22, 2012 22:38 — forked from Meettya/gist:3082964
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt