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
#Analyst 1 | |
location /E0922BB0-684B-4ED3-967E-85D08880CFD5/ { | |
proxy_redirect off; | |
#Empire | |
location /E0922BB0-684B-4ED3-967E-85D08880CFD5/e/ { | |
proxy_pass https://205.232.71.92:443; | |
} | |
#Metasploit | |
location /E0922BB0-684B-4ED3-967E-85D08880CFD5/m/ { | |
#Metasploit exploit/multi/script/web_delivery |
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
(function($){ | |
function hideText( textselector, strlen, moretext ){ | |
strlen = typeof strlen !== 'undefined' ? strlen : 100; | |
moretext = typeof moretext !== 'undefined' ? moretext : 'Read More'; | |
var sections = $( textselector ); | |
for(var i = 0; i < sections.length; i++ ){ | |
console.log( sections[i] ); | |
var textToHide = $( sections[i] ).html(); | |
var textToCheck = $( sections[i] ).text().substring(strlen); |
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/bash | |
# Dropbox Config | |
dropboxconfig=".dropbox_uploader" | |
# Database Credentials | |
dbuser="" | |
dbpass="" | |
dbname="" | |
# Other options |
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
# Credit: http://unix.stackexchange.com/questions/38943/use-mogrify-to-resize-large-files-while-ignoring-small-ones | |
identify -format '%w %h %i\n' ./*.jpg | | |
awk '$1 > 1200 || $2 > 1200 {sub(/^[^ ]* [^ ]* /, ""); print}' | | |
tr '\n' '\0' | | |
xargs -0 mogrify -quality 55 -resize '1200x1200' |
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
# http to https | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
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
RewriteEngine On | |
# If the hostname is NOT www.domain.com | |
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ | |
# 301 redirect to the same resource on www.domain.com | |
RewriteRule (.*) http://www.domain.com/$1 [L,R=301] |
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 | |
function x_child_visual_composer_update_existing_shortcodes(){ | |
if ( function_exists( 'vc_add_param' ) ) { | |
vc_add_param( 'vc_row', array( | |
'type' => 'textfield', | |
'heading' => "HTML ID", | |
'param_name' => 'element_id', | |
'value' => '', | |
'description' => __( "Assign an ID to the row", "discprofile" ), | |
) ); |
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
#import <Foundation/Foundation.h> | |
#import <Cocoa/Cocoa.h> | |
#import <unistd.h> | |
BOOL copy_to_clipboard(NSString *path) | |
{ | |
// http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
NSImage * image; | |
if([path isEqualToString:@"-"]) | |
{ | |
// http://caiustheory.com/read-standard-input-using-objective-c |
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
add_shortcode('mcm_recent_feed_posts', 'shortcode_mcm_recent_feed_posts'); | |
/** | |
* shortcode_mcm_recent_feed_posts() - Retrieves posts from RSS feed | |
* | |
* @see fetch_feed() | |
* | |
* @since 1.0.0 | |
* | |
* @param array $atts { | |
* @type string $url RSS feed URL. |
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
jQuery( function($){ | |
$( 'a.button' ).click( function( e ){ | |
$.post( '?qa=default', { var1: var1, var2: var2 }, function( data ){ | |
console.log( '[jQuery AJAX Request] ' + data.message ); | |
}); | |
e.preventDefault(); | |
}); | |
}); |