Skip to content

Instantly share code, notes, and snippets.

@DaSourcerer
DaSourcerer / httpget
Last active December 27, 2015 09:29
A simple stream-based http client. Good for experimentation.
#!/usr/bin/php
<?php
$scheme='tcp';
$host='www.kernel.org';
$port=80;
$path='/';
if(isset($argv[1])) {
$parsedUrl=parse_url($argv[1]);
@samdark
samdark / Object.php
Created May 30, 2012 12:22
Yii2, Object
<?php
/**
* Object class file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\base;
@samdark
samdark / Component.php
Created May 30, 2012 12:21
Yii2, Component
<?php
/**
* Component class file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\base;
@mindplay-dk
mindplay-dk / GDownload.php
Created January 3, 2012 16:02
File Downloader for Yii (PHP)
<?php
/**
* @author Rasmus Schultz
* @link http://mindplay.dk
* @copyright Copyright &copy; 2010 Rasmus Schultz
* @license http://www.gnu.org/licenses/lgpl-3.0.txt
*/
/**
* This class allows multi-threaded file downloads, and regular file downloads.
@cebe
cebe / .gitignore
Created August 19, 2011 14:32
script to mirror svn repository
# subversion
.subversion
# mirror dirs
/mirror/*
/tmp/*