https://github.com/algas/whalebrew-packages
You need to install Docker first. https://www.docker.com/docker-mac
https://github.com/algas/whalebrew-packages
You need to install Docker first. https://www.docker.com/docker-mac
#!/bin/bash | |
docker images | awk '$1 ~ "<none>" {print $3}' | while read f; do docker rmi $f; done |
## 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 |
{ | |
"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, |
# /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 | |
# |
全面的に書き直した。
#!/usr/bin/env python | |
import sys | |
import json | |
class ColumnInfo(object): | |
data_types = { | |
# 'string' | |
'char':'string', | |
'character':'string', |
build-essential | |
zlib1g-dev | |
libssl-dev | |
libbz2-dev | |
libreadline-dev | |
libsqlite3-dev | |
llvm |
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) |