Skip to content

Instantly share code, notes, and snippets.

View kilip's full-sized avatar
🏠
In Search of Enlightenment

Anthonius Munthi kilip

🏠
In Search of Enlightenment
View GitHub Profile
<?php
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Behat\BehatBundle\Command\BehatCommand;
class BehatTest extends KernelAwareTest
{
/**
<?php
/**
* php-ansi-color
*
* Original
* https://github.com/loopj/commonjs-ansi-color
*
* @code
* <?php
* require_once "ansi-color.php";
@kilip
kilip / gist:6558471
Created September 14, 2013 03:00
Redmine - CentOS 5.9
rpm -Uvh http://rbel.co/rbel5
yum install ImageMagick-devel ImageMagick-c++-devel
gem install rmagick
sudo apt-get install \
libxml2 \
libxml2-dev \
libssl-dev \
pkg-config \
curl \
libcurl4-nss-dev \
enchant \
libenchant-dev \
libjpeg8 \
<?php
namespace Chyrius\PublicBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Chyrius\PublicBundle\Menu\RequestVoter;
use Symfony\Component\DependencyInjection\ContainerInterface;
class MenuBuilder
<?php
class Computer
{
protected $cpu;
protected $ram;
public function __construct($cpu,$ram)
{
$this->cpu = $cpu;
@kilip
kilip / SingletonPattern.php
Last active November 16, 2015 14:41
Singleton Design Pattern
<?php
class Counter
{
protected $count = 0;
static private $instance = null;
// protected will ensure that this class only created once
<?php
add_action( 'wp_enqueue_scripts', 'registerMyPluginScripts' );
function registerMyPluginScripts(){
wp_enqueue_script( 'myPluginScript', plugins_url('my-plugin/js/script.js',__FILE__), array('jquery'));
}
<VirtualHost *:80>
ServerName old.kmcmission.or.kr
DocumentRoot /home/kmcbishop/kmcmission.or.kr
</VirtualHost>

network indicator

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install indicator-netspeed

install chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -