start new:
tmux
start new with session name:
tmux new -s myname
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/tkim/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="agnoster-newline" |
pscp -load sessioname source [source...] [user@]host:target
Delete all docker
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)| FROM python:3.5-alpine | |
| RUN apk add --no-cache build-base libffi-dev postgresql-dev | |
| WORKDIR /code | |
| ADD ./requirements.txt /code/requirements.txt | |
| RUN pip install -r requirements.txt | |
| ADD . /code |
| events { | |
| } | |
| http { | |
| upstream certbot_upstream{ | |
| server certbot:80; | |
| } | |
| server { | |
| listen 80; |
| const root = {}; | |
| const visit = []; | |
| let vn = 0; | |
| function dfs(v) { | |
| Object.keys(v).forEach(function (k) { | |
| if (!visit[vn++]) { | |
| if (typeof(v[k]) === 'object') { | |
| console.log(k, typeof(k)); | |
| dfs(v[k]); |
| @space.route('/write', methods=['GET', 'POST']) | |
| @login_required | |
| @roles_required('member') | |
| def write(): | |
| form = BoardWriteForm() | |
| if not current_user.has_role('admin'): | |
| form.type_.choices = form.type_.choices[1:] | |
| if form.validate_on_submit(): |
| import json | |
| import time | |
| import os | |
| import requests | |
| import collection | |
| import logging | |
| import time | |
| from apscheduler.schedulers.blocking import BlockingScheduler |
| { | |
| "editor.tabSize": 2, | |
| "editor.insertSpaces": true, | |
| "editor.detectIndentation": false, | |
| "eslint.enable": true, | |
| "files.trimTrailingWhitespace": true, | |
| "files.exclude": { | |
| "**/.git": true, | |
| "**/.svn": true, | |
| "**/.DS_Store": true, |
| // http://eslint.org/docs/user-guide/configuring | |
| module.exports = { | |
| root: true, | |
| parserOptions: { | |
| parser: 'babel-eslint', | |
| sourceType: 'module' | |
| }, | |
| env: { | |
| browser: true, |