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
@premek
premek / mv.sh
Last active March 5, 2024 17:43
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.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@shikendon
shikendon / ddos-mitigation-notes.md
Last active November 8, 2023 10:34
Best Practices for DDoS Protection and Mitigation on Linux
<?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>
@jaredatch
jaredatch / functions.php
Last active July 3, 2023 23:10
WordPress Search Autocomplete using admin-ajax.php
<?php
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
*/
function ja_global_enqueues() {
wp_enqueue_style(
'jquery-auto-complete',
@aliaghdam
aliaghdam / visual-composer-rtl-fix.js
Last active February 5, 2022 09:34
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', '');
});
}
@shagunsodhani
shagunsodhani / PixelRNN.md
Created October 9, 2016 13:22
Summary of PixelRNN paper

Pixel Recurrent Neural Network

Introduction

  • Problem: Building an expressive, tractable and scalable image model which can be used in downstream tasks like image generation, reconstruction, compression etc.
  • Link to the paper

Model

  • Scan the image, one row at a time and one pixel at a time (within each row).
@amboutwe
amboutwe / yoast_seo_admin_remove_columns.php
Last active September 17, 2024 19:22
Remove Yoast SEO columns from posts and pages
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Remove Yoast SEO columns for all users site wide
* Credit: Andrew Norcross http://andrewnorcross.com/
* Last Tested: Sep 17 2024 using Yoast SEO 23.4 on WordPress 6.6.2
*
* If you have custom post types, you can add additional lines in this format
* add_filter( 'manage_edit-{$post_type}_columns', 'yoast_seo_admin_remove_columns', 10, 1 );
* replacing {$post_type} with the name of the custom post type.
@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. */
@lukecav
lukecav / functions.php
Last active June 8, 2016 18:15
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. */
@bishboria
bishboria / springer-free-maths-books.md
Last active September 17, 2024 05:30
Springer made a bunch of books available for free, these were the direct links