Skip to content

Instantly share code, notes, and snippets.

View hasenbalg's full-sized avatar
🐩

koongfoopoodle hasenbalg

🐩
View GitHub Profile
@hasenbalg
hasenbalg / 0x81567580ebe4659F35fBe57e43861B06E97a3aE6
Created November 6, 2017 17:25
0x81567580ebe4659F35fBe57e43861B06E97a3aE6
0x81567580ebe4659F35fBe57e43861B06E97a3aE6
gg=G autoindent
yy Zeile kopieren
dd Zeile ausschneiden
p Zeie wieder einfuegen
@hasenbalg
hasenbalg / installTypescriptChromebook.sh
Created February 20, 2018 13:50
Install typescript on an old cruton ubuntu for chrome book and sets up example project
function makeIndexHtml {
FILE="index.html";
touch $FILE;
cat >$FILE <<EOL
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>New TypeScript Project</title>
@hasenbalg
hasenbalg / displaytest.py
Created March 1, 2018 14:29
system monitor for a 4line lcd
#!/usr/bin/python
import time
from subprocess import *
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
# Zuordnung der GPIO Pins (ggf. anpassen)
DISPLAY_RS = 7
DISPLAY_E = 8
DISPLAY_DATA4 = 25
@hasenbalg
hasenbalg / AdditionalConfiguration.php
Created March 28, 2018 14:04
Typo3 404 in chosen language
<?php
function logger($value)
{
$output = "\n" . print_r($value, TRUE) . "\n";
file_put_contents('php://stderr', $output);
//observe in apache log (tail -f /var/log/apache2/error.log)
}
// http://wiki.sklein-medien.de/doku.php?id=typo3:404
@hasenbalg
hasenbalg / keymap.cson
Created April 30, 2018 08:15
Atom Keybindingings
'atom-text-editor':
'ctrl-shift-i': 'editor:auto-indent'
@hasenbalg
hasenbalg / video_converter.sh
Last active June 21, 2018 10:18
rename and convert all .mov files in a dir structure
#!/bin/bash
# install rename and libav-tools
# place this script in the root dir of the video dirs
# get all the spaces out of the names
find . -depth -name "* *" -execdir rename 's/ /_/g' "{}" \; #https://stackoverflow.com/a/2709619/4062341
# convert all the videos. (remove the echo)
# https://superuser.com/a/1059219/895813
for i in `find . -name "*.mov" -print0| xargs -0`; do
@hasenbalg
hasenbalg / Typo3phpsendmail.md
Last active August 6, 2018 09:47
Solution for Unsupported sendmail command flags [/usr/sbin/sendmail]. Must be one of "-bs" or "-t" but can include additional flags.

In Typo3 8.7 geht bei mir der phpsendmail nicht mehr. Die Fehlermeldung sieht so oder aehnlich aus.

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Unsupported sendmail command flags [/usr/sbin/sendmail]. Must be one of "-bs" or "-t" but can include additional flags. | Swift_TransportException thrown in file /opt/typo3_src-8.7.16/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php in line 146. Requested URL: http://typosux.de/typo3/install.php?&install[action]=testSetup&install[controller]=tool&install[context]=backend 

Wenn man die Mails ueber smtp verschickt, dann geht es aber.

$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport'] = 'smtp';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport_smtp_password'] = 'xxx';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport_smtp_server'] = 'smtp.domain.org:25';
@hasenbalg
hasenbalg / Page.ts
Last active August 21, 2018 06:16
typo3 pass along footer
mod.web_layout.BackendLayouts {
nimm_mich {
title = Nimm mich!
icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif
config {
backend_layout {
colCount = 4
rowCount = 2
rows {
@hasenbalg
hasenbalg / setup.ts
Created August 28, 2018 11:05
Google Analytics in TYPO3 einbinden
googleAnalytics.UA = TEXT
googleAnalytics.UA.value = blabla
page.headerData.98788 = TEXT
page.headerData.98788{
value(
<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;