When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
#!/usr/bin/env sh | |
OPTIND=1 | |
EXITCODE=0 | |
# Default parallelization | |
PARALLELIZE=2 | |
# Default file name pattern | |
FILENAME_PATTERN='*.php' | |
echo "PHP linting - looking for syntax errors in PHP files." |
# Read: Show real path in sys_file_storage | |
select name, uid, ExtractValue(configuration, '//T3FlexForms/data/sheet[@index="sDEF"]/language/field[@index="basePath"]/value') path from sys_file_storage where uid > 0 | |
# Write: Set a new value (in this case a detail pid) in FlexForm of a tt_news plugin | |
UPDATE tt_content SET pi_flexform = UpdateXML(pi_flexform, '//T3FlexForms/data/sheet[@index="s_misc"]/language/field[@index="PIDitemDisplay"]/value', CONCAT('<value index="vDEF">', 123, '</value>' )) WHERE uid=11107 |
<?php | |
declare(strict_types=1); | |
namespace Unitue\Project\Hooks; | |
use TYPO3\CMS\Backend\Controller\PageLayoutController; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Mvc\Exception\InvalidExtensionNameException; | |
use TYPO3\CMS\Fluid\View\StandaloneView; | |
use Unitue\Project\Utility\DatabaseUtility; | |
use Unitue\Project\Utility\ObjectUtility; |
Ansible has various ways of looking up data from outside sources, including plain text password files, CSV files and INI files. But it doesn't seem to have a lookup for .env files, as used in Laravel projects, also available for PHP, Ruby, Node.js, Python and others.
One option is to launch Ansible with the Ruby dotenv
command line script... But that requires Ruby, which seems like overkill to me.
So here is a simpler solution that I use. It consists of:
.env
file itself.env
file into environment variables - ansible-playbook.sh
<?php | |
namespace In2code\Contacts\Controller; | |
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; | |
/** | |
* Class ContactController | |
*/ | |
class ContactController extends ActionController | |
{ |
mkdir ~/vim | |
cd ~/vim | |
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
# Compiled on Jul 20 2017 | |
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
export VIMRUNTIME="$HOME/vim/runtime" | |
export PATH="$HOME/vim:$PATH" | |
cd - |
<img alt="64x64" width="64" height="64" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="> |
#!/bin/bash | |
# | |
############################################################################### | |
# Photo sorting program by Mike Beach | |
# For usage and instructions, and to leave feedback, see | |
# http://mikebeach.org/?p=4729 | |
# | |
# Last update: 20-January-2016 by tastensolo | |
############################################################################### | |
# |