Objective: Membuat satu halaman html sesuai dengan yang ada di desain (responsive desktop & mobile device).
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
# Aliases for git shorty | |
alias gco="git checkout" | |
alias gaa="git add -A ." | |
alias gcm="git commit -m" | |
alias gst="git status" | |
alias glo="git log --graph" | |
alias gpl="git pull" | |
alias gps="git push" | |
alias gbr="git branch" | |
alias gft="git fetch" |
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
# Google Pagespeed | |
# https://developers.google.com/speed/pagespeed/module/configuration | |
pagespeed on; | |
pagespeed FileCachePath /var/cache/ngx_pagespeed/; | |
# let's speed up PageSpeed by storing it in the super duper fast memcached | |
pagespeed MemcachedThreads 1; | |
pagespeed MemcachedServers "127.0.0.1:11211"; | |
# show half the users an optimized site, half the regular site |
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
####################################################### <~ 50 chars | |
######################################################################## <~ 72 chars | |
Title goes here | |
Commit message body: | |
* .. | |
* .. | |
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
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f [OR] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^ - [L] | |
RewriteRule ^index.html [L] | |
ErrorDocument 404 /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
# Aliases for git shorty | |
alias gco="git checkout" | |
alias gaa="git add -A ." | |
alias gcm="git commit -m" | |
alias gst="git status" | |
alias glo="git log --graph" | |
alias gpl="git pull" | |
alias gps="git push" | |
alias gbr="git branch" | |
alias gft="git fetch" |
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
## make sure you use python2.x (recommended python2.7) | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
export JOBS=8 # optional, sets number of parallel commands. | |
./configure --prefix=$HOME/local | |
#configure --prefix=$HOME/local/node | |
make | |
make install # ok, fine, this step probably takes more than 30 seconds... |
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
# Programs that will run after Openbox has started | |
# Set the wallpaper | |
#hsetroot ~/wallpaper.png & | |
# Run a Composite manager | |
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 & | |
# A panel for good times |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Try Javascript Regex</title> | |
</head> | |
<body> | |
<h1>Hello Regex</h1> | |
<p id="text">[file]http://www.startupjobs.asia/wp-content/uploads/company_logos/2013/10/qiscus-logo1.png[/file] Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. http://tech.qisc.us </p> |