Skip to content

Instantly share code, notes, and snippets.

View waskito's full-sized avatar
🏠
Working from home

Yanuar Waskito waskito

🏠
Working from home
  • Indonesia
View GitHub Profile
@waskito
waskito / index.html
Last active August 29, 2015 13:56
Belajar Javascript Regular Expression http://plnkr.co/edit/iVsTSFhHABQ3rKVeBSrp
<!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>
@waskito
waskito / autostart
Last active August 29, 2015 14:05
openbox config ~/.config/openbox/
# 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
@waskito
waskito / node-no-sudo.sh
Created October 23, 2014 05:42
node and npm install without sudo
## 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...
@waskito
waskito / jeguprofile.sh
Last active August 29, 2015 14:08
jegu-git-aliases-in-bash
# 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"
@waskito
waskito / .htaccess
Created December 31, 2014 19:49
.htaccess for angular html5mode
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ - [L]
RewriteRule ^index.html [L]
ErrorDocument 404 /index.html
@waskito
waskito / .gitmessage
Last active December 7, 2015 10:51
Git commit message template
####################################################### <~ 50 chars
######################################################################## <~ 72 chars
Title goes here
Commit message body:
* ..
* ..

Preliminary Test Kulina - Frontend Programmer

Objective: Membuat satu halaman html sesuai dengan yang ada di desain (responsive desktop & mobile device).

Soal

  • Desain dapat didapatkan disini:
  • Asset berupa gambar bisa mencari gambar yang sesuai di unsplash, atau bisa mencari gambar yang sesuai dan berlisensi CC0
#!/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)
@waskito
waskito / pagespeed.conf
Created May 24, 2017 16:56 — forked from smj10j/pagespeed.conf
Nginx conf for mod pagespeed
# 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
@waskito
waskito / init.fish
Created June 14, 2017 06:08
Config fish
# 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"