Do this inside your wp-config.php
.
It must be the absolute path to the socket.
define('DB_HOST', 'localhost:' . __DIR__ . '/.mysql/mysql.sock');
<?php | |
/* Add Image Upload to Series Taxonomy */ | |
// Add Upload fields to "Add New Taxonomy" form | |
function add_series_image_field() { | |
// this will add the custom meta field to the add new term page | |
?> | |
<div class="form-field"> | |
<label for="series_image"><?php _e( 'Series Image:', 'journey' ); ?></label> |
name: Commit from workflow | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- file.txt | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
// *** Request Verification *** | |
// The currently recommended way is to verify request signature: https://api.slack.com/authentication/verifying-requests-from-slack | |
// Unfortunately, GAS web apps don"t have means to access request headers. Thus, this example uses the old way to verify requests. | |
// >>> Settings > Basic Information > App Credentials > Verification Token | |
const legacyVerificationToken = PropertiesService.getScriptProperties().getProperty("SLACK_VERIFICATION_TOKEN"); | |
// *** OAuth Access Token *** | |
// Install your Slack app into its development workspace. | |
// >>> Settings > Install App > Bot User OAuth Access Token | |
const token = PropertiesService.getScriptProperties().getProperty("SLACK_BOT_TOKEN"); |
{ | |
"quotes": [ | |
{ | |
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"}, | |
{ | |
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"}, | |
{ | |
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"}, | |
{ |
/* | |
* custom pagination with bootstrap .pagination class | |
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/ | |
*/ | |
function bootstrap_pagination( $echo = true ) { | |
global $wp_query; | |
$big = 999999999; // need an unlikely integer | |
$pages = paginate_links( array( |
Complete Installation and Configuration of Apache2, Multiple PHP, MariaDB, phpMyAdmin, LetsEncrypt, | |
HTTP/2, IonCube, Postfix, Dovecot, SPF, DKIM, Roundcube Webmail and | |
Files Permission Commands on Ubuntu 18.04 and 18.10 Web Server | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
This is a complete Ubuntu Linux based web server for Website, PHP, SSL, TLS, Database and Email hosting purpose. | |
Built with the below components for good performance. Also, I tried to make it as secure as possible. |