Skip to content

Instantly share code, notes, and snippets.

View reinaldomendes's full-sized avatar

Reinaldo Barcelos Mendes reinaldomendes

  • Belo Horizonte MG
View GitHub Profile
@reinaldomendes
reinaldomendes / .php_cs
Created October 30, 2016 20:57 — forked from jatubio/.php_cs
Config file to pass PHP-CS-Fixer with Laravel 5.1 custom and PSR-2 styles coding
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
set @salt=substr(md5(concat('salt',CURRENT_TIME)),1,5)
set @pass='pass';
set @user="root";
update admin_user set `password`=CONCAT(SHA2(concat(@salt,@pass), 256),":",@salt,":1") WHERE `username`=@user
## check config of systemd-resolved
systemd-analyze cat-config systemd/resolved.conf
## Show systemd folders
systemd-analyze unit-paths