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
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
============================================================================ | |
LIST OF LINUX COMMANDS FOR GATHERING PI SPECIFICATIONS | |
============================================================================ | |
“cat /proc/meminfo” (Memory Info) | |
“cat /proc/cpuinfo” (CPU Info) | |
“cat /proc/partitions” (Disk Partition Info) | |
“cat /proc/version” (Linux Version Info) | |
“cat /boot/cmdline.txt” (Boot Parameters) | |
“cat /proc/filesystems” (File System Info) |
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
iptables -A INPUT -p tcp --destination-port 443 -j REJECT |
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
#!/usr/bin/python | |
# | |
# Version 1.0 | |
# This script will pass a linux HTML header causing safe connect to ignor the host mac address as safeconnect is not developed for *nix machines | |
# For educational purposes only. | |
# Joubin Jabbari | |
import sys | |
import urllib2 | |
import random |
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
# _ _ ___ ______ _ _ | |
# | \ | | ___ _ __ __| \ \ / / _ \| \ | | | |
# | \| |/ _ \| '__/ _` |\ \ / /| |_) | \| | | |
# | |\ | (_) | | | (_| | \ V / | __/| |\ | | |
# |_| \_|\___/|_| \__,_| \_/ |_| |_| \_| | |
# | |
daemon | |
client |
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
sudo lsb_release -a |
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
# the format yourdotconffilename.status | |
sudo cat /var/run/openvpn/de141-germany.status |
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
import requests | |
import json | |
def send_notification_via_pushbullet(title, body): | |
""" Sending notification via pushbullet. | |
Args: | |
title (str) : title of text. | |
body (str) : Body of text. | |
""" | |
data_send = {"type": "note", "title": title, "body": body} |
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
MMMMMMMMMMMMMMMMMMMMMMMMMMMMOMIMMMMMMMMM | |
MMM$$IIIIIIIIIIMMMMMMMMMIIIIIIIIII7$MMMM | |
MMMMIIIIIIIIIIIII?MMMMIIIIIIIIIIIIIDMMMM | |
MMMMIIIII7MIIIIIIIMMMIIIIIIINZIIIIIMMMMM | |
MMMMIIIIIIIIMMIIIIMMMIIIIMMIIIIIIIIMMMMM | |
MMMMMIIIIIIIIIMMIIMMMMIMMIIIIIIIIIMMMMMM | |
MMMMMMIIIIIIIIIIMMMMMMMIIIIIIIIIIMMMMMMM | |
MMMMMMMMIIIIIIIMMMMMMMMMIIIIIIIMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMMMMMMMMMM |