Skip to content

Instantly share code, notes, and snippets.

awin=0
bwin=0
1000000.times do |i|
puts i
str = ''
stop = false
while !stop
str += rand(2) == 1 ? 't' : 'h'
if /tht/ =~ str
stop = true
delta player opcode
00 01 0B
00 02 0B
00 03 0B
00 04 0B
00 05 0B
00 06 0B
00 07 0B
00 08 0B
00 10 05
assoc .pdf=pdffile
ftype pdffile=c:\Programme\Adobe\Reader 9.0\Reader\AcroRd32.exe %1 %*
development:
adapter: mysql
encoding: utf8
database: wtm2_development
pool: 5
username: root
password:
socket: /opt/local/var/run/mysql5/mysqld.sock
test:
require 'rexml/document'
require 'pp'
if ARGV.size != 1
puts "Usage: ruby fix.rb PROFILEBASEDIR"
end
Dir.glob("#{ARGV[0]}/**/mimeTypes.rdf").each do |p|
puts "Processing p"
buffer = ""
[14:38:04] <Scare^> trying to remember things from german class
[14:38:27] <Scare^> one was this like movie? tv show? of a detective that was kind of goofy and incompetent
[14:38:30] <Scare^> live action
[14:38:52] <Scare^> the other was some movie about an old woman and a butler you all watch on new years? or christmas?
[14:40:51] <tliff> the goofy detective: german show? how old was the guy? and from when?
[14:41:05] <Scare^> it didn't seem that old I don't think
[14:41:16] <Scare^> so it would've been the 90s
[14:41:23] <Scare^> but this was a while ago
[14:41:30] <tliff> maybe derrick?
[14:42:32] <Scare^> this was more like the german version of the pink panther
22.57 0.00 tlf.pm Saint Pierre a...
22.57 0.00 tlf.tf French Souther...
22.57 0.00 tlf.wf Wallis and Futuna
22.57 0.00 tlf.yt Mayotte
35.11 0.00 tlf.la Laos
36.36 0.00 tlf.bz Belize
42.63 0.00 tlf.tl Timor-Leste
47.65 0.00 tlf.sk Slovakia
52.67 0.00 tlf.vc Saint Vincent ...
68.97 0.00 tlf.lv Latvia
wwwrun@helpdesk-1:/opt/rt4> whoami
wwwrun
wwwrun@helpdesk-1:/opt/rt4> ls -salih
insgesamt 3,7M
13843 4,0K drwxr-xr-x 10 wwwrun www 4,0K 12. Sep 14:20 .
14 4,0K drwxr-xr-x 5 root root 4,0K 20. Jun 11:45 ..
412081 4,0K drw-r--r-- 2 wwwrun www 4,0K 20. Jun 10:44 bin
413140 4,0K drw-r--r-- 4 wwwrun www 4,0K 20. Jun 10:44 docs
13844 4,0K drw-r--r-- 2 wwwrun www 4,0K 31. Aug 15:12 etc
14345 0 -rw-r--r-- 1 wwwrun www 0 12. Sep 14:20 foojds
<?php
$data = '<div>blabla<h1><a href="http://www.example.com/blabla.php?id=12345" class=l>blub</a></h1><h2><a href="http://www.example.com/asfadfafadf.php?id=12345" class=l>blub</a></h2>sdfafgdghaghagh<h1><a href="http://www.example.com/fdgadfhfh.php?id=123dsfasdf45" class=l>blub</a>asdfasdfasdf</h1>';
$doc = new DOMDocument();
$doc->loadHTML($data);
$elements = $doc->getElementsByTagName('h1');
$link_targets = array();
foreach ($elements as $element){
foreach($element->childNodes as $child){
if(get_class($child) == 'DOMElement' && $child->hasAttribute("href")){