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 / force-http.tpl
Created March 25, 2024 21:23 — forked from wodCZ/force-http.tpl
vestacp cert letsencrypt
server {
listen %ip%:%web_port%;
server_name %domain_idn% %alias_idn%;
location / {
rewrite ^(.*) https://%domain_idn%$1 permanent;
}
}
@SunDi3yansyah
SunDi3yansyah / commit.md
Created July 31, 2021 15:49 — forked from abravalheri/commit.md
RFC: Git Commit Message Guidelines

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
@SunDi3yansyah
SunDi3yansyah / README.md
Created February 7, 2021 07:10
Serving Static Content

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

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

Cross-origin resource sharing (CORS) for AWS S3

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
 "GET",

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
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
1C
1.PAK
2.PAK
20-GATE
3APL
473L Query
51-FORTH
4D
Kez Barnes Basic