Skip to content

Instantly share code, notes, and snippets.

View edisplay's full-sized avatar

edisplay edisplay

View GitHub Profile
@jaredhoyt
jaredhoyt / hosts
Created January 13, 2011 22:12
Example Apache setup (with SSL)
# Secure local IPs:
#
# 127.0.0.2 - www.example.dev
#
127.0.0.1 localhost
# example.com
127.0.0.2 www.example.dev
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 4, 2024 21:33
A badass list of frontend development resources I collected over time.
@AbhishekGhosh
AbhishekGhosh / HTML5-Print.html
Created July 5, 2013 20:27
HTML5 Print Button
<button onclick="javascript:window.print()">Print This Webpage</button>
@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
@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(
@hofmannsven
hofmannsven / README.md
Last active May 3, 2024 15:30
Git CLI Cheatsheet
@ijy
ijy / sublime-text-3-setup.md
Last active January 15, 2024 14:21
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:
@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]";
@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]>