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
/* | |
SiteBuilderOne WHMCS Customization | |
modern>style.css | |
*/ | |
#order-modern .product .description { | |
font-size:1.2em; | |
margin:10px 30px 10px 10px; | |
} |
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
add_action( 'init', function () { | |
$username = 'admin'; | |
$password = 'password'; | |
$email_address = 'webmaster@mydomain.com'; | |
if ( ! username_exists( $username ) ) { | |
$user_id = wp_create_user( $username, $password, $email_address ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} |
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 | |
/** | |
* Custom WordPress configurations on "wp-config.php" file. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more. | |
* For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page. | |
* Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com. | |
* | |
* @package WordPress | |
* @generator GenerateWP.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
SSH and SCP Without Passwords | |
// create a key pair | |
$ ssh-keygen | |
// VIEWING | |
// order by date | |
ls -t | |
ls -tr |
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
INSERT INTO `wp-db-here`.`wp_users` | |
(`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`, `display_name`) | |
VALUES | |
('1000', 'tempadmin', MD5('!YourPassword5150'), 'tempuser', 'email@emial.com', '0', 'Temp Admin'); | |
INSERT INTO `wp-db-here`.`wp_usermeta` | |
(`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES | |
(NULL, '1000', 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}'); |
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
// Download WordPress within folder: | |
wp core download | |
// Create database via Terminal | |
// login local with root | |
mysql -u root -p | |
// create database |
NewerOlder