This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 19:05 < harryv> nice. trying to restore nancie :) | |
| 19:24 < cypher23> harryv, why? what happened to her? | |
| 19:36 < harryv> cypher23: I rebuild my slice and in that process killed the config and made no backup :P | |
| 19:37 < tbyhlmann> Gosh, at least she's not pregnant. | |
| 20:10 < lenary> tbyhlmann: http://github.com/ichverstehe/nancie/tree/master you can help make mini-nancies if you want.... | |
| 20:11 < tbyhlmann> I don't tweet at all! | |
| 20:13 < lenary> go on, make nancie pregnant | |
| 20:13 < lenary> you know you want to | |
| 20:19 < lenary> (just press the fork button) | |
| 20:20 < cypher23> I can never look at GitHub the same way again after reading what lenary just wrote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is our base controller, much like ApplicationController in Rails | |
| class App < Sinatra::Base | |
| # Default settings that should be shared by all controllers | |
| set :foo, :bar | |
| def shared_helper | |
| # this will be available for everything | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Array | |
| def >> obj | |
| ArrayMover.new delete(obj) | |
| end | |
| end | |
| class ArrayMover | |
| def initialize(obj) | |
| @obj = obj | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SetContentTypeCharSet | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| status, headers, body = @app.call(env) | |
| headers['Content-Type'] += "; charset=UTF-8" | |
| [status, headers, body] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'isaac' | |
| configure do |c| | |
| c.nick = "wallabotz" | |
| c.server = "irc.freenode.net" | |
| c.verbose = true | |
| end | |
| on :connect do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def session_initiated | |
| set("foo", "bar") {} | |
| # @queue: [Proc{}] | |
| set("lol", "cat") {} | |
| # @queue: [Proc{}] | |
| read "/foo/bar.mp3" do |result| | |
| .. | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config-one / one: RSS 22M | |
| config-all / all: RSS 23M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| freeswitch@internal> 2009-09-24 12:00:00.8122 [NOTICE] switch_channel.c:602 New Channel sofia/external/unknown@129.142.224.250 [c89c70c2-a901-11de-8545-e50cdff4e50a] | |
| 2009-09-24 12:00:00.8122 [DEBUG] sofia.c:3302 Channel sofia/external/unknown@129.142.224.250 entering state [received][100] | |
| 2009-09-24 12:00:00.8122 [DEBUG] sofia.c:3309 Remote SDP: | |
| v=0 | |
| o=root 18982 18982 IN IP4 129.142.224.250 | |
| s=session | |
| c=IN IP4 129.142.224.250 | |
| t=0 0 | |
| m=audio 11640 RTP/AVP 8 0 3 97 | |
| a=rtpmap:8 PCMA/8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rails.configuration.gems.map { |gem| "#{gem.name} #{%(--version '#{gem.requirement.to_s}') if gem.requirement} #{%(--source #{gem.source}) if gem.source}".rstrip }.join("\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| apt-get update | |
| apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev curl | |
| curl http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz | tar zxvf - | |
| cd ruby-1.8.7-p174 | |
| ./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr | |
| make | |
| make install | |
| cd .. |