Skip to content

Instantly share code, notes, and snippets.

View ujuc's full-sized avatar
🎗️
doing!

강성진 sungjin.kang ujuc

🎗️
doing!
View GitHub Profile
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active May 10, 2024 19:51
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 May 5, 2024 19:38
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@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 쉽고 빠르게 하기
@honux77
honux77 / itbook.md
Last active April 6, 2020 15:20
Some Good Books for Developers
@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"