Skip to content

Instantly share code, notes, and snippets.

usermod -a -G <groupname> username
find cte/ -name "*.xml" -print0 | xargs -0 rm
sudo npm -g list --depth=0
sudo systemctl stop mysql
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
mysql -u root
UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('root') WHERE user = 'root';
FLUSH PRIVILEGES;
sudo systemctl start mysql
find / -name "*.so"
@pierophp
pierophp / .php_cs
Created November 22, 2016 14:53
PHP CS Fixer Config File Example
<?php
$finder = Symfony\Component\Finder\Finder::create()
->files()
->in(__DIR__)
->exclude('vendor')
->exclude('resources/views')
->exclude('storage')
->exclude('public')
->notName("*.txt")
sudo /etc/init.d/docker stop
sudo rm /var/lib/docker/network/files/local-kv.db
sudo /etc/init.d/docker start
sudo npm i -g node-nightly
npm i bluebird
node-nightly --harmony_async_await async_await.js
@pierophp
pierophp / PS1
Last active April 4, 2017 13:04
PS1='\[\033[0;37m\][\t]\[\033[0;32m\][\u]\[\033[31m\][\h]`git branch 2>/dev/null | grep \* | head -1 | sed "s/\ //g" | awk "{ print \"[ \"\\\$1 \" ]\" }"` \[\033[1;33m\]\w\a\[\033[0m\]\n\$ '
smbpasswd -r <IP> -U <USER>