Skip to content

Instantly share code, notes, and snippets.

View sbruggmann's full-sized avatar

Stefan Bruggmann sbruggmann

View GitHub Profile
@sbruggmann
sbruggmann / OnePager.html
Last active December 19, 2015 05:04
TYPO3 Neos OnePager
<!DOCTYPE html>
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<html>
<head>
<!-- take from Default.html test teest -->
</head>
<body>
<f:section name="body">
@sbruggmann
sbruggmann / PersonsController.php
Created December 24, 2014 12:41
Access Nodes in a TYPO3 Neos Package Controller
<?php
namespace My\Package\Controller;
class PersonsController extends ActionController {
/**
* @return void
*/
public function personsAction() {
@sbruggmann
sbruggmann / StandardController.php
Created December 24, 2014 12:41
Get current Language in TYPO3 Neos Controller
<?php
namespace My\Custom\Controller;
use TYPO3\Flow\Annotations as Flow;
class StandardController extends \TYPO3\Flow\Mvc\Controller\ActionController {
/**
* @Flow\Inject
* @var \TYPO3\Flow\I18n\Service
@sbruggmann
sbruggmann / PersonsController.php
Created February 10, 2015 09:08
Access Nodes in a TYPO3 Neos Package Controller
<?php
namespace My\Package\Controller;
class PersonsController extends ActionController {
/**
* @return void
*/
public function personsAction() {
@sbruggmann
sbruggmann / .bash_profile
Last active December 17, 2020 21:32
ADB - Backup and restore Android folders recursive with OS X
# add to your .bash_profile, copy android-backup-files.sh & android-restore-files.sh to /Users/YOUR_USERNAME/ and reload the terminal to use the shortcuts..
# important, not all apps and data can backed up
alias android-backup-apps='echo "enter sudo password:"; /Applications/Android\ Studio.app/sdk/platform-tools/adb backup -apk -shared -all -f "/Users/YOUR_USERNAME/Documents/privat/backups/android-backup-full-$(date +%Y%m%d).ab"'
# to restore call (change the date):
# /Applications/Android\ Studio.app/sdk/platform-tools/adb restore /Users/YOUR_USERNAME/Documents/privat/backups/android-backup-full-YYY-MM-DD.ab
# important, add the paths to backup in both files
alias android-backup-files='echo "enter sudo password:"; ~/android-backup-files.sh;'
alias android-restore-files='echo "enter sudo password:"; ~/android-restore-files.sh;'
@sbruggmann
sbruggmann / .editorconfig
Last active March 22, 2016 12:12
Neos CMS & Flow Framework Code Styles
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# 4 tab; default
# html, css, scss, js, ..
[*]
@sbruggmann
sbruggmann / .bash_ssh
Last active October 16, 2016 08:30
bash ssh shortcut
# add "source ~/.bash_ssh" to your .bash_profile
# execute ssh-add-shortcut
ssh-add-shortcut() {
if [ -z "$1" ]; then
echo ""
echo "add and open:"
echo "# ssh-add-shortcut MyShortname user@server.com"
echo ""
echo "open:"
@sbruggmann
sbruggmann / Settings.yaml
Created October 9, 2016 14:55
Hostpoint PHP CLI memory_limit Workaround - Neos CMS
TYPO3:
Flow:
core:
phpBinaryPathAndFilename: '/home/username/php70ml512'
@sbruggmann
sbruggmann / helper.sh
Created March 11, 2017 14:25
Transfer mercurial repository to git including productive tags
#!/bin/bash
if [ -z "$1" ]; then
echo "please add a target repository"
exit
fi;
rm -rf .git
hg checkout tip --clean

Keybase proof

I hereby claim:

  • I am sbruggmann on github.
  • I am sbruggmann (https://keybase.io/sbruggmann) on keybase.
  • I have a public key ASDvZgElLnPTF7Au6zberEncb-qrKN9mCD-YGsNeU5Kyygo

To claim this, I am signing this object: