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
SELECT | |
wp_posts.ID | |
FROM | |
wp_posts | |
LEFT JOIN | |
wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) | |
WHERE | |
1 = 1 AND wp_posts.ID NOT IN (93110) | |
AND (wp_term_relationships.term_taxonomy_id IN (8)) | |
AND wp_posts.post_type = 'post' |
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
"use strict"; | |
fetch("...", {method: "POST"}) | |
.then(result => result.json()) | |
.then(result => { | |
let ws = new WebSocket("..." + result.connectionId); | |
ws.onopen = () => { | |
ws.send(JSON.stringify({...})); | |
ws.send(JSON.stringify({...})); |
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
# Dante-Server install script (Debian 8 - Jessie) | |
# Start with 'chmod +x danted_install_script.sh && danted_install_script.sh' | |
# duketwo - 12.11.2017 | |
random_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
network_adapter=$(ip route | grep default | sed -e "s/^.*dev.//" -e "s/.proto.*//") | |
username="SallySample" | |
port="31337" | |
public_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) | |
echo "Random password: $random_pw" | |
echo "deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib" >> /etc/apt/sources.list |
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
# -*- coding: UTF-8 -*- | |
import threading | |
import Queue | |
import os | |
import datetime | |
import sys | |
import time | |
if __name__ == '__build__': |
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
git archive --format=zip --remote=<$PATH> HEAD > <$NAME_PLUGIN>.zip |
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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
<?php | |
add_filter('wp_list_categories', 'esc_wp_rel_nofollow'); | |
add_filter('wp_tag_cloud', 'esc_wp_rel_nofollow'); | |
function esc_wp_rel_nofollow($output) | |
{ | |
if (is_single() || is_category() || is_tag()) | |
return stripslashes(wp_rel_nofollow($output)); | |
return $output; |
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
find /PATH -type f -exec chmod 644 {} + |