Skip to content

Instantly share code, notes, and snippets.

@jomno
jomno / toss-frontend-rules.mdc
Created May 15, 2025 15:45 — forked from toy-crane/toss-frontend-rules.mdc
토스 프론트엔드 가이드라인 기반으로 만든 Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@jomno
jomno / 1. ELK.install
Created March 18, 2022 04:45 — forked from PavloBezpalov/1. ELK.install
ELK Stack with Rails (Elasticsearch, Logstash, Kibana) on Ubuntu VPS
INSTALL JAVA
$ sudo apt-get update && sudo apt-get install default-jre
INSTALL ELASTIC SEARCH https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html
$ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
$ echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
$ sudo apt-get update && sudo apt-get install elasticsearch
$ sudo update-rc.d elasticsearch defaults 95 10
$ sudo service elasticsearch restart
$ sudo service elasticsearch status
@jomno
jomno / How to use
Last active May 10, 2021 13:42 — forked from armandfardeau/How to use
Register sidekiq as a service
which bundle
# /home/my_app/.rbenv/shims/bundle
sudo vi /etc/systemd/system/sidekiq.service
sudo systemctl start sidekiq.service
sudo systemctl enable sidekiq.service
sudo systemctl status sidekiq.service
sudo service sidekiq status
# sudo systemctl daemon-reload
@jomno
jomno / axios.refresh_token.1.js
Created February 7, 2021 10:00 — forked from Godofbrowser/axios.refresh_token.1.js
Axios interceptor for refresh token when you have multiple parallel requests. Demo implementation: https://github.com/Godofbrowser/axios-refresh-multiple-request
// for multiple requests
let isRefreshing = false;
let failedQueue = [];
const processQueue = (error, token = null) => {
failedQueue.forEach(prom => {
if (error) {
prom.reject(error);
} else {
prom.resolve(token);
@jomno
jomno / notion2blog.js
Created May 8, 2020 04:51 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@jomno
jomno / rails_generator_cheat_sheet.md
Created September 30, 2019 17:03 — forked from cdesch/rails_generator_cheat_sheet.md
Rails Generator CheatSheet

Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.

Command Line Generator Info

Reference

You can get all of this information on the command line.

rails generate with no generator name will output a list of all available generators and some information about global options. rails generate GENERATOR --help will list the options that can be passed to the specified generator.

@jomno
jomno / gist:f4fc2ffdc82c9cf2911b803520dd9dad
Created April 16, 2019 10:39 — forked from RiANOl/gist:1077760
AES128 / AES256 CBC with PKCS7Padding in Ruby
require "openssl"
require "digest"
def aes128_cbc_encrypt(key, data, iv)
key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize)
iv = Digest::MD5.digest(iv) if(iv.kind_of?(String) && 16 != iv.bytesize)
aes = OpenSSL::Cipher.new('AES-128-CBC')
aes.encrypt
aes.key = key
aes.iv = iv

이슈 트래커 사용 원칙

이 문서는 소규모 소프트웨어 개발 프로젝트 준비단계에서 개발자가 깃헙의 이슈 트래커를 이용해서 작업을 정의할 때 최소한 고려해야 할 사항을 기술한다. 버그나 이슈를 추적할 때의 정책이 아니라 작업을 미리 정의하고 관리하고자 할 때의 정책이라는 점을 미리 밝힌다.

마일스톤

개발을 하든 연구활동을 하든, 전략을 가지고 단계를 정의하여 이를 시스템에 반영하라. 깃헙은 마일스톤을, 지라Jira는 버전을 만들어 활용하라.

마일스톤milestone은 미묘한 차이로 다양하게 불린다. 로드맵 혹은 단계phase로 불리기도 하고, 지라에서는 버전version으로 불리며, 깃랩/깃헙 이슈 트래커에서는 마일스톤으로 불린다.

@jomno
jomno / 2013-03-04-ruby-trivias-you-should-know-4.md
Created March 25, 2019 03:38 — forked from nacyot/2013-03-04-ruby-trivias-you-should-know-4.md
알아두면 도움이 되는 55가지 루비 기법
@jomno
jomno / active_admin.js
Created March 15, 2019 06:23 — forked from grin/active_admin.js
Inline Editing in ActiveAdmin with Best In Place Gem
//= require jquery
//= require best_in_place
//= require jquery.purr
//= require active_admin/base
$(document).ready(function() {
$(".best_in_place").best_in_place()
$('.best_in_place').bind("ajax:success", function () {$(this).closest('tr').effect('highlight'); });
$(document).on('best_in_place:error', function(event, request, error) {