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
define ('EMPTY_TRASH_DAYS', 0); | |
define( 'WP_POST_REVISIONS', 3 ); |
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
// Redirect to Post If Search Results Return One Post | |
add_action('template_redirect', 'redirect_single_post'); | |
function redirect_single_post() { | |
if (is_search()) { | |
global $wp_query; | |
if ($wp_query->post_count == 1 && $wp_query->max_num_pages == 1) { | |
wp_redirect( get_permalink( $wp_query->posts['0']->ID ) ); | |
exit; | |
} |
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/sh | |
# Get current build for Chromium on Mac. | |
# | |
# @version 2018-02-11 | |
# @author Freeware | |
# @todo + send email on successful update | |
# | |
# setup ------------------------------------------------------------------------ | |
tempDir="/tmp/`whoami`/chrome-nightly/"; |
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/sh | |
# Get current build for Chromium on Mac. | |
# | |
# @version 2009-05-22 | |
# @author XXXX | |
# @todo Nothing yet | |
echo | |
" .·´`·. | |
.·´ .·´··. | |
.·´ .·´ .·´`·. |
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
<div class="cssload-loading"> | |
<div class="cssload-finger cssload-finger-1"> | |
<div class="cssload-finger-item"> | |
<span></span><i></i> | |
</div> | |
</div> | |
<div class="cssload-finger cssload-finger-2"> | |
<div class="cssload-finger-item"> | |
<span></span><i></i> | |
</div> |
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
.cssload-loading *{ | |
-khtml-box-sizing: border-box; | |
box-sizing: border-box; | |
-o-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
} | |
.cssload-loading { |
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
Encoded transparent boy's head icon | |
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAASCSURBVGhD7ZlpqFVVFMdv5tAsjURUNmjSXH5IooGwD9qnggg0RSibo6ISEyoRo6I+BEUDqaVSQZBWUhEN0IeiESqiQirLBlIrzGwuGn6/fV1wfd337uu+de69hX/48d7a95y19zlnn7XXXqe2Vf9jjYUr4CF4FT6EjfAX | |
ANonymous Mask | |
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAASNSURBVGhD7Zp5qFVVFIdfWZmNmlZUlk1ogxERFdFAI2WK/qXQYFmh0fRHERUNFDRRQUSFTTRqiJBGgyiZURaRafVHagRBNFEUzRTN9X3nvkWb67n33Xfv2dey+4MP3t7n3L33Ons4a63z+nrawLQHTIGr4RFYDO/AF/A1/Ap/9fNDf93H8BoshLvgfDgStoGuaWs4HeaCg41BVsGf8BbcDBqWRXvCA+BTTTv/BJ6Dm+AsOBH2g+1gW0i1KYyAneAQcCYvhvvgdfgR0rbXwkWwCVSiy+AnsPE/YClcAHtDldoMjoVb4EMIg1yqB0FHuhxs7De4F8ZAN7QxTIRVYP8u472gLTmlzoSzcJwV60GOYQ5ojAdDW3KN28C3RWn96TRwHE8UpTb0vzNkC3CjtiuP9CG1P0uV1ZAd4Xb4DLwn3gHngBt1IHkEz4Yvwd/74lwBZ8JGkCqbIYeC7w+vfQ+/9P8dPAvOUiMdBmFA8B1EO/NhSwhlMUSXxHP9EtjFC |
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 | |
#title: kali-linux-region-BO-wifi-txpower-unlocker.sh | |
#description: Unlocks the wifi txpower of the 2.4Ghz band of the BO region | |
#author: Hiruna Wijesinghe https://github.com/hiruna/wifi-txpower-unlocker/ | |
#date: 13/05/2017 | |
# |\ /|\__ __/( ____ \\__ __/ ( ____ )( ___ )|\ /|( ____ \( ____ ) \__ __/|\ /| | |
# | ) ( | ) ( | ( \/ ) ( | ( )|| ( ) || ) ( || ( \/| ( )| ) ( ( \ / ) | |
# | | _ | | | | | (__ | | | (____)|| | | || | _ | || (__ | (____)| | | \ (_) / |
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 | |
# Kali Linux ISO recipe for : Top 10 Mate non-root | |
######################################################################################### | |
# Desktop : Mate 1.8 | |
# Metapackages : kali-linux-top10 | |
# ISO size : 1.36 GB | |
# Special notes : Non root user installation enabled through preseed.cfg. | |
# : This script is not meant to run unattended. |
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
How To Remove The Banner? To remove the banner link to the Bitnami Info page, follow these steps: | |
(1) Log in to into your server console using SSH and execute the following command. | |
(Remembering to replace APPNAME with the actual name or directory location of your application.) | |
# sudo /opt/bitnami/apps/APPNAME/bnconfig --disable_banner 1 | |
For example, their WORDPRESS installation you would execute: |