Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralph von der Heyden ralph

View GitHub Profile
@ralph
ralph / heroku_restart.sh
Last active Jul 17, 2020 — forked from mattheworiordan/restart.sh
Heroku scheduled restarts
View heroku_restart.sh
#!/bin/bash
# Set up the Heroku scheduler to run this command every hour.
# Source: https://gist.github.com/ralph/b1b4023e0c03aa8c68f8219cd089de46
utc_hour=`date -u +'%H' | sed 's/^0*//'`
modulo="${RESTART_EVERY_X_HOURS:-6}"
n=$(($utc_hour % $modulo))
echo $n
View git-aliases
[alias]
# less typing, more winning:
aa = add --all --intent-to-add
ap = add --patch
br = branch
ci = commit
co = checkout
cp = cherry-pick
df = diff
l = log -1
View Innovatives Wissensformat sucht Entwickler.md

Innovatives Wissensformat sucht Entwickler

Für einen großen öffentlich-rechtlichen Rundfunksender entwickeln wir ein innovatives Wissenschaftsformat: Wir verwandeln Sensordaten live in Text. Und zwar über 40 Tage. Wir lösen damit nicht nur die Erzählweise klassischer Medien auf. Es ist ein journalistisches Abenteuer.

Wir sind preisgekrönte Journalisten und begeisterte Open-Source-Entwickler. Um die Software bis zum produktiven Einsatz zu bringen, suchen wir für den Zeitraum März bis Oktober 2017 noch freelance Verstärkung für unser Entwickler-Team.

Warum solltest Du unbedingt mitmachen?

  • Wir entwickeln sowohl Software als auch Hardware
View index2.atom
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed Trololo</title>
<link href="http://example.org/"/>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
View 1-railsexpress-rbenv-patches
run:
rbenv install ./2.2.2-railsexpress
or edit install.sh to include the RUBY_VERSION you want to install and run the script.
@ralph
ralph / diff.js
Created Jun 20, 2014
diff-match-patch without the match and patch in javascript
View diff.js
/**
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
View list-link.js
View jsbin.ketaqiwe.css
/* Put your CSS here */
html, body {
margin: 20px;
}
.color {
height: 200px;
width: 200px;
}
@ralph
ralph / e
Created Oct 17, 2012
ruby compatible line number selection in vim
View e
#!/bin/sh
vim `echo $* | sed -E -e 's/\:([0-9]+)/ +\1/g'`
@ralph
ralph / ddl.sql
Created Sep 20, 2012
Import Geoplanet to MySQL
View ddl.sql
CREATE TABLE `places` (
`woeid` varchar(15) NOT NULL,
`iso` varchar(6) NOT NULL,
`name` text NOT NULL,
`language` varchar(6) NOT NULL,
`type` varchar(15) NOT NULL,
`parent` varchar(15) NOT NULL,
PRIMARY KEY (`woeid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `aliases` (
You can’t perform that action at this time.