This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
require 'ostatus' | |
module Jekyll | |
class RenderOStatus < Liquid::Tag | |
def render(context) | |
site = context.registers[:site] | |
feed = OStatus::Feed.from_url(site.config['ostatus_feed']) | |
result = "<h2>#{feed.author.name}'s microblog</h2>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
require 'coffee-script' | |
class CoffeeScriptConverter < Converter | |
safe true | |
priority :normal | |
def matches(ext) | |
ext =~ /coffee/i | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class RawTag < Liquid::Block | |
def parse(tokens) | |
@nodelist ||= [] | |
@nodelist.clear | |
while token = tokens.shift | |
if token =~ FullToken | |
if block_delimiter == $1 | |
end_tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mediagoblin.meddleware import BaseMeddleware | |
from mediagoblin.tools.response import redirect | |
class PrivateMeddleware(BaseMeddleware): | |
"""Private Meddleware | |
Redirects requests by unauthenticated clients to the login form. | |
""" | |
public_views = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh -f | |
set -e | |
HOSTNAME=$1 | |
PASSWORD=toor | |
VMNAME=$HOSTNAME | |
FILE="$VMNAME.img" | |
SIZE=2G | |
ARCH=amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import Prelude hiding (FilePath) | |
import Control.Monad | |
import Data.Maybe | |
import Data.List | |
import qualified Data.Text as T | |
import qualified Data.ByteString.Lazy.Char8 as C | |
import Text.Feed.Types | |
import Text.Feed.Import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('RCUBE_CONFIG_DIR', '/var/lib/roundcube/config/'); | |
define('RCUBE_PLUGINS_DIR', '/var/lib/roundcube/plugins/'); | |
require_once '/var/lib/roundcube/program/lib/Roundcube/bootstrap.php'; | |
$rcube = rcube::get_instance(rcube::INIT_WITH_DB | rcube::INIT_WITH_PLUGINS); | |
$imap = $rcube->get_storage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
""" | |
Loops over a file with configuration in the form of | |
#key = value | |
and produces a yaml file suitable for ansibles defaults/main.yml | |
""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file is the units database for use with GNU units, a units conversion | |
# program by Adrian Mariano adrianm@gnu.org | |
# | |
# August 2015 Version 2.13 | |
# | |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006 | |
# 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 | |
# Free Software Foundation, Inc | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This has been generated by the overpass-turbo wizard. | |
The original search was: | |
“(railway=station or railway=tram_stop or highway=bus_stop) around Semperdepot” | |
*/ | |
[out:json][timeout:25]; | |
// adjust the search radius (in meters) here | |
{{radius=600}} | |
// gather results | |
( |
OlderNewer