This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +josephku is my openname (Bitcoin username). https://onename.io/josephku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'bitcoin' | |
require 'open-uri' | |
require 'JSON' | |
require 'digest/sha2' | |
require 'pry' | |
require 'bigdecimal' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/local/Library/Formula/vim.rb | |
# | |
# Vim formula for HomeBrew | |
# | |
# Written by Joseph Ku <chiehfang.ku@gmail.com> | |
# All right reserved. | |
require 'formula' | |
class Vim < Formula |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# image_uploading_test.rb | |
# | |
# Written by Joseph Ku <chiehfang.ku@gmail.com> | |
# All right reserved. | |
require 'rmagick' | |
require 'rest_client' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# Linux # | |
######### | |
.* | |
!.gitignore | |
*~ | |
# KDE | |
.directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class BashCompletion < Formula | |
url 'http://pkgs.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2' | |
homepage 'http://bash-completion.alioth.debian.org/' | |
md5 'a1262659b4bbf44dc9e59d034de505ec' | |
head 'git://git.debian.org/git/bash-completion/bash-completion.git' | |
def install | |
inreplace "bash_completion" do |s| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Despotify < Formula | |
head 'https://svn.code.sf.net/p/despotify/code/src' | |
homepage 'http://despotify.se/' | |
depends_on 'pkg-config' => :build | |
depends_on 'libao' | |
depends_on 'libvorbis' | |
depends_on 'mpg123' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
export DEBIAN_FRONTEND=noninteractive | |
echo "Replacing default MySQL 5.5 by MySQL 5.7.8 RC" | |
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.5.3-1_all.deb | |
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7-dmr | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-connector-python select none | sudo debconf-set-selections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .profile for Bash on Mac OS X | |
# | |
# Written by Joseph Ku <chiehfang.ku@gmail.com> | |
# All right reserved. | |
# 'ls' with colors | |
export CLICOLOR=1 | |
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
#export LSCOLORS=ExxxxxDxBxegedabxxacad | |
export LSCOLORS=ExFxCxDxBxegedabagacad |
OlderNewer