Skip to content

Instantly share code, notes, and snippets.

View tastyone's full-sized avatar
💭
Happy! Look at my eyes~

Sangwon Park tastyone

💭
Happy! Look at my eyes~
View GitHub Profile
/*
File: UIImageEffects.h
Abstract: This class contains methods to apply blur and tint effects to an image.
This is the code you’ll want to look out to find out how to use vImage to
efficiently calculate a blur.
Version: 1.1
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
#!/bin/bash
: << '#__REM__'
指定さたライブラリをAndroid用にフルオートで作成します。ダウンロード、toolchainsの作成、複数のアーキテクチャのビルドも自動的に行います。デフォルトではarmv5te、armv7-a、mips1、i386のアーキテクチャを作成します。
Create a full-auto for Android the library specified. Creating download, toolchains, build the architecture of multiple automatically. Create architecture, mips1, i386 armv5te, armv7-a by default.
#__REM__
TARGET_VERSION="1.3.1"
@tastyone
tastyone / .vimrc
Last active October 10, 2018 10:08
.vimrc
syntax on
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=4
au BufRead,BufNewFile Podfile,*.podspec set filetype=ruby
autocmd Filetype html setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
# github account
Host github.com
User git
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
port 6379
bind 0.0.0.0
pidfile /var/run/redis.pid
daemonize yes
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes
# install redis 3.0.3
sudo apt-get install language-pack-UTF-8
sudo apt-get update
sudo apt-get install -y make
sudo apt-get install -y build-essential
sudo apt-get install -y libjemalloc-dev
wget http://download.redis.io/releases/redis-3.0.3.tar.gz
tar -zxvf redis-3.0.3.tar.gz
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# install haproxy 1.5
sudo apt-get install language-pack-UTF-8
sudo apt-add-repository ppa:vbernat/haproxy-1.5
sudo apt-get update
sudo apt-get install -y haproxy
#!/bin/bash
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install software-properties-common libssl-dev openssl wget cmake
## Install latest Python 3
# -----------------------
PY_VERSION=3.4.3
PY_URL="https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz"
PY_DIR="Python-$PY_VERSION"
# Run these cmd in /opt
@tastyone
tastyone / app.yaml
Last active October 26, 2017 02:33
env_variables:
DEBUG: true
PHASE: local