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 | |
/** | |
* Create the meta boxes for the home as long as it is the home page template that is currently | |
* being used. | |
* | |
* https://wordpress.stackexchange.com/questions/82477/how-to-add-add-meta-box-to-specific-page-template | |
* https://developer.wordpress.org/reference/hooks/add_meta_boxes/ | |
* https://developer.wordpress.org/reference/functions/get_post_meta/ | |
* https://developer.wordpress.org/reference/functions/add_meta_box/ |
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
<h2 class="text-center">Regular Grid</h2> | |
<div class="grid-container container-padding"> | |
<div class="grid grid-padding testing"> | |
<div id="header" class="small-12 colm"> | |
<p class="text-center"> | |
SMALL-12 | |
</p> | |
</div> |
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/sh | |
# -------------------------------------------------------- | |
# Purpose: Downloads and installs plugins that are defined | |
# in the array setup by the user. | |
# Author: Alex Dobson (https://github.com/SufferMyJoy) | |
# -------------------------------------------------------- | |
# Define all the plugins I like to have using their folder names | |
PLUG[0]="all-in-one-wp-security-and-firewall" | |
PLUG[1]="comment-moderation-e-mail-to-post-author" |
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
find . -mindepth 2 -type f -print -exec mv {} . \; |
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
find . -type f -mmin -60 |
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
find . -name '*['$'\r'$'\n'$' '']*' |
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
lsof -P -i -n | cut -f 1 -d " " | uniq |
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
find . -type f ! -name "*.<extension>" ! -name "*.<extension>" -delete |
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
# Shows the differences between two directories | |
function dirdiff { | |
diff <(cd "$1" ; ls -1 | sort) <(cd "$2" ; ls -1 | sort) | |
} | |
export -f dirdiff |
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
diff <(cd dir1 ; ls -1 | sort) <(cd dir2 ; ls -1 | sort) |
NewerOlder