Skip to content

Instantly share code, notes, and snippets.

Avatar

Yunsang Choe odd-poet

View GitHub Profile
@odd-poet
odd-poet / .tmux.conf
Last active Oct 3, 2020
tmux 설정.
View .tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-window-option -g pane-base-index 1
#set -g default-terminal screen-256color
View convertImgToBase64.js
// 출처 : http://stackoverflow.com/questions/6150289/how-to-convert-image-into-base64-string-using-javascript
/**
* Convert an image
* to a base64 string
* @param {String} url
* @param {Function} callback
* @param {String} [outputFormat=image/png]
*/
function convertImgToBase64(url, callback, outputFormat){
var canvas = document.createElement('CANVAS'),
View MockHTable.java
/**
* This file is licensed to you 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
View _service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@odd-poet
odd-poet / blinks-rvm.zsh-theme
Created Dec 3, 2013
zsh 테마 (rvm-prompt 포함)
View blinks-rvm.zsh-theme
@odd-poet
odd-poet / README.md
Last active Dec 18, 2015
gw2ssh for zsh(oh-my-zsh)
View README.md

gw2ssh for zsh

oh-my-zsh 플러그인으로 만들어진 zsh용 gw2ssh

설치방법

curl https://gist.github.com/odd-poet/5711863/raw/install.sh | sh 
@odd-poet
odd-poet / gw2ssh-install.sh
Last active Dec 16, 2015
SKP용 GW스크립트
View gw2ssh-install.sh
#!/bin/bash
gw2ssh_url="https://gist.github.com/odd-poet/5418622/raw/gw2ssh.sh"
filepath=$HOME/gw2ssh.sh
profile=$HOME/.bash_profile
echo "Download gw2ssh.sh script..."
curl -s $gw2ssh_url > $filepath
echo " done. "
@odd-poet
odd-poet / svn2git.sh
Created Jul 22, 2012
조낸 심플한 svn2git script.
View svn2git.sh
#!/bin/bash
# simple svn2git script.
# author : yunsang.choi (oddpoet@gmail.com)
#
# It checkouts svn repository to local git repository
# include branches and tags.
#=====================================
svn2git() {
local url=$1
@odd-poet
odd-poet / gist:1776598
Created Feb 9, 2012
deprecated : (in refactory ruby ed.)
View gist:1776598
class Module
def deprecate(methodName, &block)
module_eval <<-END
alias_method :deprecated_#{methodName}, :#{methodName}
def #{methodName}(*args, &block)
$stderr.puts "Warning: calling deprecated method #{self}.#{methodName}."
deprecated_#{methodName}(*args, &block)
end
END
end
You can’t perform that action at this time.