Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Derquinse Gist.GitHub Gadget">
<Require feature="dynamic-height" />
</ModulePrefs>
<UserPref name="gistId" display_name="Gist #" required="true" />
<Content type="html">
<![CDATA[
<div id="content_div">
#!/bin/sh
export INSTDIR=/usr/local/mpich2-1.4.1p1-intel
export CC=icc
export CXX=icpc
export CPP='icc -E'
export CXXCPP='icc -E'
export FC=ifort
export F77=ifort
#!/bin/sh
export INSTDIR=/usr/local/netcdf-3.6.3-intel
export FC=ifort
export F77=ifort
export CC=icc
export CXX=icpc
export CPP='icc -E'
export CXXCPP='icpc -E'
@TakashiUNUMA
TakashiUNUMA / htmlview.sh
Created May 31, 2014 10:02
あるディレクトリに保存されたすべて同じ大きさの画像を、HTML で閲覧するための shell script。
#!/bin/sh
width=400
height=309
echo '<HTML>'
echo '<HEAD>'
echo '<TITLE> HTML VIEWER </TITLE>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">'
echo '</HEAD>'
@TakashiUNUMA
TakashiUNUMA / modify_boundingbox.sh
Created July 5, 2014 23:40
A shell script for modifying the bounding box of the input eps files using ghostscript.
#!/bin/sh
#
# modify_boundingbox.sh
#
# original script coded by Takashi Unuma, Kyoto Univ.
# last modified: 2014/07/06
#
# required commands: basename, gs, sed, and awk
#
@TakashiUNUMA
TakashiUNUMA / autobuild_netcdf4.sh
Last active August 29, 2015 14:03
An automated shell script for compiling and installing NetCDF ver. 4.1.3, ZLIB ver. 1.2.5 and HDF5 ver. 1.8.7. For more information of this script, please see the top level of this script.
#!/bin/sh
#
# autobuild_netcdf4.sh
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2014/07/07
#
# -------------------------------------------------------
# required commands:
# wget, tar, make
@TakashiUNUMA
TakashiUNUMA / SConstruct
Last active August 29, 2015 14:05
A sample SConstruct script for compiling your code(s) with NetCDF4 library.
# -*- coding: utf-8 -*-
#
# SConstruct for compiling Fortran90 code(s)
#
# coded by Takashi Unuma, Kyoto Univ.
# last modified: 2014/08/17
#
# load python modules
import os
@TakashiUNUMA
TakashiUNUMA / cache_free.sh
Last active December 16, 2015 16:49
Chach を解放する、shell script。
#!/bin/sh
echo '# before ------------------------------------------------------------- #'
free
echo ''
echo 3 > /proc/sys/vm/drop_caches
echo '# after -------------------------------------------------------------- #'
free
echo ""
@TakashiUNUMA
TakashiUNUMA / jst2utc.sh
Created April 26, 2013 10:42
日時処理プログラム。 12桁のJST時刻を、12桁のUTC時刻に変換する。
#!/bin/sh
#
# 日時処理
# Last modified: 2012/04/16
#
# 引数があるかどうかチェック
if test $# -lt 1
then
echo "USAGE: jst2utc yyyymmddhhnn"
@TakashiUNUMA
TakashiUNUMA / utc2jst.sh
Created April 26, 2013 10:45
日時処理プログラム。 12桁のUTC時刻を、12桁のJST時刻に変換する。
#!/bin/sh
#
# 日時処理
# Last update: 2012/01/12
#
# 引数があるかどうかチェック
if test $# -lt 1
then
echo "USAGE: utc2jst yyyymmddhhnn"