# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# ./git-change-commit-date.sh <commit id | 'all' > | |
# Example: | |
# ./git-change-commit-date.sh e119b94 # change commit with id e119b94 | |
# ./git-change-commit-date.sh all # changes all commits | |
# | |
# Warning! rebase/filter will change the history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# ./git-mirror-repository.sh "<source repository URL>" "<target repository URL>" | |
# Example: | |
# ./mirror-gitlos-project.sh "git@gitlab.com:example/kickstart.git" "git@gitlab.com:example/acme.git" | |
# | |
# The user must have access to both existing repositories | |
# | |
# Warning! --mirror will do a force push - Use only once per project! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// composer require guzzlehttp/guzzle | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
require __DIR__ . '/vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
- Filters: Enable filters in mailclients. Move Redmine tickets into a hotline folder, delete non-important mails automatically, move newsletters into »Read it later« folder. On Twitter: Use lists.