Skip to content

Instantly share code, notes, and snippets.

View sangpire's full-sized avatar
💭
I may be slow to respond.

BYUN Sangpil sangpire

💭
I may be slow to respond.
View GitHub Profile
@sangpire
sangpire / ready.sh
Created July 5, 2017 00:45
pull develop.
#!/usr/bin/env bash +x
function git::work::ready() {
local current_branch
current_branch=$(git rev-parse --abbrev-ref HEAD)
git checkout develop
git pull
git checkout $current_branch
}
git::work::ready
@sangpire
sangpire / test.bash
Last active November 11, 2015 07:26
#!/bin/bash
echo "START"
if [[ "0" =~ ^(1|11|21)$ ]]; then echo "TRUE-0"; fi
if [[ "1" =~ ^(1|11|21)$ ]]; then echo "TRUE-1"; fi
if [[ "2" =~ ^(1|11|21)$ ]]; then echo "TRUE-2"; fi
if [[ "10" =~ ^(1|11|21)$ ]]; then echo "TRUE-10"; fi
if [[ "11" =~ ^(1|11|21)$ ]]; then echo "TRUE-11"; fi
if [[ "12" =~ ^(1|11|21)$ ]]; then echo "TRUE-12"; fi
@sangpire
sangpire / private.xml
Created October 27, 2015 09:17
Karabiner VMware Horizon 비활성화 설정
<?xml version="1.0"?>
<root>
<appdef>
<appname>VMware_Horizon_Client</appname>
<!--
Please modify bundle identifier for your environment.
You can confirm it by EventViewer.
https://pqrs.org/osx/karabiner/xml.html.en#appdef-steps
-->
<equal>com.vmware.horizon</equal>
@sangpire
sangpire / php_configure_help.md
Created March 20, 2015 07:43
php configure help

`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.
@sangpire
sangpire / Learning_ansible.md
Last active August 29, 2015 14:17
Ansible 공부하기

Ansible

Handlers

task 이벤트를 받아 처리하는 형태의 작업을 위한 것 task 에선 notify 로 알리고,

  • name: template configuration file
@sangpire
sangpire / Preferences.sublime-settings
Created October 15, 2014 08:33
Sublime settings.
{
"rulers": [80, 120],
"color_scheme": "Packages/User/Pastels on Dark (SL).tmTheme",
"draw_white_space": "all",
"font_face": "Monaco",
"font_options":
[
"no_round"
],
"font_size": 13,
@sangpire
sangpire / .vimrc
Last active August 29, 2015 14:07
My .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@sangpire
sangpire / .tmux.conf
Last active July 22, 2016 06:23
tmux configuration.
set -g base-index 1
set -g status-keys vi
#set -g buffer-limit 1000
#set -g bell-action any
#set -g bell-on-alert on
set -g mouse on
set -g status-position top
set -g default-terminal "screen-256color" # needs `export TERM="xterm-256color"`
#
setw -g mode-keys vi
@sangpire
sangpire / intellij.desktop
Created June 11, 2014 07:26
Linux `.desktop` File **intelliJ** Sample.
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=IntelliJ IDEA
Icon=jetbrains-idea.png
Exec=/home/sangpire/apps/idea-IU-129.1525/bin/idea.sh
StartupNotify=false
StartupWMClass=jetbrains-idea
OnlyShowIn=Unity;
@sangpire
sangpire / crypto.getHashes.js
Created June 11, 2014 07:24
node.js `crypto` `.getHashes` `.createHash` `.update` `.digest`
crypto.getHashes().forEach(
function(hash){
try {
console.log(
"%s - %s",
hash,
crypto.createHash(hash).update('STRING_INPUT','utf8').digest('hex')
)
}
catch(e) {}