Skip to content

Instantly share code, notes, and snippets.

@fl3a
fl3a / aliases.drushrc.php
Created July 22, 2012 09:08
Drush configuration for git repositories
<?php
/**
* @file
* Drush alias file for git repositories
* with predefined options for sql-dump command
*
* Place as etc/drush/aliases.drushrc.php
* within your git repository
*
* @see http://netzaffe.de/node/1608 for details about repository structure
@fl3a
fl3a / README.md
Created July 11, 2012 09:05
Drupal-Distro-Build-Script

Drupal-Distro-Build-Script

About

Testing the functionality of Drupal installation profiles is cumbesome...

This script helps you to perform the following (repeating) steps of rolling out an installation profile, before you are able to test it's functionality.

It performs the following steps in case of Feature Server (fserver) 6.x installation profile:

@fl3a
fl3a / uberspace-jekyll-deployment.sh
Last active March 30, 2019 16:42
Deployment of Jekyll-Sites on Uberspace via Git Bare Repository and post-receive Hook
#!/bin/bash
#
# Deployment of Jekyll-Sites on Uberspace
# via Git Bare Repository and post-receive Hook.
#
# See https://netzaffe.de/jekyll-deployment-auf-uberspace-via-bare-repo-und-post-receive-hook/
# for requirements and more detailed description (german)
read oldrev newrev ref
pushed_branch=${ref#refs/heads/}
@fl3a
fl3a / siy_random.sh
Created June 10, 2021 06:24
Opens a random day of the Search Inside Yourself 28 challenge within firefox.
#!/bin/bash
firefox "https://my.siyli.org/my/courses/35327#practice-28d-challenge&day=$((1 + $RANDOM % 28))" &
@fl3a
fl3a / siy_day.sh
Created June 10, 2021 11:54
Opens the supplied day of the Search Inside Yourself challenge within firefox.
#!/bin/bash
[[ -z "$1" ]] && { echo "No parameter given.">&2; exit 1; }
! [[ $1 =~ ^[0-9]+$ ]] && { echo "NaN.">&2; exit 2; }
! [[ $1 -ge 1 && $1 -le 28 ]] && \
{ echo "Number is not between 1 and 28">&2; exit 3; }
firefox "https://my.siyli.org/my/courses/35327#practice-28d-challenge&day=${1}" &
@fl3a
fl3a / keybase.md
Created June 30, 2021 12:40
Keybase proof

Keybase proof

I hereby claim:

  • I am fl3a on github.
  • I am fl3a (https://keybase.io/fl3a) on keybase.
  • I have a public key ASAymQswQE4JOrS7SOC0nKGFyX_JJk1QwRU-MaU8Dcoxzgo

To claim this, I am signing this object: