Skip to content

Instantly share code, notes, and snippets.

View nafiesl's full-sized avatar

Nafies Luthfi nafiesl

View GitHub Profile
@nafiesl
nafiesl / Preferences.sublime-settings
Created January 20, 2017 00:28
My Sublime User Preferences on 2017-01-20.08.27
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/User/Facebook.tmTheme",

My Development Setup

OS : Linux mint 17.3

Local Servers

  • Apache
  • Mariadb
  • Php 7.0

Dev Tools

@nafiesl
nafiesl / composer.lock
Created July 11, 2017 10:25
example nesbotcarbon 1.20.0
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "fd10a4c22ee66682e2b6fb719cba3ead",
"packages": [
{
"name": "nesbot/carbon",
@nafiesl
nafiesl / controller-01.php
Last active July 20, 2017 10:19
Laravel Log Viewer
<?php
// app/Http/Controllers/LogFilesController.php
namespace App\Http\Controllers;
class LogFilesController extends Controller
{
public function index()
{
@nafiesl
nafiesl / Preferences.sublime-settings
Created November 5, 2017 06:02
My sublime-text user preferences (ubuntu 16.04)
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/User/Facebook-1.tmTheme",
@nafiesl
nafiesl / Default (Linux).sublime-keymap
Last active November 5, 2017 06:04
My sublime-text custom keymap
[
{ "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" },
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" },
{ "keys": ["ctrl+shift+down"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+up"], "command": "duplicate_line" },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["shift+alt+up"], "command": "swap_line_up" },
{ "keys": ["shift+alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+shift+tab"], "command": "reindent", "args": {"single_line": false} },
@nafiesl
nafiesl / UnitTypeController.php
Last active November 10, 2018 10:21
Laravel Select Dropdown Example
<?php
namespace App\Http\Controllers;
use App\UnitType;
use App\UnitModel;
class UnitTypeController extends Controller
{
public function edit(UnitType $unitType)
@nafiesl
nafiesl / tahapan-pembuatan-website.md
Created June 30, 2018 01:27
Tahapan Pembuatan Website

Tahapan Pembuatan Website

Dalam mengerjakan suatu proyek website atau aplikasi berbasis web, kami (JasaWebsiteBanjarmasin.com) bagi dalam 4 tahap pengerjaan sejak persiapan hingga selesai. Ke empat tahap tersebut adalah:

1. Analisis

Dalam tahap ini, kami mempersiapkan pengerjaan proyek dengan terlebih dahulu melakukan inteview kepada klien. Yaitu untuk mendiskusikan apa saja hal atau fitur sistem yang ingin dituangkan ke dalam website atau aplikasi web yang ingin dibuat.

Kemudian hasil inteview tersebut kami buat menjadi sebuah konsep tertulis, untuk di-review atau dianalisis oleh klien. Analisis ini diperlukan sebagai feedback dari klien, apakah konsep yang kami buat sudah sesuai dengan harapan dan keinginan klien.

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@nafiesl
nafiesl / sublime-keymap
Created May 7, 2019 13:43
Sublime PHP Keymap
[
// { "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" },
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" },
{ "keys": ["ctrl+shift+up"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+down"], "command": "duplicate_line" },
// ctrl+alt+up and ctrl+alt+down are conflicted with window manager keyboard shortcuts
// We need to disable Window Manager -> Keyboard: Upper and Bottom workspace shortcuts
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["alt+shift+up"], "command": "swap_line_up" },