Skip to content

Instantly share code, notes, and snippets.

View lukrizal's full-sized avatar

Luk Rizal lukrizal

  • Manila City, Philippines
View GitHub Profile
@lukrizal
lukrizal / nginx.conf
Last active February 28, 2018 01:52
user vagrant;
worker_processes 2;
pid /run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
@lukrizal
lukrizal / chrome.sh
Last active August 29, 2015 14:08
Ubuntu Laravel
#!/bin/bash
mkdir -p ~/Desktop/temp
cd ~/Desktop/temp
sudo apt-get install -y libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -y chromium-browser
<table class="table table-curved table-bordered">
<thead>
<tr>
<th style="width:20%;"><h5 class="text">Product</h5></th>
<th style="width:25%;"><h5 class="text">Order Details</h5></th>
<th style="width:20%;"><h5 class="text">Data</h5></th>
<th style="width:15%;"><h5 class="text">Shipping Date</h5></th>
<th style="width:20%;"><h5 class="text">Price</h5></th>
</tr>
</thead>
@lukrizal
lukrizal / config.json
Created November 16, 2014 02:26
Bootstrap 3 - Non Responsive
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@lukrizal
lukrizal / regex.js
Created November 17, 2014 07:17
Some useful regex
dateRegEx = /[0-9]{4}-(1[0-2]|0?[0-9])-(3[0-1]|2[0-9]|0?[0-9])$/;
timeRegEx = {
'12Hour': /[0-1]?[0-9]:[0-5][0-9]\W?[a|p]m/
};
@lukrizal
lukrizal / configure.txt
Last active August 29, 2015 14:09
php 5.4 configuration switches
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-sockets --with-kerberos --enable-shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-mhash --enable-fpm --libdir=/usr/lib64/php --without-
#!/bin/bash
# Install script for LEMP Web Server on CENTOS 6.5 by Majid Arif Siddiqui
# Init
echo "Initializing..."
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install screen
@lukrizal
lukrizal / .htaccess
Last active August 29, 2015 14:13
Left and Right bash prompt, proper htaccess redirection for non-ssl and non-ww, and nginx ssl
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect all non-ssl to ssl.
RewriteCond %{HTTPS} !on
@lukrizal
lukrizal / triangle-border.html
Last active August 29, 2015 14:14
css triangle - border
<style type="text/css">
.tri-down {
/* Styling block element, not required */
position: relative;
margin-bottom: 2em;
padding: 1em;
border-bottom: 1px solid #999;
background: #f3f3f3;
}
@lukrizal
lukrizal / bakery.svg
Created February 7, 2015 01:24
sample svg templates
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.