Skip to content

Instantly share code, notes, and snippets.

View entr's full-sized avatar

Zlatko Zlatev entr

  • Yotpo SMSBump
  • Burgas, Bulgaria
View GitHub Profile
@entr
entr / admin-locale.php
Last active August 29, 2015 14:17
WP Admin Locale
<?php
/*
Plugin Name: WP Admin locale
Description: Force en_US locale in WP Admin
Plugin URI: https://gist.github.com/f8c2f69b6e9f545696f7.git
Author: WPTailor
Author URI: http://wptailor.com/
Version: 0.1
License: GPL2
*/
@entr
entr / options-5.6.sh
Last active August 29, 2015 14:17
phpfarm php 5.6 compile options on Ubuntu 14.04 x64
configoptions="\
--disable-short-tags \
--with-layout=GNU \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-pcntl \
--enable-soap \
@entr
entr / wp-plugin-include-head.php
Created March 25, 2015 18:35
WP plugin include starter
<?php
/**
* @package [name]
* @subpackage [name]
* @since [version]
*/
defined('ABSPATH') or exit;
@entr
entr / admin-cleanup.php
Created May 26, 2015 13:21
A number of useful hooks to strip and clean up WordPress admin area.
<?php
/*
Plugin Name: WP Admin Snippets
Plugin URI: http://wptailor.com/
Description: A number of useful hooks to strip and clean up WordPress admin area.
Version: 0.0.1
Author: WPTailor
Author URI: http://wptailor.com/
License: GPLv3
@entr
entr / .bashrc
Created July 15, 2015 11:15
git alias
alias g='git'
# Autocomplete for 'g' as well
complete -o default -o nospace -F _git g
@entr
entr / composer.json
Last active August 29, 2015 14:26 — forked from spivurno/gw-calc-subtotal.php
Gravity Wiz // Gravity Forms // Calculation Subtotal Merge Tag
{
"name": "wptailor/gravityforms-subtotal-mergetag",
"description": "Adds a {subtotal} merge tag which calculates the subtotal of the form. This merge tag can only be used",
"type": "wordpress-plugin",
"license": "GPL3+",
"authors": [
{
"name": "David Smith",
"email": "david@ounceoftalent.com"
},
@entr
entr / class-cws-fragment-cache.php
Last active October 28, 2015 09:39 — forked from markjaquith/gist:2653957
WordPress Fragment Caching convenience wrapper
<?php
/**
* WordPress Fragment Caching convenience wrapper.
*
* @author Mark Jaquith, packed by WPTailor
*/
defined('ABSPATH') or exit;
/*
@entr
entr / gw-gravity-forms-post-content-merge-tags-usage.php
Created November 16, 2015 15:32 — forked from spivurno/gw-gravity-forms-post-content-merge-tags-usage.php
Gravity Wiz // Add Support for Gravity Form Merge Tags in your Post Content (when an entry ID is passed)
<?php
# Basic
gw_post_content_merge_tags();
# With Parameters
gw_post_content_merge_tags( array(
'auto_append_eid' => false,
'encrypt_eid' => true
) );
@entr
entr / rbenv-install.sh
Created December 7, 2015 15:31 — forked from milmih/rbenv-install.sh
Setting rbenv up globally
#!/usr/bin/env bash
if [ "$UID" -ne 0 ]
then echo "Please run this script as root user"
exit
fi
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git sqlite3 libsqlite3-dev
@entr
entr / metacity-theme-3.xml
Created February 18, 2016 08:56
Vertex metacity hide titlebar in max mode
<!-- NOTE: This is only the "max" frame_geometry -->
<frame_geometry name="max" title_scale="small" parent="normal" rounded_top_left="false" rounded_top_right="false" hide_buttons="true" has_title="false">
<distance name="left_width" value="0" />
<distance name="right_width" value="0" />
<distance name="bottom_height" value="0" />
<distance name="left_titlebar_edge" value="0"/>
<distance name="right_titlebar_edge" value="0"/>
<distance name="button_width" value="0"/>
<distance name="button_height" value="0"/>
<border name="title_border" left="0" right="0" top="0" bottom="0"/>