Skip to content

Instantly share code, notes, and snippets.

View nacyot's full-sized avatar
🧶
The Science of Hitting

Daegwon Nacyot Kim nacyot

🧶
The Science of Hitting
View GitHub Profile
@mbentley
mbentley / gist:008361909431d6fb39d7
Last active August 29, 2015 14:23
docker + libnetwork (overlay) quickstart
# install the kernel from utopic (on both nodes)
apt-get install -y linux-image-generic-lts-utopic
reboot
# install experimental docker release (on both nodes)
wget -qO- https://experimental.docker.com/ | sh
# install consul (on both nodes)
curl -OL https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip
apt-get install -y unzip
@botchagalupe
botchagalupe / gist:3999b740bb9235ab7722
Last active August 29, 2015 14:23
Getting Started with LIbnetwork

Getting Started with Libnetwork

Install

# Install Docker and Consul on both hosts
 
sudo apt-get install -y unzip wget curl

wget -qO- https://experimental.docker.com/ | sh
@garthk
garthk / profile
Created June 21, 2015 23:51
boot2docker 1.7.0 cert fix
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1
@voluntas
voluntas / shiguredo_product_ strategy.rst
Last active April 16, 2024 13:24
時雨堂を支える製品戦略
@if1live
if1live / my_strcmp.cpp
Created April 20, 2015 11:47
custom strcmp
#include <cstdio>
#include <cstring>
#include <cassert>
typedef enum {
MyOrderedAscending = -1,
MyOrderSame,
MyOrderedDescending
} MyComparisonResult;
@joker1007
joker1007 / ginzarb_21.md
Last active April 14, 2021 06:41
Ginza.rb 21回の発表資料。rails_adminのつらみとオススメgem達。

rails_adminのつらみとオススメGemについて

rails_adminのつらみ

カスタマイズできるようで出来ない

レコード件数が一定以上になると使えない機能

  • ダッシュボード
  • 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
@Luzifer
Luzifer / README.md
Last active August 25, 2019 12:34
Strategies for persistent data storage on CoreOS-cluster

Persistent data storage on CoreOS-cluster

Storing the data on the host machine

Data directories are created in /home/coreos and mounted into the container using volume cli options of docker run. All data the container writes is stored on the host and as long as the host persists safe against container restarts / recreates.

  • Pro
    • No effort, just create the directories and mount them into the container
  • Contra
  • Container is bound to host (unable to failover)
@jaehue
jaehue / sharedMap.go
Last active October 15, 2023 21:08
Built-in map doesn't support concurrent. This is concurrent map using channel, without mutex.
package main
import "fmt"
type sharedMap struct {
m map[string]interface{}
c chan command
}
type command struct {
@jkereako
jkereako / ios-developer-reading-list.md
Last active January 15, 2024 14:23
This is a list of documents I have read and plan to read. Speaking from experience, if you take the time to pour over these documents and take notes on topics of interest, you will greatly improve your skill.

iOS developer reading list

The best way to learn and master iOS development is to read the official documentation. It can be boring but you can trust its accuracy and the information will be presented without opinion.

Read documents in order where indicated.

Topics