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
#!/bin/bash | |
#attach the EBS to /dev/sdf before running it | |
#format EBS | |
mkfs -t ext4 /dev/xvdf | |
#copy original /var to /dev/xvdf | |
mkdir /mnt/new | |
mount /dev/xvdf /mnt/new | |
cd /var |
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 | |
/** | |
* Plugin Name: Post Bulk Update | |
* Description: On activation, I'll updates certain fields of your posts at once. Can't wait! | |
* Version: 1.0.0 | |
* Author: Your name here | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt | |
* */ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
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
#!/bin/bash | |
# Description: Everytime the Kernel is upgraded (which is quite often), virtualbox stops working and throws the following error: | |
# | |
# The provider 'virtualbox' that was requested to back the machine | |
# 'default' is reporting that it isn't usable on this system. The | |
# reason is shown below: | |
# | |
# VirtualBox is complaining that the installation is incomplete. Please | |
# run `VBoxManage --version` to see the error message which should contain | |
# instructions on how to fix this error. |
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 | |
//Based on https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect | |
/** | |
* Redirect KSD customer after successful login. | |
* | |
* @param string $redirect_to URL to redirect to. | |
* @param string $request URL the user is coming from. | |
* @param object $user Logged user's data. | |
* @return string |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# BEGIN WordPress | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f |
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( 'ksd_after_ticket_info_metabox','after_ticket_info_metabox' ); | |
function after_ticket_info_metabox( $post ){ | |
ob_start(); ?> | |
<div style="" class="misc-pub-section misc-pub-public"> | |
<span id="toggle-public"> | |
<b>Make Public?</b> | |
<input type="hidden" name="_ksd_tkt_info_public" value="no" /> | |
<input name="_ksd_tkt_info_public" type="checkbox" <?php checked ( get_post_meta( $post->ID, '_ksd_tkt_info_public', true ), "yes") ?> value="yes" /> | |
</span> |