Skip to content

Instantly share code, notes, and snippets.

View edisplay's full-sized avatar

edisplay edisplay

View GitHub Profile
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@olegafx
olegafx / git_commands.sh
Last active January 24, 2021 10:57
Useful git commands
# Save branch history and revert easily
git merge --no-ff
git revert -m 1 <hash>
# Show n lines of context around diff lines instead of the usual +/- 3
git diff -U<n>
# Check which branches are merged
git branch --merged
@stoyanvi
stoyanvi / max_width_email_template.html
Last active December 11, 2017 15:15
HTML Email Template: max-width hack for MS Outlook
<!--[if (gte mso 9)|(IE)]>
<center>
<table>
<tr>
<td width="600">
<![endif]-->
<div style="max-width: 600px; margin: 0 auto;">
<p>This text will be centered and constrained to 600 pixels even on Outlook which does not support max-width CSS</p>
</div>
<!--[if mso]>
@JeremyMorgan
JeremyMorgan / AuthTest.cs
Created January 2, 2014 22:20
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]";
@ijy
ijy / sublime-text-3-setup.md
Last active March 7, 2025 20:44
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:
@hofmannsven
hofmannsven / README.md
Last active April 30, 2025 15:25
Git CLI Cheatsheet
@jazbek
jazbek / gist:6355989
Created August 27, 2013 16:42
Add the recurrence schedule to the single event details
<?php
//
add_action('tribe_events_before_view','tribe_recurrence_schedule_meta');
function tribe_recurrence_schedule_meta(){
global $post;
// force this to run only on single event views
if( is_single() && tribe_is_event( $post->ID ) ){
if( tribe_is_recurring_event( tribe_is_recurring_event( $post->ID ) ) ) {
tribe_register_meta( 'tribe_recurrence_schedule', array(
@codearachnid
codearachnid / tribe_event_get_facebook_link.php
Created July 23, 2013 23:55
get the proper Facebook link for events, venue and organizers. Please note if the id is an event it will build the event by the meta id, however the second param gives the option to prettify the link but will require a request to Facebook's API which could slow response
@AbhishekGhosh
AbhishekGhosh / HTML5-Print.html
Created July 5, 2013 20:27
HTML5 Print Button
<button onclick="javascript:window.print()">Print This Webpage</button>
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 20, 2025 23:00
A badass list of frontend development resources I collected over time.