Skip to content

Instantly share code, notes, and snippets.

View junwatu's full-sized avatar
🚀
Ship it!

Equan P. junwatu

🚀
Ship it!
View GitHub Profile
@junwatu
junwatu / Jracy.markdown
Last active August 29, 2015 14:05
A Pen by Equan Pr..
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@junwatu
junwatu / ArchLinuxARM on Qemu
Created June 5, 2014 07:04
ArchLinuxARM on Qemu
#Check image to find Linux partition
$ fdisk -l ArchLinuxARM-2014.05-rpi.img
console output
Disk ArchLinuxARM-2014.05-rpi.img: 1960 MB, 1960837120 bytes
255 heads, 63 sectors/track, 238 cylinders, total 3829760 sectors
Units = sectors of 1 * 512 = 512 bytes
@junwatu
junwatu / L4-101
Last active August 29, 2015 13:59
Laravel 4 Tips & Troubleshooting
**1.** Artisan migrate or db:seed error because of false mysql.sock config
**Problem:**
Command `artisan migrate` or `artisan db:seed` have this error message
[PDOException] SQLSTATE[HY000] [2002] No such file or directory
**Solution:**
@junwatu
junwatu / Object.observe() Binding
Last active August 29, 2015 13:57
Object.observer binding example
Just a raw and dull Object.observe() example, test on Google Chrome Version 35.0.1897.2 dev aura
0. Enable flags "Enable Experimental JavaScript" on Google Chrome.
1. Make HTML file to load JS file
<!-- index.html -->
<!doctype html>

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust
./configure --target-triples=arm-unknown-linux-gnueabihf

make

@junwatu
junwatu / Seting Framework Phalcon Dengan Nginx & PHP-FPM
Last active January 1, 2016 15:59
Langkah - langkah setup framework Phalcon dengan Nginx dan PHP-FPM.
Phalcon adalah framework PHP yang di implementasikan sebagai ekstensi C.
http://phalconphp.com/en/
Untuk setup Phalcon dengan Nginx dan PHP-FPM ikuti langkah - langkah berikut. Setup
dilakukan pada OS Linux Elementary Luna.
PHP
---
@junwatu
junwatu / BookDetails.mxml
Created August 18, 2011 03:38
BookDetails component
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
creationComplete="initdg()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.ListEvent;
import com.developmentarc.core.utils.EventBroker;
[Bindable]
@junwatu
junwatu / BookList.mxml
Created August 18, 2011 03:29
BookList component
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Script>
<![CDATA[
import mx.events.ListEvent;
import com.developmentarc.core.utils.EventBroker;
[Bindable]
public var dataOne:Array = ["Beginning Adobe AIR","Essential ActionScript 3.0"];
@junwatu
junwatu / MyBooks.mxml
Created August 17, 2011 16:02
MyBooks main file
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:custom="comp.ui.*" xmlns:local="*" width="700" height="400">
<mx:Label text="MyBooks" fontSize="16" fontWeight="bold" textAlign="left" width="100%"/>
<mx:HDividedBox height="100%" width="100%">