全面的に書き直した。
- git clone git@github.com:dokku-alt/dokku-alt.git
- cd dokku-alt
- vagrant up
- vagrant ssh default
- wget https://github.com/(yourname).keys
- cat (yourname).keys | while read f; do echo $f | dokku access:add; done
import subprocess | |
import collections | |
CommandResponse = collections.namedtuple('CommandResponse', ['code', 'out', 'err']) | |
def run_command(cmd): | |
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
sout, serr = p.communicate() | |
return CommandResponse(p.returncode, sout, serr) |
build-essential | |
zlib1g-dev | |
libssl-dev | |
libbz2-dev | |
libreadline-dev | |
libsqlite3-dev | |
llvm |
#!/usr/bin/env python | |
import sys | |
import json | |
class ColumnInfo(object): | |
data_types = { | |
# 'string' | |
'char':'string', | |
'character':'string', |
全面的に書き直した。
# /Users/YourName/.stack/global-project/stack.yaml | |
# | |
# This is the implicit global project's config file, which is only used when | |
# 'stack' is run outside of a real project. Settings here do _not_ act as | |
# defaults for all projects. To change stack's default settings, edit | |
# '/Users/YourName/.stack/config.yaml' instead. | |
# | |
# For more information about stack's configuration, see | |
# https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md | |
# |
{ | |
"enable_ghc_mod": true, | |
"auto_complete_imports": true, | |
"auto_complete_language_pragmas": true, | |
"enable_auto_build": true, | |
"auto_run_tests": true, | |
"enable_auto_check": true, | |
"enable_auto_lint": true, | |
"auto_build_mode": "normal", | |
"show_output_window": true, |
## Keybind | |
unbind-key C-b | |
set-option -g prefix C-t | |
bind-key C-t send-prefix | |
## Window | |
set-window-option -g mode-keys vi | |
## Terminal | |
set-option -g default-terminal "screen-256color" | |
set-option -g history-limit 10000 | |
set-option -g base-index 1 |
#!/bin/bash | |
docker images | awk '$1 ~ "<none>" {print $3}' | while read f; do docker rmi $f; done |
https://github.com/algas/whalebrew-packages
You need to install Docker first. https://www.docker.com/docker-mac
FROM java:8 | |
ARG EMBULK_VERSION=0.8.18 | |
RUN curl -L https://bintray.com/artifact/download/embulk/maven/embulk-${EMBULK_VERSION}.jar -o /opt/embulk.jar | |
WORKDIR /work | |
ENTRYPOINT ["java", "-jar", "/opt/embulk.jar"] | |
CMD ["--help"] |