Skip to content

Instantly share code, notes, and snippets.

View waltercruz's full-sized avatar
☸️
meditating

Walter Rodrigo de Sá Cruz waltercruz

☸️
meditating
View GitHub Profile
@waltercruz
waltercruz / .htaccess
Created November 22, 2021 20:30 — forked from cipriantepes/.htaccess
GravityForms fix 403 admin-ajax.php
### DISABLE mod_security firewall
### Some rules are currently too strict and are blocking legitimate users
### We only disable it for URLs that contain the regex below
### The regex below should be placed between "m#" and "#"
### (this syntax is required when the string contains forward slashes)
### @src https://stackoverflow.com/questions/12928360/how-can-i-disable-mod-security-in-htaccess-file
<IfModule mod_security.c>
<If "%{REQUEST_URI} =~ "m#/wp-admin/admin.php?page=gf_edit_forms/#">
SecFilterEngine Off
</If>
.
├── archive-product.php
├── auth
│   ├── footer.php
│   ├── form-grant-access.php
│   ├── form-login.php
│   └── header.php
├── cart
│   ├── cart-empty.php
│   ├── cart-item-data.php
module.exports = {
env: {
browser: true,
es6: true,
},
extends: 'airbnb-base',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
@waltercruz
waltercruz / .eslintrc.js
Last active January 13, 2020 02:06
Clean PA Alliance Products
module.exports = {
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
<?php
add_filter('acf/location/rule_types', 'acf_location_rules_types');
function acf_location_rules_types($choices)
{
$choices['Menu']['menu_level'] = 'Nível do Menu';
return $choices;
}

Keybase proof

I hereby claim:

  • I am waltercruz on github.
  • I am waltercruz (https://keybase.io/waltercruz) on keybase.
  • I have a public key ASCTf3GnwCzsVO9yj5bMW-eeMCUTIYvg9D0HUrvzvuAWMQo

To claim this, I am signing this object:

@waltercruz
waltercruz / post-merge
Created October 26, 2017 17:39 — forked from halian-vilela/post-merge
Verlindo Git Merge
#!/bin/bash
NC="\033[0m" # No Color
ORANGE_W="\033[1;33m"
GREEN_W="\033[1;32m"
BUILD_DIR=../build
SRC_DIR=`pwd`
MESSAGE=`git log -1 --pretty=%B`
from collections import defaultdict, Counter
from pprint import pprint
import json
import matplotlib.pyplot as plt
plt.rcdefaults()
from matplotlib import rcParams
rcParams.update({'figure.autolayout': True})
import numpy as np
subs = defaultdict(lambda: 0)
@waltercruz
waltercruz / data.txt
Last active October 31, 2019 01:29
Análise dos subreddits
/all /funny /news /anarcho_capitalism
/asoiaf /askreddit ...
/asoiaf e /ps4
/brasilivre, /jogatina
/dataisbeautiful
/edc /knifeclub /damninteresting /eli5 /tldr
/gifs, /wtf, /bonsai
/gonewild
/pics /gaming /front
/r/ActualLesbians, /r/Overwatch, /r/Hearthstone, /r/GirlsWithNeonHair, /r/Vexillology
// Diatonic Chord Trigger
var notes = ["C", "C#/Db", "D", "D#/Eb", "E", "F", "F#/Gb", "G", "G#/Ab", "A", "A#/Bb", "B"];
var PluginParameters = [
{ name: "Parent Key", type: "menu", valueStrings:notes, defaultValue: 0 }
];
var debug = true;
function rootKey() {
return GetParameter("Parent Key");