Skip to content

Instantly share code, notes, and snippets.

<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
ini_set("log_errors", 1);
ini_set("error_log", dirname(__FILE__)."/my-error.log");
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://example.com">
<script type="text/javascript">
window.location.href = "http://example.com"
</script>
<title>Page Redirection</title>
</head>
@RDIFB0
RDIFB0 / smtp_telnet.md
Last active August 29, 2015 14:04
Send email from telnet
$ telnet localhost smtp

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 fbreveal.com ESMTP Sendmail 8.13.8/8.13.8; Tue, 22 Oct 2013 05:05:59 -0400

HELO yahoo.com
var back2Future = function() {
var reffs = document.referrer.split('/');
var sameDomain = (reffs[2] == location.hostname);
if ((history.length > 1) && sameDomain) {
history.back();
return false;
}
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
header("Content-Type: text/plain");
if (@fsockopen("ssl://smtp.googlemail.com", 465, $errno, $errstr, 5)) {
echo 'smtp.googlemail.com:465 - OK', PHP_EOL;
} else {
echo 'smtp.googlemail.com:465 - ', $errno, ': ', $errstr, PHP_EOL;
}
@RDIFB0
RDIFB0 / ♪.md
Last active August 29, 2015 14:02
Слушать музыку онлай / Listen music online

Online Music

Spotify

Website: link

Spotify is a digital music service that gives you access to millions of songs.

Pandora

Website: link

Pandora is free, personalized radio that plays music you'll love. Discover new music and enjoy old favorites.

function htmlSpecialChars(str) {
var d = document.createElement("DIV");
d.appendChild(document.createTextNode(str));
return d.innerHTML;
}
<quote author="edogs" authorname="edogs" conversation="edogs"
timestamp="1329070172"><legacyquote>[12:12:12] DisplayedName:
</legacyquote>Quoted text</quote>
program BombSWC;
{$APPTYPE CONSOLE}
uses ZLibEx, Classes;
const
Header = 'CWS'#0#0#0#0#0;
var
I: Integer;