Skip to content

Instantly share code, notes, and snippets.

@ishtaka
ishtaka / python_install.sh
Last active September 24, 2018 08:05
[Python]環境構築
# install pyenv
brew install pyenv
# install python via pyenv
pyenv install $(pyenv install -l | grep -v - | tail -1)
pyenv rehash
pyenv global $(pyenv install -l | grep -v - | tail -1)
# install pipenv
pip install --upgrade pip
@ishtaka
ishtaka / phalcon.sh
Created April 8, 2018 16:39
[Mac]Phalconインストール
# php version
PHP_VERSION="7.2.2"
# install phalcon
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build/
./install
# enable phalcon
cd ~/.phpbrew/php/php-${PHP_VERSION}/var/
@ishtaka
ishtaka / setup_php.sh
Last active February 23, 2018 17:29
[PHP]PHPBrewで環境構築
# install phpbrew
brew tap homebrew/php
brew install phpbrew
# initialization
phpbrew init
echo "source $HOME/.phpbrew/bashrc" >> ~/.bash_profile
source ~/.bash_profile
# build and install php
@ishtaka
ishtaka / ruby-setup.sh
Last active June 10, 2017 20:13
[Ruby]環境構築
# install rbenv via anyenv
anyenv install rbenv
# install ruby via rbenv
rbenv install $(rbenv install -l | grep -v - | tail -1)
rbenv rehash
#rbenv global $(rbenv install -l | grep -v - | tail -1)
# install bundler
gem install bundler
@ishtaka
ishtaka / express4_install.sh
Created August 18, 2015 12:32
[Node.js]Express4インストール
# add package.json
npm init
vi package.json
#{
# "name": "nodesample",
# "version": "1.0.0",
# "description": ""
#}
# local install express
@ishtaka
ishtaka / cask_install.sh
Created August 11, 2015 08:43
[Linux]Caskインストール
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
cask upgrade-cask
cd .emacs.d
cask init
# install package
cask install
@ishtaka
ishtaka / porg_install.sh
Last active January 5, 2016 00:50
[Linux]porgインストール
wget http://downloads.sourceforge.net/project/porg/porg-0.8.tar.gz
tar zvf porg-0.8.tar.gz
cd porg-0.8
./configure --disable-grop
make
make install
make logme
#How to use
# install
@ishtaka
ishtaka / maven_install.sh
Last active January 5, 2016 00:53
[Maven]Maven3インストール
# install
wget http://ftp.riken.jp/net/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
tar xzvf apache-maven-3.3.3-bin.tar.gz
sudo mv apache-maven-3.3.3 /usr/local/bin
sudo ln -s /usr/local/bin/apache-maven-3.3.3 /usr/local/bin/maven
# /etc/profile.d/maven.sh
sudo vi /etc/profile.d/maven.sh
export M3_HOME=/usr/local/bin/maven
export M3=$M3_HOME/bin
@ishtaka
ishtaka / TestTrait.php
Created April 22, 2015 01:10
[PHP]private, protectedなメソッド、プロパティのテスト用
<?php
trait TestTrait
{
/**
* private, protectedなmethodのテスト用
*
* $method = $this->getAccessibleMethod($obj, 'method_name');
* $method->invokeArgs($obj, array());
*
@ishtaka
ishtaka / jenkins.sh
Created January 18, 2015 22:01
[CentOS]Jenkinsインストール
# add repository
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
# install
sudo yum install jenkins
# setting
sudo vi /etc/sysconfig/jenkins
# JENKINS_PORT="8090"