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 / Sample.md
Last active December 12, 2015 04:18

Skenario Pertama

Field

id
name
created_at
@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 / 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 / deploy.rb
Created November 19, 2012 13:09
Laravel Capistrano Receipes
set :application, "App Name" # Your app name
set :repository, "[email protected]: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 / 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 / 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 / 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 / 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 / composer.json
Created September 21, 2012 07:11 — forked from philsturgeon/composer.json
PHP Image Manipulation
{
"require": {
"illuminate/foundation": ">=1.0.0",
"illuminate/auth": ">=1.0.0",
"illuminate/database": ">=1.0.0",
"illuminate/view": ">=1.0.0",
"amazonwebservices/aws-sdk-for-php": "1.5.*",
"codeguy/upload": "*",
"sybio/image-workshop" : "*",
@purwandi
purwandi / remote-typeahead.js
Created September 6, 2012 02:35 — forked from geuis/remote-typeahead.js
Remote data querying for Twitter Bootstrap 2.0 Typeahead without modifications
<script>
// Charles Lawrence - Feb 16, 2012. Free to use and modify. Please attribute back to @geuis if you find this useful
// Twitter Bootstrap Typeahead doesn't support remote data querying. This is an expected feature in the future. In the meantime, others have submitted patches to the core bootstrap component that allow it.
// The following will allow remote autocompletes *without* modifying any officially released core code.
// If others find ways to improve this, please share.
var autocomplete = $('#searchinput').typeahead()
.on('keyup', function(ev){
ev.stopPropagation();