Skip to content

Instantly share code, notes, and snippets.

View boennemann's full-sized avatar

Stephan Bönnemann-Walenta boennemann

View GitHub Profile

guys, dudes, bros

I think you mean team...

I think you mean squad..

I think you mean gang...

I think you mean pals...

@boennemann
boennemann / sitemap.xml
Created May 10, 2013 10:58
Example for an automatically generated sitemap with jekyll.
---
# Remember to set production_url in your _config.yml file!
layout: nil
title : Sitemap
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in site.pages %}
<url>
<loc>{{site.production_url}}{{ page.url }}</loc>
@boennemann
boennemann / README.md
Last active March 30, 2021 23:00
Pushing new releases of a legacy version with semantic-release

If you have a package where a lot of people are still using a legacy version of it you might want to keep pushing (security-)fixes to that "branch".

Let's say the "latest" version of your package is "5.4.0", but there is as significant amount of people still using "4.7.4" – the last version you released before doing "5.0.0".

You found a critical bug in "5.4.0" and push it as out as "5.4.1", but it applies to "4.7.4" as well and so you want to do "4.7.5".

Assuming you have semantic-release already set up, you can follow these steps to get that "4.7.5" legacy support release out.

  1. Go to the relevant commit: git checkout v4.7.4
  2. Create a new branch from it: git checkout -b 4.x (You can choose any branch name, just make sure to use the same in step 3)
@boennemann
boennemann / hack.sh
Last active June 24, 2017 02:18 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2261461/hack.sh | sh
#
@boennemann
boennemann / ideas.md
Created January 7, 2016 21:52
Simply semantic-release config and increase flexibilty

The current plugin system aims to make every step of semantic-release customizeable. There is a lot of overhead to this though.

Idea:

  1. Remove verifyConditions.
  2. Hardcode one check that implements every CI server out there. (Mappings for each service are trivial to add, much like in https://github.com/auchenberg/volkswagen)
  3. Add an option to surpass this check.

With this it would "just work™" on any CI server. If there is custom behavior required this can simply be run before the semantic-release command: e.g. verify-unicorns &amp;&amp; semantic-release pre &amp;&amp; npm publish &amp;&amp; semantic-release post.

Verifying that +boennemann is my blockchain ID. https://onename.com/boennemann
@boennemann
boennemann / test.cs
Created October 16, 2013 19:52 — forked from d8ta/gist:7013675
using System;
namespace bsp11
{
class MainClass
{
public static void Main (string[] args)
{
/* 1.(2P) Schreibe ein Programm, das die Fü̈llmenge eines liegenden Kreiszylinders berechnet (Formel siehe Wikipedia, Tank-Problem).
@boennemann
boennemann / script.js
Created May 17, 2013 08:59
Preventing `:hover` styles on scroll improves performance http://www.html5rocks.com/en/tutorials/speed/unnecessary-paints/
// Used to track the enabling of hover effects
var enableTimer = 0;
/*
* Listen for a scroll and use that to remove
* the possibility of hover effects
*/
window.addEventListener('scroll', function() {
clearTimeout(enableTimer);
removeHoverClass();
@boennemann
boennemann / Default (OSX).sublime-keymap.json
Created February 19, 2013 10:03
My Sublime Text 2 `Default (OSX).sublime-keymap`
[
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
]
@boennemann
boennemann / semantic-release-setup.sh
Last active October 26, 2015 21:54
semantic-release setup
#!/bin/sh
export GITHUB_TOKEN=$GH_TOKEN
curl -Lo travis_after_all.py https://git.io/vLSON
python travis_after_all.py
export $(cat $(pwd)/.to_export_back 2> /dev/null) &> /dev/null
rm travis_after_all.py .to_export_back