Skip to content

Instantly share code, notes, and snippets.

View hberberoglu's full-sized avatar

Huseyin Berberoglu hberberoglu

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hberberoglu on github.
  • I am hberberoglu (https://keybase.io/hberberoglu) on keybase.
  • I have a public key ASD3rhrOwwxELkDOZx4pSqHpONFceeFyZr2CMvqSlatKBwo

To claim this, I am signing this object:

@hberberoglu
hberberoglu / gist:d136b4c152011079ea8d
Last active August 29, 2015 14:20
comment limit
add_filter( 'preprocess_comment', 'nyt_preprocess_comment' );
function nyt_preprocess_comment($comment) {
if ( strlen( $comment['comment_content'] ) > 5000 ) {
wp_die('Bu kadar uzun yorum yazılamaz.');
}
return $comment;
}
sudo apt-get update
sudo apt-get install munin-plugins-extra
cd /etc/munin/plugins
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates
sudo aptitude install libcache-memcached-perl
sudo /etc/init.d/munin-node restart
sudo tail -f /var/log/munin/munin-node.log
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="camptix-payfast-gateway"
CURRENTDIR=`pwd`
MAINFILE="camptix-payfast.php" # this should be the name of your main php file in the wordpress plugin
# git config