Bash Commands
Permissions
Change permissions of all directories
find {/var/www/...} -type d -exec chmod 755 {} \;
Change permissions of all files
find {/var/www/...} -type f -exec chmod 644 {} \;
<?php | |
/** | |
* Plugin Name: Plugin Show Dirname | |
* Description: Display WordPress plugin directory name in plugin list view, making easier to identify plugins with same name, useful when you want to have installed multiple versions of same plugin to easily switch activation | |
* Plugin URI: | |
* Version: 1.0 | |
* Author: Allyson | |
* Author URI: https://allysonsouza.com.br | |
* License: GPL2 | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
<?php | |
/** | |
* Plugin Name: Error Reporting Level | |
* Description: Sets the error reporting level for your WordPress install. View more on: https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting | |
* Plugin URI: | |
* Version: | |
* Author: Allyson | |
* Author URI: https://allysonsouza.com.br | |
* License: GPL2 | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
<?php | |
/* | |
Plugin Name: JetEngine Macro - Current user email | |
Plugin URI: | |
Description: | |
Author: Allyson Souza | |
Version: 1.0.0 | |
Author URI: https://www.allysonsouza.com.br | |
*/ |
find {/var/www/...} -type d -exec chmod 755 {} \;
find {/var/www/...} -type f -exec chmod 644 {} \;
git init
git restore .
git restore path/to/file/to/revert
docker ps
https://docs.docker.com/engine/reference/commandline/stop/
docker stop $(docker ps -q -a)
// ==UserScript== | |
// @name GitLab - Add Board Link | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://gitlab.com/*/projetos | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com | |
// @grant none | |
// ==/UserScript== |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000 | |
} | |
] |
php --version
php -m -c
php -S localhost:8888
<?php | |
/** | |
* Remove dashboard widgets. | |
*/ | |
function remove_dashboard_widgets() { | |
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); | |
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); | |
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); | |
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); | |
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); |