Skip to content

Instantly share code, notes, and snippets.

Thilo Utke thilo

  • Berlin
Block or report user

Report or block thilo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
thilo / html.html
Last active Oct 26, 2016
An example how to use the bots platform to build a custom report
View html.html
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scaleable=no">
<title>Example Report</title>
<div class="page-header">
<h1>Example Report</h1>
thilo / example.html
Last active Oct 16, 2018
Embedding cobot plans on your website with JavaScript
View example.html
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Template for plans change this to match your needs. {{word}} and [%word%] will be filed with information from your plans.
To find how the template tags work you can read it here:
You can use all attributes of a plan that are documented in our API docs here: -->
<script id="planTemplate" type="text/html">
thilo / gist:55d3ae8b4b75b09788f5
Created Nov 12, 2014
Deleteing Manual File Type Bindings for Textmate 2 e.g. to autodetect RSpec File
View gist:55d3ae8b4b75b09788f5
This is needed for example if you want textmate to switch between rspec and rails file types automagically.
1. Open ~/Library/Application Support/TextMate/Global.tmProperties
2. Delete all entries of the format
[ .fileending ]
fileType = some.filetype
3. Done!
thilo / .rvmrc
Last active Aug 29, 2015
GC Tweaks for faster tests for ruby 2.1.x
View .rvmrc
rvm --create use ruby-2.1.2
export RUBY_GC_HEAP_INIT_SLOTS=1000000
export RUBY_GC_MALLOC_LIMIT_MAX=500000000
View twitter-entities.js
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
* See the documentation here:
* Basically, add ?include_entities=true to your timeline call
* Copyright 2010, Wade Simmons
* Licensed under the MIT license
thilo / database.yml
Last active Dec 26, 2015
How to set a local collation and other encoding settings for postgresql in database yml if the system has other defaults. If you get the error `invalid locale name YOUR_LOCALE` you must generate the locale first with `sudo locale-gen YOUR_LOCALE` Its important that you use the template option together with the collation, otherwise you will get a…
View database.yml
adapter: postgresql
encoding: utf8
ctype: de_DE.utf8
collation: de_DE.utf8
template: template0
socket: /var/run/postgresql
database: professor_s_development
pool: 5
thilo / unicorn.rb
Created Oct 9, 2013
A default unicorn config for a Rack app (not Rails) on Heroku
View unicorn.rb
worker_processes 3
timeout 10
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT',
thilo / gist:3743853
Created Sep 18, 2012
nginx rtmp module config issue
View gist:3743853
$ ./configure --add-module=/User/thilo/workspace/nginx-rtmp-module
checking for OS
+ Darwin 12.1.0 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
thilo / gist:3742120
Created Sep 18, 2012
Simple video conversion and streaming with node.js
View gist:3742120
var http = require('http')
ffmpeg = require('fluent-ffmpeg');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'video/x-flv'});
var pathToMovie = '/public/video.mp4';
var proc = new ffmpeg({ source: pathToMovie, logger: true, nolog: false })
thilo / gist:1670428
Created Jan 24, 2012
ngix ssl proxy config
View gist:1670428
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/;
You can’t perform that action at this time.