Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # 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 |
| // 출처 : 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'), |
| /** | |
| * 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. |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # https://github.com/blinks zsh theme | |
| # 기본 테마인 blinks 기반에 rvm-prompt를 붙임. | |
| function _prompt_char() { | |
| if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
| echo "%{%F{blue}%}±%{%f%k%b%}" | |
| else | |
| echo ' ' | |
| fi | |
| } |
| #!/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. " |
| #!/bin/bash | |
| # simple svn2git script. | |
| # author : yunsang.choi ([email protected]) | |
| # | |
| # It checkouts svn repository to local git repository | |
| # include branches and tags. | |
| #===================================== | |
| svn2git() { | |
| local url=$1 |
| 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 |