Skip to content

Instantly share code, notes, and snippets.

View ujuc's full-sized avatar
๐ŸŽ—๏ธ
doing!

sungjin ujuc

๐ŸŽ—๏ธ
doing!
View GitHub Profile
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active June 19, 2026 04:47
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@johngrib
johngrib / contribution.sh
Created December 31, 2018 14:58
Show github contribution graph on terminal
#! /usr/local/bin/bash
MYGITHUB=johngrib
RAW=/tmp/$MYGITHUB-github
TABLE=/tmp/$MYGITHUB-github-table
COLORS=/tmp/$MYGITHUB-github-colors
curl -s https://github.com/$MYGITHUB/ > $RAW
TITLE=`cat /tmp/johngrib-github | pcregrep -M '[0-9,]+ contributions\s*\n\s*in the last year'`
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active August 24, 2026 07:11
Multiple git identities on one machine: config per folder and per provider (personal vs work). Every command verified.

Multiple git identities on one machine

TL;DR

One machine, several git identities: typically personal vs work, GitHub vs GitLab, or two accounts on the same provider. This setup makes every repository pick the right name, email, and keys on its own, so no work commit ever goes out under your personal address (or the reverse). In a hurry: run the Appendix B script once per identity.

@haruair
haruair / howto.md
Last active June 23, 2016 01:03
C# ์ดˆ๋ณด๊ฐ€ C# ํŒจํ‚ค์ง€๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•

C# ์ดˆ๋ณด๊ฐ€ C# ํŒจํ‚ค์ง€๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•

์ด์ƒํ•œ๋ชจ์ž„ / Kobe Creations

๊น€์šฉ๊ท 

ํ”„๋กค๋กœ๊ทธ

C# ๋ฐฐ์šฐ๊ณ  ์‹ถ์ง€๋งŒ ์‰ฝ๊ฒŒ ๋ฐฐ์šธ ์ˆ˜ ์—†๋˜ ๋„ˆ๋ž€ ์–ธ์–ด

import contextlib
import functools
class Defer(contextlib.ExitStack):
def __call__(self, *args, **kwargs):
self.callback(functools.partial(*args, **kwargs))
def __del__(self):
self.close()
@allieus
allieus / ddns.py
Last active May 9, 2024 23:15
Route 53 ์— ๋‚ด ๋„๋ฉ”์ธ ์ •๋ณด ๋ฐ˜์˜ํ•˜๊ธฐ (Dynamic DNS ๋กœ ํ™œ์šฉํ•˜๊ธฐ)
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from boto.route53 import connect_to_region
from boto.route53.record import ResourceRecordSets
def apply(domain, ip, ttl, region, access_key=None, secret_key=None):
if access_key:
os.environ.setdefault('AWS_ACCESS_KEY_ID', access_key)
@perhapsspy
perhapsspy / django-test-easy-and-fast.md
Last active May 20, 2022 05:06
Django์—์„œ Test ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ

Django์—์„œ Test ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ

django ๊ธฐ๋ณธ ํ…Œ์ŠคํŠธ๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋•์— ๋А๋ฆฌ๊ณ  ๋ฒˆ๊ฑฐ๋กญ๊ธฐ ๋•Œ๋ฌธ์— py.test์™€ model_mommy๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋น ๋ฅด๊ฒŒ ํ…Œ์ŠคํŠธ๋ฅผ ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์†Œ๊ฐœํ•จ.

ํ…Œ์ŠคํŠธ ํŒŒ์ผ ๋ ˆ์ด์•„์›ƒ

@honux77
honux77 / itbook.md
Last active April 6, 2020 15:20
Some Good Books for Developers

๊ฐœ๋ฐœ์ž ์ถ”์ฒœ ์„œ์ 

(๋‹คํ˜œ๊ฐ€ ์ด๋ฆ„ ๋ถ™์ž„)

๋Œ€๊ทœ๋ชจ ์„œ๋น„์Šค ์„ฑ๋Šฅ ๊ด€๋ จ

  • ์›น ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ๋Œ€๊ทœ๋ชจ ์„œ๋น„์Šค๋ฅผ ์ง€ํƒฑํ•˜๋Š” ๊ธฐ์ˆ 
  • ๊ทธ๋ฆผ์œผ๋กœ ๊ณต๋ถ€ํ•˜๋Š” ์‹œ์Šคํ…œ ์„ฑ๋Šฅ๊ตฌ์กฐ

IT ์ธํ”„๋ผ ๊ถŒ์žฅ ๋„์„œ

@item4
item4 / bash_profile.sh
Created July 1, 2015 10:24
Open man page as pdf
# add it yourself
my_man2() {
man -t $1 | open -f -a /Applications/Preview.app
}
alias man2=my_man2
@whitekid
whitekid / docker_netns_sync.go
Last active August 29, 2015 14:22
sync docker container network namespace
package main
import (
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"time"