Skip to content

Instantly share code, notes, and snippets.

View goeroeku's full-sized avatar

Agus Indra Cahaya goeroeku

View GitHub Profile

Editor

Recommended Editor:

From here on we'll use "edit" to denote the command that's meant to open the file in the editor. Replace "edit" with "subl" or "atom" as needed.

@goeroeku
goeroeku / README.md
Created November 1, 2016 12:12 — forked from fer-ri/README.md

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@goeroeku
goeroeku / Ubuntu - Disable the touchpad
Created November 2, 2016 00:35
Ubuntu - Disable the touchpad
# synclient TouchpadOff=1
ref :
http://askubuntu.com/questions/65951/how-to-disable-the-touchpad
@goeroeku
goeroeku / default
Created November 1, 2016 12:04 — forked from fer-ri/default
Default Nginx Conf Debian / Ubuntu
server {
listen 80;
root /home/nginx/domains/default/public_html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
@goeroeku
goeroeku / phpcs.sublime-settings
Created November 1, 2016 12:00 — forked from fer-ri/phpcs.sublime-settings
Setting that already complied with standard of Laravel and StyleCI. Demo https://github.com/ghprod/laravel-settings
{
// Do you want to run the phpcs checker?
"phpcs_sniffer_run": false,
// Execute the sniffer on file save
"phpcs_command_on_save": false,
"phpcs_executable_path": "/usr/local/bin/phpcs",
// Fix the issues on save
@goeroeku
goeroeku / create-uuid
Created November 2, 2016 08:03
create type uuid
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
@goeroeku
goeroeku / Uuid
Last active November 2, 2016 13:47
Laravel - library
# Uuid
### install
```
composer require "webpatser/laravel-uuid:2.*"
```
### add alias
Tambahkan pada app.php > alias
```
@goeroeku
goeroeku / default-timestamp
Last active November 2, 2016 14:12
Laravell - default timestamp
$table->timestamps()->default(DB::raw('CURRENT_TIMESTAMP'));
if fail, use :
$table->timestamp(’something_at')->default(DB::raw('CURRENT_TIMESTAMP'));
@goeroeku
goeroeku / Exception
Created November 3, 2016 03:07
Laravel
# Handle Error Laravel
### ReflectionException Class User does not exist
add to composer.json directory of class
```
"autoload": {
"classmap": [
"database",
"app/Library/",
"app/Models/",