My Recent Pastes (634 and counting)

Pastes by Allan Odgaard (634 and counting)

Pages:

Below are the 15 most recent pasties by Allan Odgaard.

June 29, 2007
10:40AM EDT
by Allan Odgaard

require 'fileutils'

open("/tmp/A", "w") { |io| io << 'foo' }
open("/tmp/B", "w") { |io| io << 'bar' }

June 28, 2007
3:19AM EDT
by Allan Odgaard

2007-06-28 07:18:37 ./plugins/web.rb:117:in `alias_method'
./plugins/web.rb:117
./lib/plugin.rb:54:in `load'
./lib/plugin.rb:54:in `load_plugin'
./lib/plugin.rb:54:in `module_eval'

June 27, 2007
5:09AM EDT
by Allan Odgaard

Support/lib/connectors/mysql.rb:111:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
        from Support/lib/connectors/mysql.rb:111:in `new'
        from Support/lib/connectors/mysql.rb:111:in `real_connect'
        from Support/lib/connectors/mysql.rb:99:in `initialize'
        from Support/bin/db_browser_lib.rb:52:in `new'

June 26, 2007
12:06PM EDT
by Allan Odgaard

#!/usr/bin/env ruby -wKU

require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/osx/plist'

June 24, 2007
4:11PM EDT
by Allan Odgaard

  class Connection
    attr_reader :name # name of this connection (for display purposes)
    attr_reader :user, :password, :host, :port, :database
  private
    # take no notice of the man behind the curtain

June 22, 2007
9:08PM EDT
by Allan Odgaard

clear; cd /Volumes/chris.pod/Cocoa/lottery/build/Release; env DYLD_FRAMEWORK_PATH=/Volumes/chris.pod/Cocoa/lottery/build/Release DYLD_LIBRARY_PATH=/Volumes/chris.pod/Cocoa/lottery/build/Release ./lottery; echo -ne \\n\\nPress RETURN to Continue...; read foo;osascript &>/dev/null -e 'tell app "TextMate" to activate' -e 'tell app "Terminal" to close first window' &

June 22, 2007
5:27PM EDT
by Allan Odgaard

class Super
  def test(&block)
    block.call(42)
  end
end

June 20, 2007
6:52PM EDT
by Allan Odgaard

#!/usr/bin/env ruby -KU

require "serialport.so"
require "socket"

June 20, 2007
6:08PM EDT
by Allan Odgaard

          char = str.slice(i..i)

          did_find = false
          @@bit7.each do |k,v|
              if v == char then

June 19, 2007
10:41AM EDT
by Allan Odgaard

        <div id="tm_webpreview_content" class="bright">
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
<div id="dbbar">
    <h2 align="center">Databases</h2>
    <ul id="database_list">

June 18, 2007
11:54PM EDT
by Allan Odgaard

--- a/plugins/logger.rb
+++ b/plugins/logger.rb
@@ -1,5 +1,5 @@
 #
-# Logging plugin for CyBot.

June 18, 2007
7:07PM EDT
by Allan Odgaard

class Logging
  @timestamp = true
  
  def puts(str)
    Kernel::puts("#{now}#{str}")

June 18, 2007
7:05PM EDT
by Allan Odgaard

class Logging
  def initialize
    @brief_help = 'Core Logging Class'
    super
    @timestamp = true

June 18, 2007
6:45PM EDT
by Allan Odgaard

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true

June 18, 2007
5:32PM EDT
by Allan Odgaard

  # Register a new user.
  def cmd_register(irc, password)
    if irc.channel
      irc.reply 'This command can only be used in private.'
    elsif !password or password.length == 0

Next page

Previous page