Using the Let's Encrypt (certbot)[https://certbot.eff.org/] with the webroot
plugin in nginx.
Install certbot on a regular user-account:
wget https://dl.eff.org/certbot-auto
Using the Let's Encrypt (certbot)[https://certbot.eff.org/] with the webroot
plugin in nginx.
Install certbot on a regular user-account:
wget https://dl.eff.org/certbot-auto
<?php | |
class MyService | |
{ | |
private $debA; | |
// $debB is not used but in the constructor | |
// I would like a phpstorm inspection to find that | |
private $debB; | |
public function __construct($debA, $debB) |
My configuration file for the i3 window manager.
Instead of the arrow keys or the i3 default keys j
k
l
+
this configuration uses VIM style keys (h
, j
, k
, l
) for window movement.
WIN + {h, j, k, l} = Move focus {left, down, up, right}
Verifying that +bcremer is my blockchain ID. https://onename.com/bcremer |
class LazyString | |
{ | |
/** | |
* @var callable | |
*/ | |
private $callee; | |
/** | |
* @param callable $callee | |
*/ |
Found on reddit.
$ sudo systemctl edit getty@tty1
[Service]
<?php | |
require $PATH_TO_SHOPWARE . '/autoload.php'; | |
$environment = getenv('SHOPWARE_ENV') ?: getenv('REDIRECT_SHOPWARE_ENV') ?: 'production'; | |
$kernel = new Shopware\Kernel($environment, $environment !== 'production'); | |
$kernel->boot(); | |
$container = $kernel->getContainer(); |
vagrant@php7dev:/var/www/shopware$ php -v && time ./bin/console sw:theme:cache:generate | |
PHP 5.6.8-dev (cli) (built: Mar 29 2015 04:48:54) | |
Copyright (c) 1997-2015 The PHP Group | |
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies | |
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies | |
Generating theme cache for shop "Deutsch" ... | |
Clearing HTTP cache ... | |
real 0m4.766s | |
user 0m4.660s |
#!/bin/bash | |
## Interactive password selection using lastpass-cli and selecta | |
## the password is written in to the primary clipboard | |
## https://github.com/lastpass/lastpass-cli | |
## https://github.com/garybernhardt/selecta | |
lpass ls | selecta | grep -Po '(?<=(\[id: ))[0-9]*?(?=\])' | xargs lpass show -c --password |
mkdir source | |
cd source | |
wget http://museum.php.net/php5/php-5.2.17.tar.gz | |
tar xvf php-5.2.17.tar.gz | |
cd php-5.2.17 | |
./configure --disable-all --enable-static --enable-cli | |
make | |
cp sapi/cli/php ~/bin/php5.2.17-x64-static |