Skip to content

Instantly share code, notes, and snippets.

View lukrizal's full-sized avatar

Luk Rizal lukrizal

  • Manila City, Philippines
View GitHub Profile
{"finishes":[],"user_uid":"geoy5wp6","size_code":"size-A5","color_code":"color-41","type_uid":"8n7gkoew","order_name":"Sample Name","data_uid":"4e6de793","processing_mode":1,"price":1234,"tat":1,"quantity":500,"status":100,"status_string":"Waiting Admin Approval","created_at":"2015-08-21 08:47:56","updated_at":"2015-08-21 08:47:56","user_info":{"uid":"geoy5wp6","app_key":"1e1f8c3796f08861e2353465d31f6596","email":"[email protected]","activated":1,"activated_at":null,"last_login":null,"persist_code":null,"company_name":"PRINTARABIA","first_name":"Printarabia","last_name":"Printarabia","created_at":"2014-11-20 05:33:44","updated_at":"2015-08-12 08:08:26","deleted_at":null,"account_type":1,"user_id":"MASTER-PA","level_of_behaviour":"","agent_group":"AG_D","is_blocked":0,"complete_name":"Printarabia Printarabia"},"color":{"uid":"ve3473dx","app_key":"1e1f8c3796f08861e2353465d31f6596","parent_uid":"--","localized_columns":["name","description"],"name":{"en":"4\\/1","ar":""},"description":{"en":"","ar":""},
@lukrizal
lukrizal / setup.sh
Last active August 29, 2015 14:22
Setting up beanstalkd console, redis commander and monit in Homestead box
#!/usr/bin/env bash
MONIT="server {
listen 80;
server_name monit.app;
access_log off;
error_log /var/log/nginx/monit.app-error.log error;
location / {
@lukrizal
lukrizal / gist:c42f0f4ce84593bd0a87
Created May 28, 2015 12:47
Installing PHP 5.6 on CentOS 6
sudo yum -y remove php56w php56w-bcmath php56w-cli php56w-common php56w-devel php56w-fpm php56w-gd php56w-ldap php56w-mbstring php56w-mcrypt php56w-mysql php56w-odbc php56w-pdo php56w-pear php56w-pecl-apcu php56w-pecl-apcu-devel php56w-pecl-geoip php56w-pecl-igbinary php56w-pecl-imagick php56w-pecl-imagick-devel php56w-pecl-memcache php56w-pecl-memcached php56w-pgsql php56w-process php56w-soap php56w-tidy php56w-xml php56w-xmlrpc && \
sudo yum -y --enablerepo=remi install php56 php56-php-bcmath php56-php-cli php56-php-common php56-php-devel php56-php-fpm php56-php-gd php56-php-ldap php56-php-mbstring php56-php-mcrypt php56-php-mysql php56-php-odbc php56-php-pdo php56-php-pear php56-php-pecl-apcu php56-php-pecl-apcu-devel php56-php-pecl-geoip php56-php-pecl-igbinary php56-php-pecl-igbinary-devel php56-php-pecl-imagick php56-php-pecl-imagick-devel php56-php-pecl-memcache php56-php-pecl-memcached php56-php-pgsql php56-php-process php56-php-soap php56-php-tidy php56-php-xml php56-php-xmlrpc php56-php-pecl-zip ph
@lukrizal
lukrizal / monitrc
Last active August 29, 2015 14:21 — forked from franck/monitrc
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file, a complete list of statements and
## options please have a look in the monit manual.
@lukrizal
lukrizal / install.md
Last active August 29, 2015 14:21 — forked from svnlto/install.md

Setup new Mac with OSX Lion from scratch

These commands are good as of 2011-07-27.

Install Xcode 4

The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.

@lukrizal
lukrizal / gist:d17ff6790a0685ec7667
Created April 29, 2015 09:02
sublime code intel
/*
SublimeCodeIntel default settings
All settings can be overridden in *.sublime-project file
*/
{
/*
Sets the mode in which SublimeCodeIntel runs:
true - Enabled (the default).
false - Disabled.
@lukrizal
lukrizal / scopes.txt
Last active August 29, 2015 14:19 — forked from iambibhas/scopes.txt
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@lukrizal
lukrizal / snippets
Last active August 29, 2015 14:19
npm snippets
# On bash, uninstalling packages
$> for package in `ls node_modules`; do npm uninstall $package; done;
@lukrizal
lukrizal / regex
Last active August 29, 2015 14:18
Regex
(?<=asset)((.*?)(\.min))(?=\.css)
$2{{assetMin('.min')}}
(\w)(\.css)
$1{{assetMin()}}$2
#!/usr/bin/env bash
sudo yum install -y fontconfig freetype libpng libjpeg libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm
sudo rpm -Uvh wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm