Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Remove old repositories due to conflicts
rm -rf /etc/yum.repos.d/ocaml.repo
rm -rf /etc/yum.repos.d/hop5.repo
rm -rf /etc/yum.repos.d/epel.repo
rm -rf /etc/yum.repos.d/epel-testing.repo
yum install -y postgresql94-devel zeromq-devel libpqxx-devel
@apatton-cnet
apatton-cnet / gist:6072705
Last active December 20, 2015 04:39
Much like Leon's additional metabox holder above the default TinyMCE editor, this will place a full width container above the text field by hacking apart the form tag via post_edit_form_tag action
<?php
add_action('post_edit_form_tag', 'ebs_seo_cp_modify_form_tag');
function ebs_seo_cp_modify_form_tag() {
$screen = get_current_screen();
if ( $screen->id != 'location') { return; } //change to custom post type
global $post;
//lets close the <form> tag
echo '>';
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 27, 2024 06:36
A badass list of frontend development resources I collected over time.
@barryvdh
barryvdh / _ide_helper.php
Last active April 4, 2024 09:11
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: