Skip to content

Instantly share code, notes, and snippets.

View Dankniel's full-sized avatar

Daniel Contreras Dankniel

View GitHub Profile
@Dankniel
Dankniel / wp-plugin-template.php
Created December 1, 2020 02:43 — forked from wvega/wp-plugin-template.php
A WordPress plugin template
<?php
/*
Plugin Name:
Plugin URI: http://wvega.com
Description:
Version: 1.0
Author: Willington Vega
Author URI: http://wvega.com
License: GPLv2
*/
@hbaker
hbaker / change-divi-mobile-menu-breakpoint.css
Created January 25, 2018 02:01
Divi Theme - Modify Mobile Menu Breakpoint
/* CHANGE MOBILE NAV BREAKPOINT */
@media only screen and ( max-width: 1079px ) { /* Change this number to modify breakpoint width */
#top-menu-nav, #top-menu {display: none;}
#et_top_search {display: none;}
#et_mobile_nav_menu {display: block;}
}
@sareiodata
sareiodata / empty-wp-plugin.php
Created July 2, 2014 08:45
Empty WordPress plugin
<?php
/**
* Plugin Name: Name Of The Plugin
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
* Description: A brief description of the Plugin.
* Version: The Plugin's Version Number, e.g.: 1.0
* Author: Name Of The Plugin Author
* Author URI: http://URI_Of_The_Plugin_Author
* License: A "Slug" license name e.g. GPL2
*/
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active September 21, 2024 03:31
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th
@wvega
wvega / wp-plugin-template.php
Created July 28, 2011 03:15
A WordPress plugin template
<?php
/*
Plugin Name:
Plugin URI: http://wvega.com
Description:
Version: 1.0
Author: Willington Vega
Author URI: http://wvega.com
License: GPLv2
*/