Skip to content

Instantly share code, notes, and snippets.

View edisplay's full-sized avatar

edisplay edisplay

View GitHub Profile
@edisplay
edisplay / gist:3b98edf71a82c6725455
Created January 2, 2016 15:02 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@edisplay
edisplay / sublime-text-3-setup.md
Created February 9, 2016 02:10 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@edisplay
edisplay / .gitignore
Created June 14, 2016 04:34 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@edisplay
edisplay / frontendDevlopmentBookmarks.md
Created June 29, 2017 13:18 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@edisplay
edisplay / rrwd_remove_page_template
Created November 20, 2017 18:30 — forked from rianrietveld/rrwd_remove_page_template
Remove page templates from dropdown page attributes in WordPress ( >= 3.9 )
<?php
add_filter( 'theme_page_templates', 'rrwd_remove_page_template' );
function rrwd_remove_page_template( $pages_templates ) {
unset( $pages_templates['page_blog.php'] );
unset( $pages_templates['page_archive.php'] );
return $pages_templates;
}
?>
@edisplay
edisplay / AuthTest.cs
Created December 18, 2017 16:32 — forked from JeremyMorgan/AuthTest.cs
Command line tool to test Active Directory authentication
using System;
using System.DirectoryServices;
class Auth
{
public static void Main(){
string path= "LDAP://DC=domain,DC=local";
string strAccountId = "[username]";
string strPassword = "[password]";
@edisplay
edisplay / git.sh
Created December 28, 2017 13:44 — forked from etoxin/git.md
GIT Bash Commands
# search (regex)
git grep "regex"
# list all branches
git branch -a
# list remote branches
git branch -r
# checkout an branch on remote
@edisplay
edisplay / wordpress-multisite-internal-redirect-loop.md
Created March 20, 2019 20:35 — forked from JustThomas/wordpress-multisite-internal-redirect-loop.md
WordPress Multisite: How to fix error "too many redirects"

WordPress Multisite: How to fix error "Request exceeded the limit of 10 internal redirects"

I am running a WordPress multisite network with sub-directory setup. When I check my error.log file, it is full of entries like this one:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

The problem was, in my case, one specific rewrite rule in the .htaccess file.

Problem description

@edisplay
edisplay / README.md
Created June 28, 2019 16:02 — forked from tomazzaman/README.md
Gulp workflow for WordPress theme development

Gulp workflow for WordPress theme development

Requirements

In order for Livereload to work, you need a Firefox or Chrome extension as Gulp doesn't inset it automatically. Alternatively, you can also manually put the livereload script in footer.php, just make sure to insert it only on development environment:

<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
@edisplay
edisplay / xampp_php7_xdebug.md
Created August 5, 2019 14:26 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup