Do this inside your wp-config.php
.
It must be the absolute path to the socket.
define('DB_HOST', 'localhost:' . __DIR__ . '/.mysql/mysql.sock');
// *** 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( |
add_filter('register_block_type_args', function ($settings, $name) { | |
if ($name == 'demo/content-with-sidebar') { | |
$settings['render_callback'] = 'demo_blocks_content_with_sidebar'; | |
} | |
return $settings; | |
}, null, 2); |
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. |
put in wp-config.php
file
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
$_SERVER['HTTPS']='on';
}
get slug from URL and change URL of article links
function GETCONTENTCREATORURL( articleUrl ) {
const contentSiteUrl = "REPLACE_CONTENTENT_SITE_URL";
const slug = articleUrl.split('/');
return contentSiteUrl+slug[ slug.length-2 ]+'/'+slug[ slug.length-1 ];
}
This isn't a direct answer to the question but this page comes back when searching for ways to revert a branch's code to a tag release.
Another way is to create a diff between the current state of the branch and the tag you want to revert to and then apply that to the branch. This keeps the version history correct and shows the changes going in then coming back out again.
Assuming your branch is called master and the tag you want to go back to is called 1.1.1
https://stackoverflow.com/questions/6872223/how-do-i-revert-master-branch-to-a-tag-in-git
git checkout 1.1.1
git diff master > ~/diff.patch