View gpp.php
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
<?php echo "Aku ora popo"; ?> |
View php5-fpm.sh
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
#!/bin/sh -e | |
set -e | |
INITSCRIPT="$(basename "$0")" | |
JOB="${INITSCRIPT%.sh}" | |
if [ "$JOB" = "upstart-job" ]; then | |
if [ -z "$1" ]; then | |
echo "Usage: upstart-job JOB COMMAND" 1>&2 | |
exit 1 |
View nginx.sh
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
#!/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
DAEMON=/usr/sbin/nginx | |
NAME=nginx | |
DESC=nginx | |
if [ -r /etc/default/nginx ]; then | |
. /etc/default/nginx | |
fi |
View reboot.sh
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
#! /bin/sh | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
. /lib/lsb/init-functions | |
do_stop () { | |
log_action_msg "Will now restart" | |
reboot -d -f -i | |
} | |
case "$1" in | |
start) | |
;; |
View index.html
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
<article> | |
{% include ../article.html %} | |
</article> |
View ex_gist.php
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
<?php echo "saya telah melakukan perubahan code"; ?> |
View lemp.sh
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
[root@localhost ~]# yum --enablerepo=remi,remi-test install nginx mysql mysql-server php php-common php-fpm | |
Loaded plugins: fastestmirror | |
Loading mirror speeds from cached hostfile | |
epel/metalink | 5.6 kB 00:00 | |
* base: centos.biz.net.id | |
* epel: mirror.smartmedia.net.id | |
* extras: centos.biz.net.id | |
* remi: mirror.smartmedia.net.id | |
* remi-test: mirror.smartmedia.net.id | |
* updates: centos.biz.net.id |
View error_install_lemp
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
[root@septasite ~]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
Retrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
warning: /var/tmp/rpm-tmp.BI92on: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY | |
Preparing... ########################################### [100%] | |
1:epel-release ########################################### [100%] | |
[root@septasite ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
warning: /var/tmp/rpm-tmp.Rqk9aI: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY | |
Preparing... ########################################### [100%] | |
1:remi-release ########################################### [100%] |
View sub.domain_nginx.conf
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
server { | |
server_name sub.domain; | |
access_log /usr/share/nginx/html/sub.domain/access.log; | |
error_log /usr/share/nginx/html/sub.domain/error.log; | |
root /usr/share/nginx/html/sub.domain; | |
location / { | |
root /usr/share/nginx/html/sub.domain; | |
index index.php index.htm index.html; | |
} |
View gist:8582393baf9dcb582a3a
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
@@ -590,7 +590,7 @@ class SpritesTest < Test::Unit::TestCase | |
it "should generate a sprite from nested folders" do | |
css = render <<-SCSS | |
- @import "nested/*.png"; | |
+ @import "nested/**/*.png"; | |
@include all-nested-sprites; | |
SCSS | |
assert_correct css, <<-CSS |
OlderNewer