Skip to content

Instantly share code, notes, and snippets.

View lukrizal's full-sized avatar

Luk Rizal lukrizal

  • Manila City, Philippines
View GitHub Profile
sudo apt-get update && sudo apt-get upgrade -y;
sudo apt-get build-dep -y libqt4-gui libqt4-network libqt4-webkit;
sudo apt-get install -y openssl build-essential xorg git git-core libssl-dev libxrender-dev t1-xfree86-nonfree xfonts-scalable ttf-ubuntu-font-family ttf-mscorefonts-installer poppler-utils libqt4-dev qt4-dev-tools;
cd ~;
git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt;
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf;
cd wkhtmltopdf;
qmake-qt4;
cd ../wkhtmltopdf-qt;
git checkout 4.8.4;
tpl = _.template($('#tpl-modal_select-product-first').html())
opts =
autoResize: true
autoCenter: false
arrows: false
helpers:
overlay: {closeClick: false}
closeBtn: false
afterShow: ()->
window.location.href = "#{BASE_URL}#{pex.REAL_INDEX_PATH}"
@lukrizal
lukrizal / inkscape.sh
Last active April 11, 2017 06:49
Install Inkscape CentOS 6.6
#!/usr/bin/env bash
# Make installation directory
mkdir -p ~/install/inkscape && cd ~/install/inkscape && \
# Install necessary packages
sudo yum -y install bzr && bzr branch lp:inkscape && \
sudo yum -y groupinstall "Development Tools" && \
sudo yum -y install ImageMagick-c++-devel ImageMagick-c++ ImageMagick-devel ImageMagick glibmm24-devel libsigc++-devel gtkmm24-devel glibmm24 libsigc++ gtkmm24 intltool gc gc-devel lcms lcms-devel gsl gsl-devel libxml2-devel libxslt-devel boost-devel popt-static poppler-devel inkscape && \
@lukrizal
lukrizal / centos 6.5
Last active August 29, 2015 14:17
Imagemagick Installation
#!/usr/bin/env bash
yum install ImageMagick ImageMagick-devel -y
yum --enablerepo=remi,remi-test install php-pecl-imagick -y
{"en":"Folding","ar":"Folding"}
{"en":"Scorefold","ar":"Scorefold"}
{"en":"Creasing","ar":"Creasing"}
{"en":"Jump Perforation","ar":"Jump Perforation"}
{"en":"Hole punch","ar":"Hole punch"}
{"en":"Round Corners","ar":"Round Corners"}
{"en":"Numbering","ar":"Numbering"}
{"en":"Embossing","ar":"Embossing"}
{"en":"Lamination1","ar":"Lamination1"}
{"en":"Die Cut","ar":"Die Cut"}
@lukrizal
lukrizal / gist:7b343bf7f27abdfddaab
Created March 14, 2015 11:33
fine-arts-possible-jobs
Advertising Illustrator Jobs
Aerial Photographer Jobs
Animation Instructor Jobs
Animator Jobs
Antique Restorer Jobs
Architectural Illustrator Jobs
Art Critic Jobs
Art Director Jobs
Art Editor Jobs
Art Historian Jobs
@lukrizal
lukrizal / 1) Install
Last active August 29, 2015 14:17 — forked from nghuuphuoc/1) Install
// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.19.tar.gz
$ vi
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
@lukrizal
lukrizal / checking-user-if-exist.sh
Created March 11, 2015 00:43
Useful Bash Scripts
#!/usr/bin/env bash
# Example
# $ . checking-user-if-exist.sh root
q=$(id -u $1)
re='^[0-9]+$'
if ! [[ $q =~ $re ]] ; then
#!/usr/bin/env bash
# User must be root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
return
fi
# Check if www-data do exist
q=$(id -u www-data)
@lukrizal
lukrizal / .gitconfig
Last active August 29, 2015 14:16 — forked from robmiller/.gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Fetch for any updates and update the current branch
pull-current = "!f() { git fetch && git pull origin $(git branch-name); }; f"