Skip to content

Instantly share code, notes, and snippets.

Radosław Kowalewski srsbiz

Block or report user

Report or block srsbiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
srsbiz / hexit.php
Last active Dec 11, 2015
Web hex dumper, with colors
View hexit.php
header('Content-Type: text/html; charset=utf-8');
define('POST_MAX_LENGTH', 4096);
if (!isset($_POST['txt'])) {
$txt = "<?php\necho 'Hello World!';\n?>";
} elseif(strlen($_POST['txt']) > POST_MAX_LENGTH) {
$txt = substr($_POST['txt'], 0, POST_MAX_LENGTH);
} else {
$txt = $_POST['txt'];
srsbiz / tab2space.php
Last active Dec 11, 2015
Multibyte friendly tab to space replacer
View tab2space.php
* Multibyte friendly tab replacer.
* @param string $line Line with tabs to convert
* @param int $tabsize Number of space characters in full width tab
* @return string Line without tabs
function tab2space($line, $tabsize = 4)
You can’t perform that action at this time.