This file contains hidden or 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
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; |
This file contains hidden or 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
#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 |
This file contains hidden or 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
**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:** |
This file contains hidden or 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
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
This file contains hidden or 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
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 | |
--- |
This file contains hidden or 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
<?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] |
This file contains hidden or 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
<?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"]; |
This file contains hidden or 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
<?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%"> |