Skip to content

Instantly share code, notes, and snippets.

View SunDi3yansyah's full-sized avatar
Verified

Cahyadi Triyansyah SunDi3yansyah

Verified
View GitHub Profile
@SunDi3yansyah
SunDi3yansyah / commit.md
Created July 31, 2021 15:49 — forked from abravalheri/commit.md
RFC: Git Commit Message Guidelines
View commit.md

Commit Message Guidelines

In the last few years, the number of programmers concerned about writing structured commit messages have dramatically grown. As exposed by Tim Pope in article readable commit messages are easy to follow when looking through the project history. Moreover the AngularJS contributing guides introduced conventions that can be used by automation tools to automatically generate useful documentation, or by developers during debugging process.

This document borrows some concepts, conventions and even text mainly from these two sources, extending them in order to provide a sensible guideline for writing commit messages.

@SunDi3yansyah
SunDi3yansyah / upgrade-postgresql-service-centos-7.md
Created February 23, 2021 16:20 — forked from ShvaykaD/upgrade-postgresql-service-centos-7.md
Upgrading PostgreSQL service from 9.x or 10.x to 11 version on CentOS 7
View upgrade-postgresql-service-centos-7.md
@SunDi3yansyah
SunDi3yansyah / README.md
Created February 7, 2021 07:10
Serving Static Content
View README.md

Serving Static Content

location ~ \.(jpg|jpeg|gif|png|css|js|ico|xml|txt|gz)$ {
  expires 30d;
  log_not_found off;
  access_log off;
}
@SunDi3yansyah
SunDi3yansyah / README.md
Created February 6, 2021 16:31
Set BUNDLE_PATH / BUNDLE_SYSTEM on system
View README.md

Set BUNDLE_PATH / BUNDLE_SYSTEM on the system, not on the project

bundle config set system 'true'
@SunDi3yansyah
SunDi3yansyah / README.md
Created January 27, 2021 07:28
Cross-origin resource sharing (CORS) for AWS S3
View README.md

Cross-origin resource sharing (CORS) for AWS S3

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
 "GET",
View gist:56a87c0246847d916b716aa32e93bd67

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@SunDi3yansyah
SunDi3yansyah / chat_rooms.coffee
Created September 7, 2020 15:06 — forked from floodico/chat_rooms.coffee
user is typing feature
View chat_rooms.coffee
jQuery(document).on 'turbolinks:load', ->
u = $("#current_user").val()
window.current_user = JSON.parse(u)
messages = $('#messages')
user_is_typing = $('#user_is_typing')
App.global_chat = App.cable.subscriptions.create {
channel: "ChatRoomsChannel"
chat_room_id: messages.data('chat-room-id')
},
@SunDi3yansyah
SunDi3yansyah / README.md
Created July 24, 2020 12:28
List Programming Language
View README.md
1C
1.PAK
2.PAK
20-GATE
3APL
473L Query
51-FORTH
4D
Kez Barnes Basic
@SunDi3yansyah
SunDi3yansyah / README.md
Created June 6, 2020 12:17
[GIT PULL] Pulling without specifying how to reconcile divergent branches is discouraged
View README.md

warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one of the following commands sometime before your next pull:

git config pull.rebase false  # merge (the default strategy)
git config pull.rebase true   # rebase
git config pull.ff only       # fast-forward only