start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python3 | |
import boto3 | |
import requests | |
import tqdm | |
from urllib.parse import urlparse | |
def stream_to_s3( | |
source_url, | |
target_url, |
git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
Options included below:
docker-compose
brew
This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew
any longer. Instead consider adding a barebones docker-compose.yml
for each project and run docker-compose up
to start each project's mysql service.
# -*- coding: utf-8 -*- | |
from flask import request, Blueprint, jsonify, Response | |
from werkzeug.routing import Map, Rule | |
import json | |
import traceback | |
""" | |
# TODO: 함수명 중복을 피하기 위해 __v를 붙였는데 맘에 안듬.. | |
# TODO: 버전을 입력하지 않았을 때는 최신 버전으로.. |
[alias] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brD = branch -D | |
merged = branch --merged | |
st = status | |
aa = add -A . |
#!/usr/bin/env bash | |
# Source: https://gist.github.com/jordan-brough/48e2803c0ffa6dc2e0bd | |
# See also: https://stackoverflow.com/a/25095062/58876 | |
# Download this script as "git-recent" (no extension), chmod it to be executable and put it in your | |
# path somewhere (e.g. /usr/bin). You can then use it via `git recent` from inside any git repo. | |
# Examples: |