Skip to content

Instantly share code, notes, and snippets.

View peterkraume's full-sized avatar

Peter Kraume peterkraume

View GitHub Profile
@saschafoerster
saschafoerster / TweetSongViaTweetbot.applescript
Last active January 12, 2018 21:51 — forked from romainbriche/TweetViaTweetbot.applescript
Put this script into ~/Library/iTunes/Scripts and tweet your songs via Tweetbot
-- TweetSongViaTweetbot.applescript
-- Copy title, artist, album and year of playing song from iTunes to Tweetbot
-- Author: Sascha Foerster
-- based on script from: Romain Briche
-- iTunes and Tweetbot active?
tell application "System Events"
if not (exists application process "Tweetbot") or not (exists application process "iTunes") then
display alert "iTunes and Tweetbot required" message "You have to launch iTunes and Tweetbot before executing script"
end if
@spoonerWeb
spoonerWeb / HelpfulToolsToConcentrate.md
Last active October 2, 2019 09:16
Helpful tools to concentrate on important things

Helpful tools to concentrate on important things

devdocs.io

It's a bundle of documentation of languages, projects and other stuff. Easily searchable and can be used offline.

Download: https://devdocs.io

postman

@pgampe
pgampe / menu.ts
Last active August 4, 2020 12:51
Fully cached menu with TypoScript
page.10 >
page.10 = COA
page.10 {
cache {
key = main-menu
}
10 = TEXT
10 {
@ohader
ohader / .htaccess
Last active June 2, 2021 22:15
Apache HTML, SVG, PHP restricted handlers
# Additions to existing Apache's .htaccess rules
# Security: Enforce file types matching at end of filename only
# see https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/Security/GuidelinesAdministrators/Index.html#file-extension-handling
# see https://httpd.apache.org/docs/2.4/mod/mod_mime.html#multipleext
<IfModule mod_mime.c>
RemoveType .html .htm
<FilesMatch ".+\.html?$">
AddType text/html .html
AddType text/html .htm
@helhum
helhum / install.sh
Last active January 10, 2023 15:38
Unattended TYPO3 7LTS installation (including introduction package)
composer create-project typo3/cms-base-distribution='^7.6.0' my-test-typo3 --no-interaction
cd my-test-typo3/
composer require helhum/typo3-console
# This will only work with PHP < 7 as realurl need PHP 5.x
composer require typo3-ter/introduction
cp web/typo3conf/ext/typo3_console/Scripts/typo3cms .
cp web/typo3conf/ext/bootstrap_package/Configuration/Apache/.htaccess web/
chmod +x typo3cms
./typo3cms install:setup --non-interactive --database-user-name="root" --database-user-password="root" --database-host-name="localhost" --database-port="3306" --database-name="t3_my_test" --admin-user-name="admin" --admin-password="password" --site-name="Auto Install"
./typo3cms database:updateschema '*.*'