This file contains hidden or 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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
This file contains hidden or 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 | |
echo 'This has been customized!!!'; | |
// Perform post-install customizations | |
if ( function_exists( 'add_action' ) ){ | |
add_action( 'wp_mail_content_type' , 'customize_install' ); | |
function customize_install(){ | |
// Switch themes | |
switch_theme('twentytwelve'); |
This file contains hidden or 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 | |
/** | |
* Place next to wp-blog-header.php. Visit this file to find the time suck. | |
*/ | |
declare(ticks=1); | |
register_tick_function('ds_do_profile'); | |
$ds_profile = array(); | |
$ds_last_time = microtime(true); |
This file contains hidden or 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
#!/bin/bash | |
# apt-cyg: install tool for Cygwin similar to debian apt-get | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2013 Trans-code Design | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains hidden or 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 | |
if ( !class_exists( 'DraftCode' ) ) { | |
/** | |
* Our DraftCode class fixes WordPress compatibility issues. | |
*/ | |
class DraftCode | |
{ | |
public function __construct() | |
{ | |
global $wp_filter; |
This file contains hidden or 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
*.backup | |
.DS_Store |
This file contains hidden or 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 | |
// There is nothing output here because block themes do not use php templates. | |
// There is a core ticket discussing removing this requirement for block themes: | |
// https://core.trac.wordpress.org/ticket/54272. | |
?><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<title><?php wp_title( '|', true, 'right' ); ?></title> | |
<link rel="stylesheet" href="<?php echo esc_url( get_stylesheet_uri() ); ?>" type="text/css" /> |
This file contains hidden or 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
/** | |
* isNodeEnabled checks to see if the given node is enabled and is in an enabled tab | |
* and/or subflow instance (vs just in the palette); checks it's parents/ancestors. | |
* | |
* @param {object} RED The RED object for accessing nodes. | |
* @param {string} node_id The node ID to check for a valid instance. | |
* @return {boolean} True if the node is a valid enabled instance, false otherwise. | |
*/ | |
function isNodeEnabled(RED, node_id) { |
This file contains hidden or 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
// Underscore to camelcase | |
function usToCC(str) { | |
return str.replace(/_([a-z])/g, function (g) { return g[1].toUpperCase(); }); | |
} | |
// Camelcase to underscore | |
function ccToUs(str) { | |
return str.replace(/([a-z][A-Z])/g, function (g) { return g[0] + '_' + g[1].toLowerCase() }); | |
} |
This file contains hidden or 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
certbot certonly --manual \ | |
--preferred-challenges=dns \ | |
--email [email protected] \ | |
--server https://acme-v02.api.letsencrypt.org/directory \ | |
--agree-tos \ | |
--manual-public-ip-logging-ok \ | |
-d website.com \ | |
-d *.website.com \ |
OlderNewer