Skip to content

Instantly share code, notes, and snippets.

View andreud's full-sized avatar

Andres andreud

View GitHub Profile
@TerrePorter
TerrePorter / dump-without-die
Created January 8, 2016 21:01
Inline version of laravel dd, dump without die
<?php
if ( ! function_exists('ddd'))
{
/**
* Dump the passed variables and end the script.
*
* @param mixed
* @return void
*/
function ddd($v, $asString = false)
@andreud
andreud / Wordpress Settings Files
Last active January 11, 2019 13:49
Wordpress Settings Files
Snippets to configure Wordpress; .httacess, .gitignore, etc.
@jonathonbyrdziak
jonathonbyrdziak / example.php
Created February 22, 2012 02:27
Wordpress Metabox, stand alone class for multiple metabox abilities
<?php
/*
Here's a couple of metaboxes that I've recently created using this system
*/
$subpostings = redrokk_metabox_class::getInstance('subpostings', array(
'title' => '(optional) Subscription for Postings',
'description' => "As an optional feature, you have a complete api at your disposal which will allow you the ability to offer and manage member posts. In addition to these settings, you may need to create the associated pages for accepting posts from your frontend.",
@matthewmccullough
matthewmccullough / removeignoredtracked.bsh
Created January 20, 2012 19:02
Bash script to remove any ignored files that are accidentally tracked
#!/bin/sh
# Git Remove (from version control) any file that is covered by the ignore patterns and exists on the filesystem. Could be improved to further check the file exists on the git filesystem too.
for eachthing in `git ls-files --others --ignored --exclude-standard`; do if [ -e "$eachthing" ]; then git rm $eachthing; fi; done