This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# ma config | |
seen-local-config.php | |
# stockage de mon backup xml | |
tmp/ | |
# mes fichiers exportes | |
seen/ | |
# mes fichiers downloades |
<?php | |
s::start(); | |
function panelUser() { | |
$cookie = cookie::get('auth'); | |
if(!$cookie) return false; | |
$info = s::get($cookie); |
#!/bin/bash | |
# Takes one parameter: a remote git repository URL. | |
# | |
# This is the stuff this script does: | |
# | |
# 1. Clones the repository | |
# 2. Fetches all remote branches | |
# 3. Compresses the folder | |
# 4. Deletes the cloned folder. |
<?php | |
class kirbytextExtended extends kirbytext { | |
function __construct($text=false, $markdown=true, $smartypants=true { | |
parent::__construct($text, $markdown, $smartypants); | |
// define custom tags | |
$this->addTags('figure'); |
<?php | |
/** | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
*/ |
<?php | |
if(!r::is_ajax()) notFound(); | |
header('Content-type: application/json; charset=utf-8'); | |
$data = $pages->find('blog')->children()->visible()->paginate(10); | |
$json = array(); |
<?php | |
$list = $page->children()->paginate(10); | |
$pagination = $list->pagination(); | |
?> | |
<ul> | |
<?php foreach($list as $item): ?> | |
<li><!-- item html --></li> |
<?php | |
class kirbytextExtended extends kirbytext { | |
function __construct($text, $markdown=true) { | |
parent::__construct($text, $markdown); | |
$this->addTags('thumb'); | |
$this->addAttributes('crop', 'quality'); | |
<?php | |
/** | |
* Instructions: | |
* | |
* 1. Put this into the document root of your Kirby site | |
* 2. Make sure to setup the base url for your site correctly | |
* 3. Run this script with `php statify.php` or open it in your browser | |
* 4. Upload all files and folders from static to your server | |
* 5. Test your site |