Skip to content

Instantly share code, notes, and snippets.

@andypa
andypa / release.sh
Last active September 5, 2019 14:12 — forked from bclinkinbeard/release.sh
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# latest version
latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
# bump version
bumpVersion=$1
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
f:schemaLocation="http://fluidtypo3.org/schemas/fluid-master.xsd"
>
<f:layout name="Content">
<f:section name="Configuration">
<content:input name="foo" />
<content:page.includeJS name="myJs" async="1" disableCompression="1" file="EXT:bar/Resources/Public/Javascript/myjs.js" /> <!-- the same options as https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Setup/Page/#includejs-array
</f:section>
<f:section name="Markup">
@andypa
andypa / pushlock
Created May 9, 2019 11:15
execute composer update and directly commit the composer.lock and push it
alias pushlock='COMPOSER_DISCARD_CHANGES=stash composer update --no-interaction && git add composer.lock && git commit -m "[UPDATE] composer.lock" && git push'

Keybase proof

I hereby claim:

To claim this, I am signing this object:

RewriteEngine On
RewriteCond %{REQUEST_URI} !/mypage/$
RewriteRule ^(.*)$ http://www.mysite.com/ [L,R=301]
git submodule deinit -f .
git submodule init
@andypa
andypa / debug mysql in typo3
Created November 28, 2013 07:46
debug mysql in typo3
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1;
echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;
<VirtualHost *:80>
ServerName example.com
Redirect permanent / http://www.example.com/
</VirtualHost>
@andypa
andypa / 0_reuse_code.js
Created November 18, 2013 14:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andypa
andypa / readLLfile
Last active December 18, 2015 12:08
Read a language file (locallang.xml, etc.) in a non-extension file
$labels = t3lib_div::readLLfile(t3lib_div::getFileAbsFileName('EXT:extensionname/Resources/Private/Language/locallang.xml'), $GLOBALS["TSFE"]->config["config"]["language"]);