Skip to content

Instantly share code, notes, and snippets.

View smichaelsen's full-sized avatar
🥋
Changing the world in code

Sebastian Michaelsen smichaelsen

🥋
Changing the world in code
View GitHub Profile
@smichaelsen
smichaelsen / quarkstrudel.yaml
Created October 20, 2014 09:33
Quarkstrudel ohne Ei
---
recipe: Quarkstrudel ohne Ei
date: 2014-10-28
author: Sebastian Michaelsen <[email protected]>
defaults:
ingredients:
amount: 1
unit: g
ingredient_groups:
- name: Teig
@smichaelsen
smichaelsen / update_dns_hosteurope.sh
Created September 22, 2014 21:01
poor man's dyndns for host europe
#!/bin/sh
KUNDENNR=XXXXXX
PASSWORD=XXXXXX
IP=$(wget -qO- ifconfig.me/ip)
UPDATEIP=false
if [ -f /var/run/current.ip ]
@smichaelsen
smichaelsen / application.yml
Created September 6, 2014 07:20
Gitlab CI application.yml
defaults: &defaults
allowed_gitlab_urls:
# Replace with your gitlab server url
- 'https://gitlab.app-zap.de/'
## Gitlab CI settings
gitlab_ci:
## Web server settings
host: gitlab-ci.app-zap.de
port: 443
@smichaelsen
smichaelsen / gitlab_ci
Created September 6, 2014 07:12
Gitlab CI nginx settings
# GITLAB CI
# Maintainer: @randx
# App Version: 2.0
upstream gitlab_ci {
server unix:/home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket;
}
server {
listen gitlab-ci.app-zap.de:443 ssl;
<?php
namespace Smichaelsen\Gist\Mail;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
/**
* This class represents an email which can be rendered with fluid.
* You can use all the possibilities of TYPO3's MailMessage but instead of

Keybase proof

I hereby claim:

  • I am smichaelsen on github.
  • I am smichaelsen (https://keybase.io/smichaelsen) on keybase.
  • I have a public key whose fingerprint is 6DAE 2A04 601A 1C8B EC7A B5C5 5F5D 89D0 55B4 51E0

To claim this, I am signing this object:

@smichaelsen
smichaelsen / remux
Last active December 31, 2015 22:09
restart a tmux session
#!/bin/sh
session=$*
echo "Restarting tmux session: $session"
tmux kill-session -t $session
~/tmux/$session
@smichaelsen
smichaelsen / hosts
Last active December 29, 2015 12:59
List configured ssh hosts
# Lists your configured SSH hosts
#
# example .ssh/config:
#
# +----------------------------------+
# |# Intranet |
# |Host Bilbo |
# | HostName bilbo.intranet |
# | User MyUser |
# |Host Frodo |
@smichaelsen
smichaelsen / tmux_backup
Created November 27, 2013 09:16
tmux script to start (or re-attach) a backup session. The session launches a custom backup script and Time Machine.
if [ `tmux ls | grep -c backup` -gt 0 ]; then
echo "Session found. Attaching.."
else
echo "Session not found. Creating.."
tmux new-session -s backup -n bilder -d
echo "Building window#1 (bilder)"
tmux split-window -v -t backup:1
tmux send-keys -t backup:1.1 '~/backup_bilder' C-m
<?php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('myext', 'tt_content', 'category1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('myext', 'tt_content', 'category2');