This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HelloWorld/ | |
helloworld/ | |
__init__.py | |
asgi.py | |
settings.py | |
urls.py | |
wsgi.py | |
manage.py | |
------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1 | |
SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;') | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE ENGINE='MyISAM' AND table_schema = 'wordpress'; | |
# wordpress = database name | |
Step 2 | |
Copiare l'output generato dal precedente comando, ad esempio (PS copiare senza | orizzontali) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# table is marked as crashed ... | |
service mysql stop | |
cd /var/lib/mysql/DATABASE | |
ls | |
myisamchk -s /var/lib/mysql/*/*.MYI | |
#ripara tutte le tabelle | |
service mysql restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Messaggi di errore: prova a cancellare i cookie, too many redirects, ecc. | |
Sito: http://example.com | |
1) rinominare temporaneamente .htaccess in OLD.htaccess | |
2) aggiungere nel file wp-config.php le righe per forzare la connessione alla versione HTTP | |
define( 'WP_HOME', 'http://example.com' ); | |
define( 'WP_SITEURL', 'http://example.com' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.----------------. .----------------. .----------------. .----------------. .----------------. | |
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. | | |
| | _______ | || | ________ | || | _________ | || | _______ | || | _________ | | | |
| | / ___ | | || | |_ ___ `. | || | |_ ___ | | || | |_ __ \ | || | |_ ___ | | | | |
| | | (__ \_| | || | | | `. \ | || | | |_ \_| | || | | |__) | | || | | |_ \_| | | | |
| | '.___`-. | || | | | | | | || | | _| _ | || | | __ / | || | | _| _ | | | |
| | |`\____) | | || | _| |___.' / | || | _| |___/ | | || | _| | \ \_ | || | _| |___/ | | | | |
| | |_______.' | || | |________.' | || | |_________| | || | |____| |___| | || | |_________| | | | |
| | | || | | || | | || | | || | | | | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2020 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
/* | |
Post-Identity Dark Lyrics Generator | |
Author: Salvatore Capolupo | |
Version 1.1 | |
Date: 03/06/2020 | |
Loosely based on Uncreative Writing: Managing Language in the Digital Age by Kenneth Goldsmith | |
*/ | |
include_once ( "simple_html_dom.php" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use REST API, i.e mybeatifulwebsite.com | |
- mybeatifulwebsite.com/wp-json/wp/v2/users will give all users in JSON format (no emails included) | |
- mybeatifulwebsite.com/wp-json/wp/v2/categories will list all categories list in JSON format | |
- mybeatifulwebsite.com/wp-json/wp/v2/tags will list all tags list in JSON format | |
- wp-json/wp/v2/posts will lists latest posts, very similar to /rss or /feed but in JSON | |
- wp-json/wp/v2/media will list all media files (images, ecc.) in JSON format | |
Source: https://developer.wordpress.org/rest-api/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Plugin Name: | |
Plugin URI: http://capolooper.it | |
Description: | |
Version: 1.0 | |
Author: Salvalupo Capotore | |
Author URI: http://capolooper.it | |
License: GPLv2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
// hide all errors / warning in WP, useful for production websites | |
// file: wp-config.php | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_LOG', false); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors', 0); |