Skip to content

Instantly share code, notes, and snippets.

View jihchi's full-sized avatar
🦀

Jihchi Lee jihchi

🦀
View GitHub Profile
FROM <private repo>
MAINTAINER Ross Kukulinski "ross@speakit.io"
ADD nginx.toml /etc/confd/conf.d/nginx.toml
ADD templates/nginx.tmpl /etc/confd/templates/nginx.tmpl
ADD confd-watch /usr/local/bin/confd-watch
RUN chmod +x /usr/local/bin/confd-watch
@jihchi
jihchi / install_bash-It_default.sh
Last active September 5, 2015 03:56
My Bash It Default Installation
#!/bin/bash
# bash-it
BASH_IT=~/.bash_it
if [ ! -d "$BASH_IT" ]; then
git clone --depth=1 https://github.com/Bash-it/bash-it.git $BASH_IT
$BASH_IT/install.sh
fi
source ~/.bashrc

Getting Started

git clone https://gist.github.com/841ccaccb8efcdafa3b7.git playground
cd playground
npm install
npm start

Then point your browser at http://localhost:3000

@jihchi
jihchi / install.sh
Last active May 27, 2016 14:37
Docker Engine Installation Script for Ubuntu 14.04 (LTS)
#!/bin/bash
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo touch /etc/apt/sources.list.d/docker.list
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list'
sudo apt-get update
sudo apt-get install -y docker-engine
sudo service docker start
sudo usermod -aG docker $(whoami)
@jihchi
jihchi / deploy_keys.sh
Last active January 20, 2024 13:34
Add new deployment key to BitBucket via API
#!/usr/bin/env bash
set -e
KEY=public-key
LABEL=key123
###
# Method 1. Authenticate by your account & password
###
AUTH=user:password
@jihchi
jihchi / README.md
Last active September 7, 2016 10:43
Elm with Sublimt Text 3

Elm Language Support

  1. Install Elm Language Support

elm-oracle

  1. npm install -g elm-oracle

elm-format

  1. Install elm-format
  2. To enable automatic formatting on every save, Go to Preferences -> Package Settings -> Elm Language Support -> User and add this setting: "elm_format_on_save": true

Keybase proof

I hereby claim:

  • I am jihchi on github.
  • I am jihchi (https://keybase.io/jihchi) on keybase.
  • I have a public key ASDFHIEKvXoeDQ-t-apVDPO7quWLWAQ5XuemgoZsgN9Powo

To claim this, I am signing this object:

@jihchi
jihchi / vim.sh
Created November 28, 2017 02:51
Compiling vim on Ubuntu 16 with LUA-support
# Remove previous installations
sudo apt-get remove vim vim-runtime vim-tiny vim-common
# Install dependencies
sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev
# Fix liblua paths
sudo ln -s /usr/include/lua5.2 /usr/include/lua
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so
@jihchi
jihchi / WithTestId.re
Last active February 8, 2020 06:32
Wordaround -- Allow data-* in DOM elements -- data-test-id for example -- Reason React
[@react.component]
let make = (~id: string, ~children) =>
ReasonReact.cloneElement(children, ~props={"data-test-id": id}, [||]);