- 경사스러운 일입니다. 이제 이 곳에 달리는 댓글을 막을 수 있어 그리 하게 되었습니다. 그래도 이전에 달렸던 댓글들은 아무래도 볼 수 있는 다른 방법이 인터넷 상에 존재하긴 하는 모양입니다.
…
(U+2026),⋯
(U+22EF),⋮
(U+22EE)는 모두.
(U+002E)가 3번 연속으로 나열된 것과 같은 것으로 봅니다.- "한글 음절 문자"는 가(U+AC00) 이상 힣(U+D7A3) 이하의 유니코드 문자들을 의미합니다.
# Requies JSON as the output format and "jq" commandline tool | |
# If task runs successfuly, exits 0 | |
run_result=$(aws ecs run-task \ | |
--cluster ${CLUSTER} \ | |
--task-definition ${TASK_DEFINITION} \ | |
--launch-type EC2 \ | |
--overrides "${OVERRIDES}") | |
echo ${run_result} | |
container_arn=$(echo $run_result | jq -r '.tasks[0].taskArn') | |
aws ecs wait tasks-stopped \ |
…
(U+2026), ⋯
(U+22EF), ⋮
(U+22EE)는 모두 .
(U+002E)가 3번 연속으로 나열된 것과 같은 것으로 봅니다.서비스를 운영할 때 admin tool은 필수입니다. 운영진은 사용자의 개인정보에 접근하거나 사용자의 요청에 따른 수정, 환불과 같은 이슈를 해결해야 합니다. 개발자에게 요청하여 수동으로 처리하는 경우가 많은가요? 개발자의 시간과 집중력은 소중하기에 수동으로 처리해야 하는 일은 최소로 줄여야 합니다.
그렇다면 운영진이 중요한 정보에 접근하거나 수정하는 것을 어떻게 기록할까요? 이럴 경우 저는 쉽고 빠르게 적용 가능한 audit log를 사용합니다. audit log에 기록하는 내용:
require 'socket' | |
## | |
# Pings a minecraft server and returns motd and playercount. | |
# Works with ruby >=1.9.3/2.0.0 | |
# | |
# More information and sample code here: | |
# http://wiki.vg/Server_List_Ping | |
## | |
class MinecraftPing |
require 'socket' | |
require 'timeout' | |
class MCQuery | |
MAGIC_PREFIX = "\xFE\xFD" | |
PACKET_TYPE_CHALLENGE = "\x09" | |
PACKET_TYPE_QUERY = "\x00" | |
ID = "\x00\x00\x00\x00" | |
DEFAULTS = { | |
host: "localhost", |
# | |
# Tested on 1.9.2-p290, Written by Miles Smith (WedTM) | |
# | |
require 'socket' | |
class MCQuery | |
MAGIC_PREFIX = "\xFE\xFD" | |
PACKET_TYPE_CHALLENGE = "\x09" | |
PACKET_TYPE_QUERY = "\x00" |
By default, Rails applications build URLs based on the primary key -- the id
column from the database. Imagine we have a Person
model and associated controller. We have a person record for Bob Martin
that has id
number 6
. The URL for his show page would be:
/people/6
But, for aesthetic or SEO purposes, we want Bob's name in the URL. The last segment, the 6
here, is called the "slug". Let's look at a few ways to implement better slugs.