Skip to content

Instantly share code, notes, and snippets.

View goeroeku's full-sized avatar

Agus Indra Cahaya goeroeku

View GitHub Profile
@goeroeku
goeroeku / chamilo.conf.md
Last active March 19, 2021 03:32 — forked from fer-ri/block.conf
Nginx Config Sites Available With Redirect Non Www To Www

untuk domain web chamilo

edit settingan domain.conf seperti script berikut dan jadikan komentar baris include snippets/php.conf:

location @rewrite{
    rewrite ^/courses/([^/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
    try_files $uri /index.php;
@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 / 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 _;

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 / plugin.md
Last active February 27, 2018 17:42
Sublime - setting with material theme

list plugin sublime

  1. Package Control
https://packagecontrol.io/installation
  1. Emmet
  2. Advanced New File
  3. SideBarEnhancements
  4. DocBlockr
  5. SublimeCodeIntel
@goeroeku
goeroeku / create-uuid
Created November 2, 2016 08:03
create type uuid
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
@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'));