View wp_permissions.sh
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
find ~/public_html -type d -exec chmod 755 {} \; | |
find ~/public_html -type f -exec chmod 644 {} \; |
View coordinates.php
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 | |
require_once('simplexlsx.class.php'); | |
$xlsx = new SimpleXLSX('test.xlsx', false, true); | |
$locations = array(); | |
foreach ($xlsx->rows(3) as $row) { | |
if ($row[6]) { | |
$locations[] = array( | |
'address' => str_replace('.', '', str_replace('#', '', $row[6])), |
View shellshock.sh
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
env x='() { :;}; echo vulnerable' bash -c "echo this is a test" |
View gist:25cf113030b369a66d40
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 | |
/** | |
* WooCommerce Extra Feature | |
* -------------------------- | |
* | |
* Add custom fee to cart automatically | |
* | |
*/ | |
function woo_add_cart_fee() | |
{ |
View price.css
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
.price {color:#fff; position:absolute; right:0; top:10px; height:48px; line-height:48px; padding:0 20px;} | |
.price:after {position:absolute; content:""; left:-12px; width:0px; height:0px; border-top:24px solid black; border-bottom:24px solid black; border-left:12px solid transparent;} | |
.price.red {background:#e1559a;} | |
.price.red:after {border-top-color:#e1559a; border-bottom-color:#e1559a;} | |
.price.blue {background:#329af2;} | |
.price.blue:after {border-top-color:#329af2; border-bottom-color:#329af2;} | |
.price.green {background:#a8d688;} |
View site.conf
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
## | |
# Caching | |
## | |
# Expire rules for static content | |
location ~* \.(?:manifest|appcache|html?|xml|json)$ { | |
expires -1; | |
# access_log logs/static.log; # I don't usually include a static log | |
} |
View ajax.js
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
var data = $(this).serialize(); | |
$.ajax({ | |
type: 'POST', | |
url: 'URLHERE', | |
data: data, | |
success: function(response) { | |
$('#result').html(response); | |
}, | |
complete: function() { | |
// Complete |
OlderNewer