Skip to content

Instantly share code, notes, and snippets.

View sungkwangsong's full-sized avatar

송성광 sungkwangsong

View GitHub Profile
@sungkwangsong
sungkwangsong / gist:2d5191e47235ab5e9c86
Created June 20, 2014 06:57
PhoneGap(Cordova) 하이브리드 앱에서 PushPlugin으로 푸시 서비스 구현하기 예제
<!DOCTYPE html>
<!--
Copyright (c) 2012-2014 Adobe Systems Incorporated. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@sungkwangsong
sungkwangsong / gist:2507fb42f0b16dc5b5a9
Created January 12, 2015 02:53
set JDK on Mac OS X when using multiple Java versions
function setjdk() {
if [ $# -ne 0 ]; then
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin'
if [ -n "${JAVA_HOME+x}" ]; then
removeFromPath $JAVA_HOME
fi
export JAVA_HOME=`/usr/libexec/java_home -v $@`
export PATH=$JAVA_HOME/bin:$PATH
fi
}
@sungkwangsong
sungkwangsong / sendmail_unkwnown_ip.py
Created January 25, 2015 15:51
send mail using python
#!/usr/bin/python
# -*- coding:utf-8 -*-
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email import Encoders
from email import Utils
from email.header import Header
@sungkwangsong
sungkwangsong / post-commit
Created April 24, 2015 12:44
git 커밋 내용을 slack으로 보내기
#!/bin/bash
webhookurl=""
channel=""
username=""
text=$(git log -1)
message=$(echo "$text" | sed 's/"/\"/g' | sed "s/'/\'/g" | perl -p -e 's/\n/\\n/')
json="{\"channel\": \"#$channel\", \"username\":\"$username\", \"text\": \"$message\"}"
curl -s -d "payload=$json" $webhookurl
@sungkwangsong
sungkwangsong / README.md
Last active January 28, 2024 08:56
Gradle 기반 Spring 프로젝트 IntelliJ에서 임포트와 실행하기

Spring Boot 프로젝트 임포트 및 실행방법

이 문서는 현재 Spring Boot 프로젝트를 IntelliJ에서 임포트하고 실행하는 방법을 소개한다.

IntelliJ IDE

Spring Boot 프로젝트는 gradle 기반과 maven 기반 프로젝트로 구성할 수 있다. 이 프로젝트는 gradle 기반으로 만든 프로젝트이다. Srping Boot 프로젝트는 여러가지 JAVA IDE를 사용하여 개발할 수 있는데 IntelliJ 로 개발하는 것이 가장 안전하고 빠르게 개발 할 수 있다. eclipse는 무료이긴 하지만 IntelliJ 보다 안정성과 성능이 부족하다. IntelliJ IDE는 https://www.jetbrains.com/idea/download/ 에서 다운받을 수 있다.

@sungkwangsong
sungkwangsong / .bash_prompt.sh
Created July 22, 2019 06:58
Display colored git branch to bash prompt in terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
Organization Specification Status SSI Stack Description
W3C Decentralized Identifiers (DIDs) Working Group Secure Connections New type of identifier which is globally unique, highly available & cryptographically verifiable.
W3C Decentralized Identifier (DID) Resolution Community Group Secure Connections Specifies guidelines for resolving and dereferencing DIDs to obtain DID Docs.
W3C DID Spec Registries Working Group Secure Connections Official registry for all known global parameters, properties, and values used by the decentralized identifier ecosystem.
W3C DID Method Registry Community Group Public Key Registry List of DID methods with known implementations.
W3C DID Use Cases Wo
Organization Specification Status SSI Stack Description
W3C Decentralized Identifiers (DIDs) Working Group Secure Connections New type of identifier which is globally unique, highly available & cryptographically verifiable.
W3C Decentralized Identifier (DID) Resolution Community Group Secure Connections Specifies guidelines for resolving and dereferencing DIDs to obtain DID Docs.
W3C DID Spec Registries Working Group Secure Connections Official registry for all known global parameters, properties, and values used by the decentralized identifier ecosystem.
W3C DID Method Registry Community Group Public Key Registry List of DID methods with known implementations.
W3C DID Use Cases Wo
@sungkwangsong
sungkwangsong / Monaco for Powerline.md
Created February 1, 2021 08:19 — forked from ymjing/Monaco for Powerline.md
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc:

@sungkwangsong
sungkwangsong / Monaco for Powerline.md
Created February 1, 2021 08:19 — forked from ymjing/Monaco for Powerline.md
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc: