This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
yum install ImageMagick ImageMagick-devel -y | |
yum --enablerepo=remi,remi-test install php-pecl-imagick -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Example | |
# $ . checking-user-if-exist.sh root | |
q=$(id -u $1) | |
re='^[0-9]+$' | |
if ! [[ $q =~ $re ]] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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" |