start new:
tmux
start new with session name:
tmux new -s myname
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
<?xml version="1.0" encoding="utf-8"?> | |
<project name="your-project-name-here" default="build"> | |
<target name="build" | |
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,behat,phpcb"/> | |
<target name="build-parallel" | |
depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
<target name="tools-parallel" description="Run tools in parallel"> | |
<parallel threadCount="2"> |
WARNING: This gist was created in 2013 and targets the legacy GOPATH mode. If you're reading this in 2021 or later, you're likely better served by reading https://tip.golang.org/cmd/go/#hdr-Configuration_for_downloading_non_public_code and https://golang.org/ref/mod#private-modules.
$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
{namespace dce=ArminVieweg\Dce\ViewHelpers} | |
<f:layout name="Default" /> | |
<f:section name="main"> | |
<f:for each="{dce:fal(field:'images', contentObject:contentObject)}" as="image"> | |
<!-- This is the normal unresponsive way --> | |
<f:image image="{image}" /> | |
<!-- Here we referer to typoscript to render the responsive image --> | |
<f:cObject typoscriptObjectPath="lib.responsiveImage" data="{image.uid}"></f:cObject> | |
</f:for> |
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/ElasticSearchHandler.php | |
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/ElasticaFormatter.php | |
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/LogstashFormatter.php | |
Another example: | |
https://github.com/nulpunkt/monolog-elasticsearch-logstashformat |
# Define where to store the generated certs and metadata. | |
DIR="$(pwd)/tls" | |
# Optional: Ensure the target directory exists and is empty. | |
rm -rf "${DIR}" | |
mkdir -p "${DIR}" | |
# Create the openssl configuration file. This is used for both generating | |
# the certificate as well as for specifying the extensions. It aims in favor | |
# of automation, so the DN is encoding and not prompted. |