Skip to content

Instantly share code, notes, and snippets.

View MizukiSonoko's full-sized avatar
🍶
sake

MIZUKI Sonoko MizukiSonoko

🍶
sake
View GitHub Profile
#curl -O https://s3-us-west-2.amazonaws.com/coronium-installers/ubuntu/install.sh; chmod +x install.sh; ./install.sh
const int LED = 13;
int val = 0;
int light = 0;
int count = 0;
bool up = true;
void setup(){
pinMode(12, INPUT);
pinMode(11, INPUT);
@MizukiSonoko
MizukiSonoko / llvm_setup.sh
Created June 23, 2015 06:04
LLVM3.6.1 install script
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
@MizukiSonoko
MizukiSonoko / setup.sh
Created June 25, 2015 06:13
MeCab+ CaboCha install script
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
@MizukiSonoko
MizukiSonoko / node-v0.12.5_setup.sh
Created June 25, 2015 11:39
node-v0.12.5 setup
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
@MizukiSonoko
MizukiSonoko / make.sh
Last active August 29, 2015 14:23
Make in c4.4xlarge
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
@MizukiSonoko
MizukiSonoko / [Complate]_install_gcc5.1.0_solaris.sh
Last active April 10, 2017 05:59
solarisに色々入れるscript.
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
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
@MizukiSonoko
MizukiSonoko / lambda.js
Last active November 13, 2015 16:02
[Lambda's code] REST API using DynamoDB.
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',
@MizukiSonoko
MizukiSonoko / delete_all_container.sh
Last active August 29, 2015 14:25
多分ぜんぶ消えるよ!わーい!
#! /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 }')