Skip to content

Instantly share code, notes, and snippets.

View hiracchi's full-sized avatar

Toshiyuki HIRANO hiracchi

  • The University of Tokyo
  • 4-6-1 Komaba, Meguro, Tokyo, 153-8505, Japan
View GitHub Profile
@hiracchi
hiracchi / build_pdf_gnu.sh
Created October 28, 2014 03:05
build ProteinDF on gnu/openmpi
#!/bin/bash
export LANG=C
MY_PREFIX=${HOME}/local/gnu/ProteinDF
export F77=gfortran
export FC=gfortran
export CC=gcc
export CXX=g++
export CFLAGS=" \
@hiracchi
hiracchi / build_pdf_intel_openmpi.sh
Created October 28, 2014 07:15
build ProteinDF on intel/openmpi
#!/bin/bash
export LANG=C
MY_PREFIX=${HOME}/local/intel/ProteinDF.openmpi
echo "MY_PREFIX=${MY_PREFIX}"
export F77=ifort
export FC=ifort
export CC=icc
export CXX=icpc
@hiracchi
hiracchi / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
python -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2
@hiracchi
hiracchi / build_pdf.fx10.sh
Created March 13, 2015 04:02
build script for ProteinDF on FX10
#!/bin/bash
export F77=mpifrtpx
export CC=mpifccpx
export CXX=mpiFCCpx
export MPICXX=mpiFCCpx
export CFLAGS=" \
-DHAVE_CONFIG_H \
-O3 -Kfast -Kocl -Kpreex -Karray_private -Kregion_extension -Kparallel \
@hiracchi
hiracchi / build_gt.sh
Last active August 29, 2015 14:22
build globus-toolkit for HPCI
#!/bin/bash
export GLOBUS_LOCATION=${HOME}/local/gt
export PATH=${GLOBUS_LOCATION}/bin:${PATH}
export DYLD_LIBRARY_PATH=${GLOBUS_LOCATION}/lib
# sudo aptitude install libltdl-dev
./configure --prefix=${GLOBUS_LOCATION} --with-flavor=gcc64dbg 2>&1 | tee out.configure
make gsi-openssh gsi-myproxy 2>&1 | tee out.make
@hiracchi
hiracchi / rc.local
Created July 17, 2015 04:41
Start vagrant VMs on host boot
#!/bin/sh -e
#
# /etc/rc.local
# see. http://stackoverflow.com/questions/18098510/stat-vagrant-vm-on-host-boot
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
@hiracchi
hiracchi / build_SGE.sh
Last active August 29, 2015 14:26
build son-grid-engine on ubuntu 14.04
#!/bin/bash
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install git tcsh automake autoconf ant libopenmpi-dev libssl-dev libdb-dev libpam0g-dev junit javacc
sudo apt-get install libxt-dev libmotif-dev libxext-dev
git clone http://arc.liv.ac.uk/repos/git/sge
(cd source; bash scripts/bootstrap.sh && ./aimk) 2>&1 | tee out.build
@hiracchi
hiracchi / build_pdf_osx.sh
Last active October 29, 2015 05:33
build script for ProteinDF on MacOSX
#!/bin/bash
# a build script for ProteinDF on MacOSX
#
# 1. prepare build tools by using homebrew.
# $ brew install gcc automake autoconf libtool
# 2. install LAPACK into ${HOME}/local
# In this case, "librefblas.a" and "liblapack.a" are found in the ${HOME}/local/lib directory.
# 3. install OpenMPI into ${HOME}/local/openmpi
# This build-script uses "${HOME}/local/openmpi/bin/mpicxx" as MPI-C++ compiler.
@hiracchi
hiracchi / build-amesh.sh
Created December 13, 2016 03:49
desktop app for Tokyo amesh (http://tokyo-ame.jwa.or.jp/) built by using "nativefier"
#!/bin/bash
WIDTH=990px
HEIGHT=728px
nativefier --name "amesh" \
--width ${WIDTH} --min-width ${WIDTH} --max-width ${WIDTH} \
--height ${HEIGHT} --min-height ${HEIGHT} --max-height ${HEIGHT} \
"http://tokyo-ame.jwa.or.jp/"