Skip to content

Instantly share code, notes, and snippets.

View pixelbrackets's full-sized avatar
🧑‍🎓
Looking at other things right now

Dan Kleine (geb. Dan Untenzu) pixelbrackets

🧑‍🎓
Looking at other things right now
View GitHub Profile
@pixelbrackets
pixelbrackets / remove.sh
Created November 25, 2016 16:54
Remove ssh key form authorized_key files
cd /home/
### you may search for a part of the public key only, but make sure to not match unwanted keys of other users
grep -R -l 'SomeSSHKeyOrHostname' */.ssh/authorized_keys
sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser1/.ssh/authorized_keys
sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser2/.ssh/authorized_keys
sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser3/.ssh/authorized_keys
@pixelbrackets
pixelbrackets / TYPO3update.txt
Last active July 4, 2017 13:15
TYPO3 Update via wget
wget get.typo3.org/4.5 -O typo3_src-4.5.40.tar.gz && tar xzf typo3_src-4.5.40.tar.gz && ln -snf typo3_src-4.5.40 typo3_src-4.5
wget get.typo3.org/6.2 -O typo3_src-6.2.27.tar.gz && tar xzf typo3_src-6.2.27.tar.gz && ln -snf typo3_src-6.2.27 typo3_src-6.2
wget get.typo3.org/7 -O typo3_src-7.6.11.tar.gz && tar xzf typo3_src-7.6.11.tar.gz && ln -snf typo3_src-7.6.11 typo3_src-7
wget get.typo3.org/8 -O typo3_src-8.3.1.tar.gz && tar xzf typo3_src-8.3.1.tar.gz && ln -snf typo3_src-8.3.1 typo3_src-8
@pixelbrackets
pixelbrackets / templavoila.md
Created July 7, 2017 07:40
TemplaVoila Status Quo 2017/06

tl;dr “TemplaVoila!” (https://github.com/templavoila/templavoila/) is dead, Alexander Schnitzlers Fork “TemplaVoilà” is not working (https://github.com/alexanderschnitzler/templavoila/), Pluspols Fork “TemplaVoilà Plus” (https://github.com/pluspol-interactive/templavoilaplus/) is working but migrates all code due to the new extension key

Juni 2013: Tolleiv Nietsch stellt die Weiterentwicklung von TemplaVoila ein http://blog.tolleiv.de/2013/06/templavoila-future/

Mai 2014: TYPO3 Freelancer Alexander Schnitzler übernimmt zusammen mit Wouter Wolters die Weiterentwicklung von TemplaVoila

März 2015: Mehrere Bugfix Releases für TemplaVoila, kompatibel mit TYPO3 6.2

Mai 2015: Alexander Schnitzler kündigt an, dass es keine Feature Releases für TemplaVoila mehr geben wird, sondern nur noch ein paar letzte Bugfix Releases https://gist.github.com/alexanderschnitzler/7df8576d8abbcb8745b8

@pixelbrackets
pixelbrackets / image.md
Created February 11, 2018 13:42
Create/ write images of SD-cards

Create/ write images of SD-cards

Detect SD card

# show SD card - something like /dev/XXXX e.g  /dev/sdb1
df –h
# unmount the card to prevent card access while writing the image 
umount /dev/XXXX

Write image to SD card

@pixelbrackets
pixelbrackets / backup-acme.sh
Last active February 28, 2019 12:21
Backup Uberspace Projects
#!/bin/bash
# Backup Script for Uberspace 7 projects
USERLOCAL='johndoe' # Local Username
USERNAME='acme' # Uberspace Username
HOST='acme@foo.uberspace.de' # Uberspace Connection (Username@Host)
DATE=`date +%Y-%m-%d` # Current date
### Check if backup folder exists and create it
@pixelbrackets
pixelbrackets / .gitconfig
Last active March 7, 2019 10:45
Git Commit Message Template
### add this to your gitconfig (~/.config/git/config)
### …or use this command: git config --global commit.template ~/.config/git/gitcommitmessage.txt
[commit]
template = ~/.config/git/gitcommitmessage.txt
@pixelbrackets
pixelbrackets / IfNonEmptyViewHelper.php
Created March 29, 2019 11:15
TYPO3 Fluid ViewHelper to determine whether a variable is non empty
<?php
namespace Pixelbrackets\AcmeExtension\ViewHelpers;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
/**
* Determine whether a variable is non empty
*
* Non Empty Wording: https://english.stackexchange.com/a/102789
* Values considered as empty: https://www.php.net/manual/en/function.empty.php
@pixelbrackets
pixelbrackets / Fluid.html
Last active May 15, 2019 17:24
TYPO3 Neos Backend Conditions
<f:if condition="{node.context.workspace.name} == 'live'">
Only visible in live frontend
</f:if>
<f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess">
<f:if condition="{node.context.workspace.name} != 'live'">
Only visible in backend workspace
</f:if>
</f:security.ifAccess>
@pixelbrackets
pixelbrackets / .gitconfig
Last active May 22, 2019 09:43
Git Aliases
[alias]
# Status
st = status
sti = status
s = status
tst = status
ts = status
str = status
stt = status
# Branch
@pixelbrackets
pixelbrackets / robo-example-app.php
Last active January 16, 2020 10:37
Robo example app
<?php
require __DIR__ . '/vendor/autoload.php';
// Use Robo in standalone app
// https://robo.li/framework/#robo-as-a-framework
//
// - Install Robo `composer require consolidation/robo:^1.0`
// - Run app `php robo-example-app.php`