Skip to content

Instantly share code, notes, and snippets.

View fritexvz's full-sized avatar
🦄
horsin' around

5r!t3x fritexvz

🦄
horsin' around
View GitHub Profile
@fritexvz
fritexvz / WordPress and Suricata.md
Created May 15, 2020 20:21
Protecting WordPress with Suricata

There aren’t any silver bullets that will protect a WordPress installation against every single attack, but adding a full featured IDPS solution like Suricata, is a good step in protecting not only that “all too many times vulnerable” WordPress installation but also other services like SSH.

@fritexvz
fritexvz / yoast_seo_admin_remove_columns.php
Created April 16, 2020 14:57 — forked from amboutwe/yoast_seo_admin_remove_columns.php
Remove Yoast SEO columns from posts and pages
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Remove Yoast SEO Columns
* Credit: Andrew Norcross http://andrewnorcross.com/
* Last Tested: Jul 06 2017 using Yoast SEO 5.0 on WordPress 4.8
*
* If you have custom post types, you can add additional lines in this format
* add_filter( 'manage_edit-{$post_type}_columns', 'custom_remove_yseo_columns', 10, 1 );
* replacing {$post_type} with the name of the custom post type.
@fritexvz
fritexvz / mv.sh
Created April 14, 2020 00:43 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
function mv() {
if [ "$#" -ne 1 ]; then
command mv "$@"
return
@fritexvz
fritexvz / visual-composer-rtl-fix.js
Created March 28, 2020 23:19 — forked from aliaghdam/visual-composer-rtl-fix.js
WordPress Visual Composer full width row ( stretche row ) fix for RTL
jQuery(document).ready(function() {
function bs_fix_vc_full_width_row(){
var $elements = jQuery('[data-vc-full-width="true"]');
jQuery.each($elements, function () {
var $el = jQuery(this);
$el.css('right', $el.css('left')).css('left', '');
});
}
@fritexvz
fritexvz / kmskeys10.txt
Created November 27, 2019 14:14 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@fritexvz
fritexvz / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 14:56
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
<?xml version="1.0" encoding="UTF-8"?>
<mnx>
<head>
<identification>
<title>Hot Cross Buns</title>
</identification>
</head>
<score content="cwmn">
<part>
<part-name>Melody</part-name>
@fritexvz
fritexvz / min-char-rnn.py
Created November 1, 2016 16:34 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@fritexvz
fritexvz / functions.php
Created June 8, 2016 18:15 — forked from lukecav/functions.php
Disable Theme Editors and Plugin Editors from Dashboard
// remove editor for plugins and themes. */
define( 'DISALLOW_FILE_EDIT', true );
// remove wp version meta tag and from rss feed. */
function wprv_remove_version() {
return '';
}
add_filter('the_generator', 'wprv_remove_version');
//Remove error mesage in login. */
@fritexvz
fritexvz / nginx.conf
Created April 3, 2016 00:47 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048