My Recent Pastes (196321 and counting)

All Pasties (129 and counting)

Pages: 1 ... 3 4 5 6 7 ... 7853

Below are summaries of the most recent pasties.

August 27, 2008
11:45PM EDT

1
2
3
4
5
#include <stack>
#include <iostream>
#include <iomanip>
#include <string>
#include <cassert>   // useful assert macro for correctness

August 27, 2008
11:42PM EDT

1
2
3
4
5
# Be sure to restart your server when you modify this file

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

August 27, 2008
11:41PM EDT
by workdammit

1
2
3
4
5
sample log entry:

Processing PController#results (for 96.240.132.116 at 2008-08-27 23:32:19) [GET]
  Session ID: BAh7BzoMY3NyZl9pZCIlNGVjMjYyZjYzNzMzMzNlOWI4OGRlNGY2NzY2N2Y5
M2UiCmZsYXNoSUM6J0FjdGlvbkNkjdsKUkjSfkjhewsdkfjhAKfpGbGFzaEhh

August 27, 2008
11:26PM EDT

1
2
3
4
5
def test_rexml_should_handle_dos_vulnerability
  # From http://p.ramaze.net/1887
  dom = REXML::Document.new('<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE member [
    <!ENTITY a "&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;">

August 27, 2008
11:17PM EDT

1
2
3
4
5
## EspĂ­rito de Porco Montado num Boi

- TARRRRDE EVARISTO!!!

- BOA TARRRRRRDE SANDRA!!!

August 27, 2008
11:16PM EDT

1
2
3
4
5
alias bday {
  ;
  ;Type /bday to say your birthday infomation.
  ;If there is less then 12 hours untill your birthday when you do /bday, a timer will be activated that sends a message to all your channels saying a custom message at the time of your birthday.
  ;

August 27, 2008
11:16PM EDT

1
2
3
4
5
myBlackJack = {
        init:function(){
        
        },
        

August 27, 2008
11:14PM EDT

1
2
3
4
5
// max of 140 chars is recommended, but it really allows 160
const TWEET_MAXLEN = 140;
const TWEET_SHORT_URL_MAX_LENGTH = 17;

CmdUtils.CreateCommand({

August 27, 2008
11:12PM EDT

1
2
3
4
5
#define GET_INFO_DISPLAY(d)                                    \
    ((InfoDisplay *) (d)->base.privates[displayPrivateIndex].ptr)

#define INFO_DISPLAY(d)                          \
    InfoDisplay *id = GET_INFO_DISPLAY (d)

August 27, 2008
11:08PM EDT

1
2
3
4
5
<div id="parentbar">
        <ul id="parentbarlist">
        <?php
                function parentlinks($parents, $pages)
                {

August 27, 2008
10:58PM EDT

1
2
3
4
5
jQuery("#peopleTable").click(function (event) {
  var target = jQuery(event.target), row = target.parent("tr[id^=Person]");
  if (target.is("input.getName.also")) {
      var name = row.find("td.name").text() || "unknown";
      var id = row.attr("id").replace("Person-", "");

August 27, 2008
10:54PM EDT

1
2
3
4
5
require 'rubygems'
require 'eventmachine'
require 'evma_httpserver'

class Handler  < EventMachine::Connection

August 27, 2008
10:53PM EDT

1
2
3
4
5
jQuery("#peopleTable").click(function (event) {
  var target = jQuery(event.target);
  if (target.is("input.getName")) {
    if (target.is("input.also")) {
      var name = target.parent().prev().text() || "unknown";

August 27, 2008
10:53PM EDT

1
2
3
4
5
require 'rubygems'
require 'eventmachine'
require 'evma_httpserver'

class Handler  < EventMachine::Connection

August 27, 2008
10:39PM EDT

1
2
3
4
5
require 'rubygems'
require 'eventmachine'
require 'evma_httpserver'

class Handler  < EventMachine::Connection

August 27, 2008
10:36PM EDT

1
2
debian:/var/chroot/usr/bin# start-stop-daemon --chroot /var/chroot/ --chdir /home/znc/ --chuid znc:znc --start --exec /usr/bin/znc
[ !! ] Opening Config [/usr/bin/.znc/configs/znc.conf]... [ No such file ]

August 27, 2008
10:31PM EDT

1
http://www.youtube.com/watch?v=dOWB8ZtnwTU

August 27, 2008
10:31PM EDT

1
2
3
4
5
zachinglis:(git)lt3media[fixing]/$ rake create:page test --trace
(in /Users/zachinglis/Sites/Rails/lt3media)
** Invoke create:page (first_time)
** Execute create:page
webby aborted!

August 27, 2008
10:29PM EDT

1
2
3
4
5
@ECHO *** Installing Rake
@call gem install rake --include-dependencies

@ECHO *** Installing ActiveRecord
@call gem install activerecord --include-dependencies

August 27, 2008
10:28PM EDT

1
2
3
4
5
desc "Displays a list of tasks"
task :help do
  taskHash = Hash[*(`rake.cmd -T`.split(/\n/).collect { |l| l.match(/rake (\S+)\s+\#\s(.+)/).to_a }.collect { |l| [l[1], l[2]] }).flatten] 
 
  indent = "                          "

August 27, 2008
10:28PM EDT

1
2
3
#define the class and get a reference
        eval 'class ' + klass_name + ' < ActiveRecord::Base; end'
        klass = eval klass_name

August 27, 2008
10:27PM EDT

1
2
3
4
5
 WARNING: This package includes the 'webcollage' screen saver, which
 displays images that are the result of random web searches. The
 Internet being what it is, absolutely anything might show up in the
 collage of search results including -- quite possibly -- pornography, or
 even nudity. Please act accordingly.

August 27, 2008
10:26PM EDT

1
2
3
4
5
require 'erb'

class NUnitRunner
        include FileTest

August 27, 2008
10:17PM EDT

1
2
3
4
5
God.pid_file_directory = '/tmp/god'

God.watch do |w|
  w.name = 'testscript'
  w.interval = 10.seconds # default

August 27, 2008
10:15PM EDT

1
2
3
4
5
import tango.io.Stdout;

template Field (char[] name) {
    mixin("public char[] name = `" ~ name ~ "`;");

Next page

Previous page