Skip to content

Instantly share code, notes, and snippets.

View shroukkhan's full-sized avatar

Shrouk Hasan Khan shroukkhan

  • Softverk / Fingi / Thai-Fi
  • Bangkok
View GitHub Profile
@shroukkhan
shroukkhan / gist:d4780f0277c807515752
Last active January 23, 2016 13:07 — forked from alokjani/gist:d9eda34a1b5ab70a50e8
Howto - Ubuntu 14.04 with Request Tracker and RT for Incident Response

Ubuntu 14.04 Request Tracker RT 4.0.22 RT for Incident Response RTIR 3.0.4

Request Tracker Installation

export http_proxy="http://10.x.x.x:3128"
export https_proxy="http://10.x.x.x.x:3128"
@shroukkhan
shroukkhan / Running openELEC completely from usb
Created November 20, 2014 05:11
Running openELEC completely from usb
on linux :
1. run ./create_sdcard on usb
2. run ./create_sdcard on sdcard
3. plugin usb and sdcard and bootup pie
4. ssh into device:
# df -h
[ make a note of where the usb is mounted , usually
/dev/sda1 is /var/media/System [ rootfs ]
@shroukkhan
shroukkhan / ubuntu add display resolution
Last active August 29, 2015 14:09
ubuntu add display resolution
cvt 1600 900 60
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode VGA1 1600x900_60.00
xrandr --output VGA1 --mode 1600x900_60.00
xrandr --output VGA1 --right-of eDP1
xfwm4 --replace
@shroukkhan
shroukkhan / dual display
Last active August 29, 2015 14:04
Dual Display - Ubuntu
xrandr --output DVI-I-0 --right-of DVI-I-1
@shroukkhan
shroukkhan / propertyPortalFileManager.php
Created July 9, 2013 01:28
php create class instance
/*******************************************************/
protected static $instance = null;
protected function __construct()
{
//Thou shalt not construct that which is unconstructable!
}
protected function __clone()
{
@shroukkhan
shroukkhan / instruction
Created April 2, 2013 14:59
changing eclipse automatically selected text background
Window-->preference-->General-->Editors-->Text Editors-->Annotations--->C++ Occurances
@shroukkhan
shroukkhan / .config
Last active December 15, 2015 10:09
carambola config
#
# Automatically generated make config: don't edit
# OpenWrt version: Barrier Breaker (r33735)
# Tue Dec 10 21:29:36 2013
#
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc40x is not set
# CONFIG_TARGET_ppc44x is not set
# CONFIG_TARGET_realview is not set
# CONFIG_TARGET_atheros is not set
@shroukkhan
shroukkhan / debugging php cli remote
Created March 16, 2013 11:08
debugging remote cli using phpstorm
http://www.rtuin.nl/2013/01/php-cli-remote-debugging-with-phpstorm-zend-debugger/
---------------------------------------------------------------------------------------------------------
This post aims to give an overview of how to get remote cli debugging working with PhpStorm and Zend Debugger. You can find more detailed information under the links in this article.
Some time ago i wanted to debug a PHPUnit test in PhpStorm, debugging PHP scripts using the cli sapi turned out to require some extra effort.
The situation is that my project files reside in a virtualbox, and open the project files -via a mounted directory- in PhpStorm. This means that, for normal web debugging, you have to specify some server settings, including the path mapping.
Since you work on the server directly, you have to set up a remote debugging connection to your IDE. In his blog post, Kevin Schroeder explains how to do this.
@shroukkhan
shroukkhan / zend query string
Created March 3, 2013 15:17
zend debug query string to make sure it doesnt always stop at line 1 of each file it debugs from cli
remove
debug_stop=1
from the query string