Skip to content

Instantly share code, notes, and snippets.

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

purwandi purwandi

🏠
Working from home
View GitHub Profile
@purwandi
purwandi / Server.md
Created September 24, 2012 07:43
Server Spek

SPEK SERVER DL580G7 4U

=========================

1. Jadwal masuk server (Hari/Tanggal/Waktu)

Hari Rabu, tanggal 26 September 2012 pukul 06.30 WIB

2. Spec server

  1. Prosesor 4 buah @Intel® Xeon® E7-4807 (6 core, 1.86 GHz, 18MB, 95W)
@purwandi
purwandi / README.md
Created October 4, 2012 07:38 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@purwandi
purwandi / app-config-blade.php
Created October 22, 2012 04:26 — forked from dshoreman/app-config-blade.php
Custom loader class for CodeIgniter that implements Laravel's Blade templating engine
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['views_path'] = APPPATH . 'views/blade/';
$config['cache_path'] = APPPATH . 'cache/blade/';
@purwandi
purwandi / Sublime.sublime-settings
Created November 18, 2012 13:09
My Sublime Setting
{
"color_scheme": "Packages/Theme - Daylerees/Iceberg.tmTheme",
"font_face": "Consolas",
"font_size": 11,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"theme": "Soda Light.sublime-theme",
@purwandi
purwandi / deploy.rb
Created November 19, 2012 13:09
Laravel Capistrano Receipes
set :application, "App Name" # Your app name
set :repository, "git@github.com:xxxxx/xxx.git" # Your git repository
set :document_root, "/home/user/www/awesome_app"
set :deploy_via, :remote_cache
# SSH Settings
set :user, "user_ssh"
set :password, "password_ssh"
set :use_sudo, false
@purwandi
purwandi / sticky.css
Created November 23, 2012 09:17 — forked from mokagio/sticky.css
Twitter Bootstrap + Sticky Footer + Fixed Nav Bar
html, body, .container, .content {
height: 100%;
}
.container, .content {
position: relative;
}
.proper-content {
padding-top: 40px; /* >= navbar height */
@purwandi
purwandi / 01-Nginx-Naxsi-Core.md
Last active January 4, 2021 12:10
Install nginx, naxsi core and naxsi ui

Install Some Dependencies

apt-get install build-essential bzip2 libpcre3-dev libssl-dev mysql-server daemon libgeoip-dev

Installing Nginx with Naxsi Core

Download Nginx, Naxsi Core dan Naxsi UI. Saya berasumsi tempat download berada di /home/compile

@purwandi
purwandi / Sample.md
Last active December 12, 2015 04:18

Skenario Pertama

Field

id
name
created_at
@purwandi
purwandi / l4project.sh
Last active December 17, 2015 07:59 — forked from akuzemchak/l4project.sh
# Initial setup
git clone -o framework -b master https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/develop
# Fix merge conflicts if any and commit

Install Git

Parepare some additional software

apt-get update

python g++ make build-essential bzip2 libpcre3-dev libssl-dev daemon libgeoip-dev libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essential