p/f expr: evaluate & Print expr, where
-
f is the display format,
-
expr is the expression to evaluate.
version: '2.1' | |
services: | |
db: | |
image: postgres:9.6.1 | |
volumes: | |
- db:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_DB=sampledb | |
- POSTGRES_USER=sampleuser |
#!/bin/bash | |
# install_kakaotalk.sh: Installs KakaoTalk using wine and winetricks | |
# Created at 2019-05-14 by Frank Yang (puilp0502@gmail.com) | |
# Tested on Ubuntu 18.04 (bionic beaver) | |
# Ubuntu older than 16.04, or any other distribution is not supported | |
export WINEPREFIX=~/.kakao_a | |
export WINEARCH=win32 | |
source /etc/os-release |
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
from urllib import parse | |
import pprint | |
import logging |
#!/bin/sh | |
REPO_URI="https://github.com/puilp0502/react-ts-boilerplate" | |
mkdir "$1" 2> /dev/null | |
VALID_DIRNAME=$? | |
if [ 0 -eq $VALID_DIRNAME ]; then | |
rmdir "$1" | |
else | |
echo "Invalid target directory: " "$1" |
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x700000068}]}' |