Skip to content

Instantly share code, notes, and snippets.

@etobi
etobi / gist:3301968
Created August 9, 2012 07:26
#lwShirt #TYPO3
## 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 January 28, 2013 19:13
Caretaker: generate public/private keypair for caretaker_instance
#!/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 April 11, 2013 13:24
extbase mailservice
<?php
class Tx_SoEvents_Service_MailService {
/**
* @var Tx_Extbase_Object_ObjectManager
*/
protected $objectManager;
/**

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

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 November 4, 2014 10:31
Simple shell script to monitor a log file (e.g. TYPO3 syslog) and push it to a slack channel
#!/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
{
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
}
],
"require": {
"typo3/cms": "6.2.5",
[alias]
st = status -sb
spu = stash
spo = stash pop
ci = commit
br = branch
co = checkout
cp = cherry-pick
df = diff
dfword = diff --color-words
#!/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 January 17, 2017 09:00
Monitoring mit Icinga (Nagios) auf Raspberry PI installieren
# 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