create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
<?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 ) ) { |
"use strict"; | |
var PageRuler = { | |
settings: null, | |
init: function (a) { | |
var b = chrome.runtime.getManifest(), | |
c = b.version; | |
"install" === a ? (PageRuler.Analytics.trackEvent("Run", "Install", c), chrome.storage.sync.set({ | |
statistics: !0, | |
hide_update_tab: !1 | |
})) : "update" === a ? PageRuler.Analytics.trackEvent("Run", "Update", c) : PageRuler.Analytics.trackEvent("Run", "Open", c) |
[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 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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.
## EXPIRES CACHING ## | |
# <IfModule mod_expires.c> | |
# ExpiresActive On | |
# ExpiresByType image/jpg "access 1 year" | |
# ExpiresByType image/jpeg "access 1 year" | |
# ExpiresByType image/gif "access 1 year" | |
# ExpiresByType image/png "access 1 year" | |
# ExpiresByType text/css "access 1 month" | |
# ExpiresByType text/html "access 1 month" | |
# ExpiresByType application/pdf "access 1 month" |
# 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 |
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); | |
// Run the code in the devtools console. |
{ | |
"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" |