Skip to content

Instantly share code, notes, and snippets.

View Esteban-Rocha's full-sized avatar
🔥
The Fire

Esteban Rocha λ Esteban-Rocha

🔥
The Fire
View GitHub Profile
@Esteban-Rocha
Esteban-Rocha / package.json
Created August 8, 2021 07:42 — forked from keelii/package.json
TypeScript React development with ESBuild
{
"name": "demo",
"version": "0.0.1",
"private": true,
"dependencies": {
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"scripts": {
"dev": "NODE_ENV=development node bin/run.js"
@Esteban-Rocha
Esteban-Rocha / .circleci config.yml
Created September 3, 2020 03:05 — forked from ryanshoover/.circleci config.yml
CircleCI 2.1 Continuous Integration with WP Engine
# Continuous Integration to a WP Engine install
# PHP CircleCI 2.1 configuration file
# Requirements:
# 1. In CircleCI settings, add environment variables for your site's installs:
# * WPE_PRODUCTION_INSTALL=thenameofyourproductioninstall
# * WPE_STAGING_INSTALL=thenameofyourstaginginstall
# * WPE_DEVELOPMENT_INSTALL=thenameofyourdevelopmentinstall
# 2. In your repo, have two files
# * `./.gitignores/__default` -- Excludes any compiled files
@Esteban-Rocha
Esteban-Rocha / js-terms.md
Created October 30, 2018 04:16 — forked from ahmadawais/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation
@Esteban-Rocha
Esteban-Rocha / multiple_ssh_setting.md
Created June 20, 2018 00:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@Esteban-Rocha
Esteban-Rocha / .gitconfig
Created June 7, 2018 06:25 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@Esteban-Rocha
Esteban-Rocha / disable-rest-api-for-anonymous-users.php
Created February 1, 2018 06:38 — forked from khromov/disable-rest-api-for-anonymous-users.php
Disable WordPress REST API for anonymous users
<?php
/*
Plugin Name: Disable REST API for anonymous users
*/
/**
* Remove all endpoints except SAML / oEmbed for unauthenticated users
*/
add_filter( 'rest_authentication_errors', function($result) {
if ( ! empty( $result ) ) {