Skip to content

Instantly share code, notes, and snippets.

View FaKleiser's full-sized avatar
🚀
Build, Learn, Sleep, Repeat.

Fabian Kleiser FaKleiser

🚀
Build, Learn, Sleep, Repeat.
View GitHub Profile
S3_ACCESS_KEY_ID_GITLAB_BACKUP=<ACCESS_KEY>
S3_SECRET_ACCESS_KEY_GITLAB_BACKUP=<SECRET_KEY>
@FaKleiser
FaKleiser / .gitconfig
Last active January 11, 2019 16:56
Some useful git aliases
[core]
editor = vim
eol = lf
autocrlf = input
[alias]
last = log -1 --stat
cp = cherry-pick
co = checkout
cl = clone
ci = commit
@FaKleiser
FaKleiser / debug-manifest.sh
Created January 11, 2019 09:05
Debug the manifest that would be generated by BOSH deployment scripts
#!/bin/sh
# == Debug Manifest ==
# This script allows to show interpolated manifests based on BOSH script files.
#
# Prerequisite: You have a script file that somewhere contains:
# bosh -e my-bosh-env deploy my-base-manifest.yml \
# -o operations/expose-https.yml \
# ...
#
# Then you can simply call this script that replaces [create-env|deploy|update-cloud-config]
@FaKleiser
FaKleiser / README.md
Last active October 9, 2018 07:50
BOSH install fails with nokogiri

Error Description

Installing a BOSH director with bosh create-env with the vSphere CPI release fails during the compilation of the vSphere package with the bosh-create-env.log. This happens on Ubuntu 16.04 / 18.04 with or without system Rubys (2.3 / 2.4 / 2.5) installed.

Resolution

Notice that about in the middle of the log it says:

Keybase proof

I hereby claim:

  • I am fakeller on github.
  • I am fakeller (https://keybase.io/fakeller) on keybase.
  • I have a public key ASA4_yxNz33iCXohoprh4GyyYSXPmy2ZFFw_4brjteBq4go

To claim this, I am signing this object:

AD-XX: <TOPIC - short, concise summary>

  • Date: <DATE - when the decision was made>
  • Driver: <DRIVER - list a single person driving consenus and decision making>
  • Stakeholders: <STAKEHOLDERS - list all relevant stakeholders affected by this decision>
  • Status: [PROPOSED | DECIDED | SUPERSEDED]
  • Categories: <CATEGORIES - use a simple grouping to help organize the set of decisions (e.g. backend, payment, user management, ...)>
  • Outcome: <OUTCOME - once decided, provide a short summary of the decision outcome here>

Context

@FaKleiser
FaKleiser / brunch-config.coffee
Last active March 11, 2017 12:02
A Living Styleguide with Brunch and KSS
module.exports =
config:
paths:
watched: ['app/', 'styleguide/']
files:
javascripts:
joinTo: 'app.js'
stylesheets:
joinTo:
'app.css': /^app/,
@FaKleiser
FaKleiser / CompactBundle.php
Last active June 26, 2023 07:42
CompactBundle for DDD applications with Symfony. See this blog post for more information: http://www.fabian-keller.de/blog/domain-driven-design-with-symfony-a-folder-structure
<?php
namespace Fk\Core\Infrastructure\Bundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* The compact bundle combines a bundle definition with an {@link ExtensionInterface} to provide sound defaults for
* implementing custom bundles.
*/
abstract class CompactBundle extends Bundle
@FaKleiser
FaKleiser / Debug.java
Created March 2, 2015 10:21
Measure Eclipse debugging performance
package app;
public class Debug {
// 4 seconds in milliseconds
private static final long MEASUREMENT_TIME = 4 * 1000;
public static void main(final String[] args) {
final long res = longRunningOperation();
System.out.println(res);