Skip to content

Instantly share code, notes, and snippets.

Tobias Liebig etobi

Block or report user

Report or block etobi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@etobi
etobi / gist:3301968
Created Aug 9, 2012
#lwShirt #TYPO3
View gist:3301968
## TYPO3 Contribution Cheat Sheet http://wiki.typo3.org/Contribution_Walkthrough_with_CommandLine
## Setting up your environment
git clone --recursive git://git.typo3.org/TYPO3v4/Core.git typo3_src-git
cd typo3_src-git
scp -p -P 29418 <username>@review.typo3.org:hooks/commit-msg .git/hooks/
git submodule update --init
git submodule foreach 'scp -p -P 29418 <username>@review.typo3.org:hooks/commit-msg .git/hooks/'
## Reviewing a Change Request
@etobi
etobi / gist:4658170
Created Jan 28, 2013
Caretaker: generate public/private keypair for caretaker_instance
View gist:4658170
#!/bin/sh
clear
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -pubout
echo
echo
@etobi
etobi / MailService.php
Created Apr 11, 2013
extbase mailservice
View MailService.php
<?php
class Tx_SoEvents_Service_MailService {
/**
* @var Tx_Extbase_Object_ObjectManager
*/
protected $objectManager;
/**
View gist:5725291

Kräuter-Butter-Basis

  • 1 Packet Butter weich werden lassen (1 Tag bei Zimmertemperatur, oder 2 Minuten Grill)
  • Ich weiß leider nicht, welche frischen Kräuter es so waren, aber ich habe von allen etwas genommen
    • außer vom Rosmarin
    • insgesamt "Eine Hand voll Kräuter"
  • Kräuter hacken
  • eine kleine Knoblauch-Zehe abziehen, sehr fein hacken
  • eine Frühlingszwiebel fein hacken
  • eine halbe Rote Zwiebel in Würfel schneiden
View kaybase.md

Keybase proof

I hereby claim:

  • I am etobi on github.
  • I am etobi (https://keybase.io/etobi) on keybase.
  • I have a public key whose fingerprint is DE68 5155 366A AA64 1A10 2287 0580 AC5B B503 C9B3

To claim this, I am signing this object:

@etobi
etobi / log2slack
Created Nov 4, 2014
Simple shell script to monitor a log file (e.g. TYPO3 syslog) and push it to a slack channel
View log2slack
#!/bin/sh
tail -n 1 -f /var/path/to/file.log | while read line; do
echo $line | grep -v "PATTERN TO IGNORE"
if `test $? -eq 0`; then
cleanLine=`echo $line | tr -d '"'`
payload="payload={\"channel\": \"#channel\", \"username\": \"dev:typo3-sys.log\", \"text\": \"$cleanLine\", \"icon_emoji\": \":interrobang:\"}"
curl -X POST --data-urlencode "$payload" https://TEAM.slack.com/services/hooks/incoming-webhook\?token\=TOKEN
fi
done
View composer.json
{
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
}
],
"require": {
"typo3/cms": "6.2.5",
View .gitconfig
[alias]
st = status -sb
spu = stash
spo = stash pop
ci = commit
br = branch
co = checkout
cp = cherry-pick
df = diff
dfword = diff --color-words
View fake-sendmail.sh
#!/usr/bin/ruby
path = "/Users/tobias/fake-mailer"
Dir.mkdir(path) if !File.exists?(path)
File.open("#{path}/#{Time.now.to_i}.eml", "w") do |f|
f.puts ARGV.inspect
$stdin.each_line { |line| f.puts line }
end
sleep(1)
@etobi
etobi / gist:7590aee22f9b84b69d73
Last active Jan 17, 2017
Monitoring mit Icinga (Nagios) auf Raspberry PI installieren
View gist:7590aee22f9b84b69d73
# aktuelles rasbian installieren
# hostname, password etc setzen
sudo raspi-config
# alles auf aktuellen Stand bringen
sudo apt-get update
sudo apt-get upgrade
# Feste IP konfigurieren
You can’t perform that action at this time.