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
#curl -O https://s3-us-west-2.amazonaws.com/coronium-installers/ubuntu/install.sh; chmod +x install.sh; ./install.sh | |
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
const int LED = 13; | |
int val = 0; | |
int light = 0; | |
int count = 0; | |
bool up = true; | |
void setup(){ | |
pinMode(12, INPUT); | |
pinMode(11, INPUT); |
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
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install gcc g++ git make -y | |
sudo apt-get install libtool m4 -y | |
sudo apt-get install autoconf automake texinfo -y | |
wget http://llvm.org/releases/3.6.1/cfe-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/llvm-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/compiler-rt-3.6.1.src.tar.xz | |
tar Jvxf cfe-3.6.1.src.tar.xz |
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
tar xzvf CRF++-0.58.tar.gz | |
cd CRF++-0.58/ | |
./configure --with-charset=UTF8 --with-posset=IPA | |
make -j20 | |
sudo make install | |
curl http://cabocha.googlecode.com/files/cabocha-0.67.tar.bz2 | |
tar -jxf cabocha-0.67.tar.bz2 | |
cd cabocha-0.67/ | |
sudo ldconfig | |
./configure --with-charset=UTF8 --with-posset=IPA |
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
wget https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz | |
tar xzvf node-v0.12.5-linux-x64.tar.gz | |
echo 'export PATH=$PATH:~/node-v0.12.5-linux-x64/bin' >> ~/.bashrc |
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
echo "Input instance id" | |
read INSTANCE_ID | |
if [ $(aws ec2 describe-instances --instance-ids $INSTANCE_ID | jq '.Reservations[].Instances[].State.Name') != "\"running"\" ] ; then | |
echo "start instance!" | |
aws ec2 start-instances --instance-ids $INSTANCE_ID | |
fi | |
while [ $(aws ec2 describe-instances --instance-ids $INSTANCE_ID | jq '.Reservations[].Instances[].State.Name') != "\"running"\" ] | |
do |
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
mkdir /tmp/gcc | |
cd /tmp/gcc | |
wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-5.1.0/gcc-5.1.0.tar.gz | |
tar xzvf gcc-5.1.0.tar.gz | |
wget http://www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.gz | |
tar -xf mpfr-3.1.5.tar.gz | |
wget ftp://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.xz |
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
curl -O http://nginx.org/download/nginx-1.8.0.tar.gz | |
tar xzvf nginx-1.8.0.tar.gz | |
cd nginx-1.8.0/ | |
sudo apt-get install gcc g++ make | |
sudo apt-get install libpcre3 libpcre3-dev | |
sudo apt-get install zlib1g-dev | |
sudo apt-get install libssl-dev | |
./configure --with-http_ssl_module | |
make | |
make install |
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
var AWS = require('aws-sdk'); | |
var dynamo = new AWS.DynamoDB({region: 'ap-northeast-1'}); | |
exports.handler = function(event, context) { | |
var id = event.id || "EXCEPT_VALUE"; | |
delete event.id; | |
var params = { | |
TableName: 'Test', |
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 | |
sudo docker stop `sudo docker ps -a` | |
sudo docker kill `sudo docker ps -a` | |
sudo docker rm `sudo docker ps -a` | |
sudo docker rmi $(sudo docker images | awk '/^<none>/ { print $3 }') |
OlderNewer