Skip to content

Instantly share code, notes, and snippets.

View anarcher's full-sized avatar
😞

myoung-soo,shin anarcher

😞
View GitHub Profile
@anarcher
anarcher / README.md
Last active October 16, 2019 09:35 — forked from skwashd/README.md
Copy AWS SSM Parameter Store Path

This Python (3.6+) script is for migrating Amazon AWS System Manager (SSM) Parameter Store keys from one path to another.

Quick Start

To install the script do the following:

  • Configure your AWS credentials
  • Grab the code from this gist
  • Make it executable (chmod +x /path/to/copy-ssm-ps-path.py)
  • pip install boto3 (if you don't have it installed already)
@anarcher
anarcher / gist:b51df945bed49c88877f2ae50f491b1b
Last active July 21, 2017 05:18
2017-07 codeport meeting poll

[![](https:/

@anarcher
anarcher / certgen.rb
Last active August 29, 2015 14:23 — forked from sheerun/certgen.rb
# Generates necessary certificates to ~/.docker
#
# Usage:
# bundle install
# ruby certgen.rb <domain>
require 'certificate_authority'
require 'fileutils'
if ARGV.empty?
  • 💄 :lipstick: when improving the format/structure of the code
  • 🚀 :rocket: when improving performance
  • ✏️ :pencil2: when writing docs
  • 💡 :bulb: new idea
  • 🚧 :construction: work in progress
  • :heavy_plus_sign: when adding feature
  • :heavy_minus_sign: when removing feature
  • 🔈 :speaker: when adding logging
  • 🔇 :mute: when reducing logging
  • 🐛 :bug: when fixing a bug
@anarcher
anarcher / Dockerfile
Created August 28, 2014 08:46
hubot dockerfile
FROM dockerfile/nodejs
# Install Redis.
RUN \
cd /tmp && \
wget http://download.redis.io/redis-stable.tar.gz && \
tar xvzf redis-stable.tar.gz && \
cd redis-stable && \
make && \
make install && \
<% if node['apache']['version'] == '2.4' -%>
# Include generic snippets of statements
IncludeOptional <%= node['apache']['dir'] %>/conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional <%= node['apache']['dir'] %>/sites-enabled/*.conf
<% else -%>
# Include generic snippets of statements
Include <%= node['apache']['dir'] %>/conf-enabled/*.conf
@anarcher
anarcher / feed_pickle.py
Created July 27, 2014 11:38
feed graphite pickle fomat
import argparse
import socket
import time
import pickle
import struct
CARBON_SERVER = '0.0.0.0'
CARBON_PORT = 2004

Keybase proof

I hereby claim:

  • I am anarcher on github.
  • I am anarch (https://keybase.io/anarch) on keybase.
  • I have a public key whose fingerprint is 713A E287 7B91 43B8 4090 39FC 1BE9 6403 EBBD 7E50

To claim this, I am signing this object:

@anarcher
anarcher / datomic.md
Last active August 29, 2015 13:57
Datomic

기존의 데이터베이스는 Client/Server구조를 기본적으로 가진다. [[Scalability]]을 위해 Server을 Clustering을 하거나 Sharing,Replicating을 하게 된다. 그리고 Client(Application)에서 일종의 Caching을 구성하게 된다.

[[Datomic]]은 이러한 전통적인 데이터베이스의 구성요소를 해체(Deconstruct)해서 다음과 같은 구조로 각 요소에 대한 좀 더 효율성(Efficiency)과 확장성([[Scalability]])을 구성할수 있도록 한다.

  • Peers : LiveIndex,Local Cache,Query (쿼리 할 때 Live Index,Local cache를 참고한다 (모든 데이터에 대한 캐쉬가 각 Peer에 존재하는 듯 하다(기본적으로))
  • Transactor : 각 Peer의 Writes에 대한 모든 Transaction을 담당한다.
  • Storage services : 영속적인 스토리지 서비스에 대한 인터페이스
  • Cache : Optional
@anarcher
anarcher / iam.json
Last active January 3, 2016 10:19
nginx.logster.attrs.json
{
"logster": {
"nginx": {
"group": "nginx",
"parser": "SampleLogster",
"logfile": "/var/log/nginx/access.log",
"output": "ganglia"
},
"iam": {
"output": "ganglia",