Skip to content

Instantly share code, notes, and snippets.

View SkaTeMasTer's full-sized avatar

$hawn Reimerdes SkaTeMasTer

View GitHub Profile
@SkaTeMasTer
SkaTeMasTer / config.php
Created January 23, 2018 19:45
Wordpress quickies for less trash and more security...
define ('EMPTY_TRASH_DAYS', 0);
define( 'WP_POST_REVISIONS', 3 );
@SkaTeMasTer
SkaTeMasTer / functions.php
Created January 23, 2018 19:48
Wordpress hacks...
// 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;
}
@SkaTeMasTer
SkaTeMasTer / cron-chromium.sh
Last active February 11, 2018 21:49
Need the bleeding edge of Web Btowser software?Get latest build of Chromium. Updated for 2018. They recently changed the folder structure.
#!/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/";
@SkaTeMasTer
SkaTeMasTer / cron-chromium.sh
Last active February 12, 2018 00:14
Need the bleeding edge of Web Btowser software?Get latest build of Chromium. Updated for 2018. They recently changed the folder structure. Add this to your cron to get the up-to-the-minute developer build.
#!/bin/sh
# Get current build for Chromium on Mac.
#
# @version 2009-05-22
# @author XXXX
# @todo Nothing yet
echo
" .·´`·.
.·´ .·´··.
.·´ .·´ .·´`·.
@SkaTeMasTer
SkaTeMasTer / animated-knuckles.html
Created February 13, 2018 13:34
animated-knuckles
<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>
@SkaTeMasTer
SkaTeMasTer / animated-knuckles.css
Created February 13, 2018 13:34
animated-knuckles
.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 {
@SkaTeMasTer
SkaTeMasTer / boy svg
Created February 13, 2018 13:40
Encoded transparent boy's head icon
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
@SkaTeMasTer
SkaTeMasTer / kali-linux-region-BO-wifi-txpower-unlocker.sh
Last active December 29, 2018 20:49
unlock power TX rang in kali
#!/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
# |\ /|\__ __/( ____ \\__ __/ ( ____ )( ___ )|\ /|( ____ \( ____ ) \__ __/|\ /|
# | ) ( | ) ( | ( \/ ) ( | ( )|| ( ) || ) ( || ( \/| ( )| ) ( ( \ / )
# | | _ | | | | | (__ | | | (____)|| | | || | _ | || (__ | (____)| | | \ (_) /
#!/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.
@SkaTeMasTer
SkaTeMasTer / gist:1de3971bda9f5b8492ee11961e68fe9c
Last active May 16, 2018 03:03
Bitnami Info Page For AWS Cloud -- removes the icon in bottom right of screen. The Bitnami Info Page provides information about installed Bitnami applications and useful links to documentation.
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: