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 / api.php
Last active January 11, 2025 09:07
Simple PHP script to test and use cURL
<?php
/**
* Simple request response script
*
* Point you cURL request to this script to see all incoming data
*/
echo '*API*'. PHP_EOL;
@pixelbrackets
pixelbrackets / quicklog.php
Last active August 30, 2021 11:59
Simple PHP log method
<?php
$data = ['foo' => 'Hello World'];
file_put_contents('/tmp/log.txt', time() . ' ' . print_r($data, true) . PHP_EOL, FILE_APPEND);
@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 / notes.md
Last active December 3, 2021 14:39
999+ New Messages - How to handle information overload
@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 / git-add-all-remote.sh
Last active August 5, 2022 12:45
Add a Git remote named »all« which groups all existing remotes
#!/bin/bash
# Source: https://akrabat.com/git-push-to-multiple-repositories/
if [ "`git remote| grep all`" == "all" ] ; then
git remote remove all
fi
for r in `git remote`
do
@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 / 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 / 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`
@pixelbrackets
pixelbrackets / index.php
Last active September 2, 2020 12:46
waterpipe-example-api
<?php
require __DIR__ . '/../vendor/autoload.php';
/**
* Waterpipe: https://packagist.org/packages/elementaryframework/water-pipe
*
* Examples calls:
* http 127.0.0.1:8080/ # GET homepage
* http 127.0.0.1:8080/build/ token=foo # POST JSON Build endpoint