Skip to content

Instantly share code, notes, and snippets.

View flohei's full-sized avatar

Florian Heiber flohei

View GitHub Profile
#!/bin/sh
raw_title="%filltext:name=title%"
api_url="http://brettterpstra.com/titlecase/"
response=`curl --silent --data-urlencode "title=$raw_title" $api_url`
echo $response
[
{
"type": "Eigentumswohnung",
"city": "Hamburg",
"year": 2019
},
{
"type": "EFH",
"city": "Duisburg",
"year": 1997

Keybase proof

I hereby claim:

  • I am flohei on github.
  • I am flohei (https://keybase.io/flohei) on keybase.
  • I have a public key whose fingerprint is 828D CC9E EC98 0CEE E1C5 BA6D 2426 838C 9F45 B706

To claim this, I am signing this object:

@flohei
flohei / jekyll-new-post.sh
Last active February 10, 2016 19:41
This script creates a new blog post for Jekyll.
#!/bin/sh
# TODO add parameter for output path
# TODO add usage string
# TODO verify variables
# variables
title="New Post"
linkpost=
permalink=
@flohei
flohei / search.html
Last active October 28, 2016 15:03
An example search page for Jekyll running the jekyll-lunr-js-search plugin.
---
layout: default
permalink: /search/
---
<!--
http://10consulting.com/2013/03/06/jekyll-and-lunr-js-static-websites-with-powerful-full-text-search-using-javascript/
-->
<div class="home">
@flohei
flohei / upgrade-redmine.sh
Created September 18, 2012 14:06
Upgrading Redmine, quick and dirty: To use it append the download path for the Redmine zip file and the name of the current version (e.g. redmine-2.0.3) as parameters. You will probably need to adjust the BASE_PATH to reflect the path to the directory whe
#!/bin/sh
# rootof.net
# Florian Heiber fh@rtfnt.com
# 2012-07-30
if [ -z "$1" ] || [ -z "$2" ]
then
echo "Two parameters are needed"
exit
@flohei
flohei / WPFix.pl
Created August 26, 2012 16:29
WPFix is a little script, that shrinks down the WordPress post ids. That's useful when you imported your Tumblr blog and the post ids got way to huge for WP to handle them.
package WPFix;
# pragmas
use warnings;
use strict 'vars';
use Data::Dumper;
use English qw(-no_match_vars);
# preparation