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
# Install tmux 3.0a on Amazon Linux 2 | |
# Originally tailored for CentOS 7 | |
# install deps | |
sudo yum install -y gcc kernel-devel make ncurses-devel | |
## Needs openssl | |
sudo yum install openssl-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
## Install |
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
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Ftoastmasterscreatingcommunicators&tabs=timeline&width=700px&height=500&small_header=true&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=1808361502709557" width="700px" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe> |
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
kubeadm reset | |
sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube* | |
sudo apt-get autoremove | |
sudo rm -rf ~/.kube |
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
<script type="text/html" id="cfx_all_canada"> | |
<option value="">Select Province</option> | |
<option value="">------------------------------</option> | |
<option value="AB">Alberta</option> | |
<option value="BC">British Columbia</option> | |
<option value="MB">Manitoba</option> | |
<option value="NB">New Brunswick</option> | |
<option value="NL">Newfoundland and Labrador</option> | |
<option value="NS">Nova Scotia</option> | |
<option value="ON">Ontario</option> |
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
:: This batch file uses Disk2vhd to make automated backups of the entire Windows computer. | |
:: Download Disk2vhd from: | |
:: https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx?f=255&MSPPError=-2147217396 | |
:: Generate the file name. | |
$fileName = (get-date -uformat %d%b%y) + "_" ` | |
+ $Env:COMPUTERNAME + ".vhdx" | |
:: Drive letter to save the VHDX. | |
$driveLetter = "i:" |
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
# ================================================================================ | |
# Redirects uploads to production. | |
# ================================================================================ | |
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp-content/uploads/(.*)$ https://www.someotherdomain.com/wp-content/uploads/$1 [R=301,NC,L] | |
</IfModule> | |
# ================================================================================ |
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
<HashRouter> | |
<div> | |
<Route path="/" component={Home} /> | |
<Route path="about" component={About} /> | |
<Route path="teachers" component={Teachers} /> | |
<Route path="courses" component={Courses} /> | |
</div> | |
</HashRouter> |
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 | |
/** | |
* This template is used for displaying PRIVATE pages. | |
* | |
* Template Name: Private: Full Width | |
*/ | |
get_header(); ?> | |
<div class="wrapper section medium-padding"> |
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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
ports: | |
- "3406:3306" | |
restart: always |
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
/** | |
* @param {string} currentDate - The current date. | |
* @returns {string} Returns the new expiration date. | |
*/ | |
private addYear = (currentDate: string): string => { | |
// Add a day to the current date. | |
let objDate = new Date(currentDate); | |
objDate.setDate(objDate.getDate() + 1); | |
// Format the month. |
NewerOlder