Skip to content

Instantly share code, notes, and snippets.

View puilp0502's full-sized avatar

Frank Yang puilp0502

View GitHub Profile
@puilp0502
puilp0502 / docker-compose.yml
Created April 3, 2019 05:56
도커 스터디
version: '2.1'
services:
db:
image: postgres:9.6.1
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=sampledb
- POSTGRES_USER=sampleuser
@puilp0502
puilp0502 / install_kakaotalk.sh
Created May 13, 2019 18:49
우분투에서 Wine과 Winetricks 사용해서 카카오톡 설치
#!/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
@puilp0502
puilp0502 / gdb-cheatsheet.md
Created January 21, 2020 18:41
GDB Cheatsheet

GDB Cheatsheet

Data Inspection

p/f expr: evaluate & Print expr, where

  • f is the display format,

  • expr is the expression to evaluate.

@puilp0502
puilp0502 / crta.sh
Last active September 2, 2020 17:13
Initialize new react-ts-boilerplate template
#!/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"
@puilp0502
puilp0502 / change-rightalt.sh
Last active March 15, 2021 07:06
Remapping keys without karabiner
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x700000068}]}'