Skip to content

Instantly share code, notes, and snippets.

View nunenuh's full-sized avatar
🏠
Working remotely from home

Lalu Erfandi Maula Yusnu nunenuh

🏠
Working remotely from home
View GitHub Profile
@nunenuh
nunenuh / pil-ubuntux64-14.04
Last active August 29, 2015 14:16
Python PIL (Crop Resize Image) install requirement
sudo apt-get build-dep python-imaging python-dev
sudo apt-get install libjpeg62 libjpeg62-dev
sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
pip install Pillow
@nunenuh
nunenuh / gist:36c92a31e62e7ce4b533
Created March 8, 2015 17:23
Catatan Sintaks Upload File Django Rest Framework menggunakan Curl
curl -i -X POST -H "Content-Type: multipart/form-data" --form file=@Selection_008.png http://localhost:8000/v1/media/upload?format=json
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for doctrine.cli' in /var/www/zf2-api/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:521
Stack trace:
#0 /var/www/zf2-api/vendor/doctrine/doctrine-module/bin/doctrine-module.php(51): Zend\ServiceManager\ServiceManager->get('doctrine.cli')
#1 /var/www/zf2-api/vendor/doctrine/doctrine-module/bin/doctrine-module(4): include('/var/www/zf2-ap...')
#2 {main}
thrown in /var/www/zf2-api/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 521
JPan
@nunenuh
nunenuh / test
Created August 18, 2011 23:42
Test
tests