create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| function add_theme_caps() { | |
| // gets the author role | |
| $role = get_role( 'testarole' ); | |
| // create if neccesary | |
| if (!$role) $role = add_role('testarole', 'Testa Role'); | |
| // add theme specific roles | |
| $role->add_cap('delete_posts'); | |
| $role->add_cap('delete_published_posts'); | |
| $role->add_cap('edit_posts'); |
| // import { src, dest, watch, series, parallel } from 'gulp'; | |
| const { src, dest, watch, series, parallel } = pkg; | |
| import pkg from 'gulp'; | |
| import yargs from 'yargs'; | |
| import sass from 'gulp-sass'; | |
| import cleanCss from 'gulp-clean-css'; | |
| import gulpif from 'gulp-if'; | |
| import postcss from 'gulp-postcss'; | |
| import sourcemaps from 'gulp-sourcemaps'; |
| import { src, dest, watch, series, parallel } from 'gulp'; | |
| import yargs from 'yargs'; | |
| import sass from 'gulp-sass'; | |
| import cleanCss from 'gulp-clean-css'; | |
| import gulpif from 'gulp-if'; | |
| import postcss from 'gulp-postcss'; | |
| import sourcemaps from 'gulp-sourcemaps'; | |
| import autoprefixer from 'autoprefixer'; | |
| import imagemin from 'gulp-imagemin'; | |
| import del from 'del'; |
| # Exclude the files ajax, upload and WP CRON scripts from authentication | |
| <FilesMatch "(admin-ajax\.php|media-upload\.php|async-upload\.php|wp-cron\.php|xmlrpc\.php)$"> | |
| Order allow,deny | |
| Allow from all | |
| Satisfy any | |
| </FilesMatch> |
| <!DOCTYPE html> | |
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cidade por Estado</title> | |
| </head> | |
| <body> | |
| <select name="estados" id="estados"></select> |
| // wordpress function to debug menu (and use remove_menu_page) | |
| add_action( 'admin_init', 'the_dramatist_debug_admin_menu' ); | |
| function the_dramatist_debug_admin_menu() { | |
| echo '<pre>' . print_r( $GLOBALS[ 'menu' ], TRUE) . '</pre>'; | |
| } |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| ############################################################################### | |
| # Generated on phpdocker.io # | |
| ############################################################################### | |
| version: '3.1' | |
| services: | |
| memcached: | |
| image: 'memcached:alpine' | |
| mailhog: | |
| image: 'mailhog/mailhog:latest' |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps: