Skip to content

Instantly share code, notes, and snippets.

View fguillot's full-sized avatar

Frédéric Guillot fguillot

View GitHub Profile
#!/usr/bin/env python
'''
This module implements Kanboard Json-RPC API in Python.
Example:
kanboard = Kanboard("kanboard-token")
projects = kanboard.getAllProjects()
for p in projects:
@fguillot
fguillot / password.php
Created December 9, 2014 02:07
password_compat for PHP 5.3.3
<?php
/**
* A Compatibility library with PHP 5.5's simplified password hashing API.
*
* @author Anthony Ferrara <ircmaxell@php.net>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2012 The Authors
*/
if (!defined('PASSWORD_BCRYPT')) {
@fguillot
fguillot / Dockerfile
Created October 13, 2014 22:42
Dockerfile for Kanboard
FROM ubuntu:14.04
MAINTAINER Frederic Guillot <fred@kanboard.net>
RUN apt-get update && apt-get install -y apache2 php5 php5-sqlite git && apt-get clean
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN cd /var/www && git clone https://github.com/fguillot/kanboard.git
RUN rm -rf /var/www/html && mv /var/www/kanboard /var/www/html
RUN chown -R www-data:www-data /var/www/html/data
EXPOSE 80
@fguillot
fguillot / Curl.php
Created July 18, 2013 23:18
Re-use curl instance
<?php
namespace PicoFeed\Clients;
use \PicoFeed\Logging;
class Curl extends \PicoFeed\Client
{
private $body = '';
private $body_length = 0;