Skip to content

Instantly share code, notes, and snippets.

@peet86
peet86 / import_pyro_to_jekyll.rb
Last active October 5, 2015 03:33 — forked from lolobosse/blogspot_to_jekyll.rb
Migrate your PyroCMS blog posts to jekyll and convert html content to markup format
#!/usr/bin/env ruby
#
# Convert PyroCMS blog posts to jekyll posts
#
# Basic Usage
# -----------
#
# ruby ./import_pyro_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
// UMD dance - https://github.com/umdjs/umd
!function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else {
factory(root.jQuery);
}
}(this, function($) {
'use strict';
@peet86
peet86 / deploy.php
Created November 23, 2013 13:04 — forked from krisnoble/deploy.php
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@peet86
peet86 / l.php
Created November 21, 2012 12:59 — forked from keriati/l.php
For the silent game
<?php ini_set('display_errors', 1);error_reporting(E_ALL);
$h=$_GET['d'];$d=isset($h)?urldecode($h):dirname(__FILE__);
if(is_file($d)&&(header('Content-disposition: attachment; filename='.end(explode("/",$d)))||readfile($d)))exit();
foreach(scandir($d)as$f)echo'<li><a href="?d='.urlencode(realpath($d)."/$f")."\">$f</a></li>";