Skip to content

Instantly share code, notes, and snippets.

View mjhsieh's full-sized avatar

Mengjuei Hsieh mjhsieh

View GitHub Profile
@mjhsieh
mjhsieh / log
Created December 14, 2014 18:16
$ vagrant ssh
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-39-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sun Dec 14 18:06:00 UTC 2014
System load: 0.37 Processes: 100
Usage of /: 2.7% of 39.34GB Users logged in: 0
Memory usage: 10% IP address for eth0: 10.0.2.15
$ cat analysis/bin/saxonb9 analysis/bin/smrtreporter analysis/bin/referenceUploader
#!/bin/bash
# Source the smrtanalysis setup.sh file
. $($(dirname $(readlink -f "$0"))/../../admin/bin/getsetupfile)
JAVA=${SMRT_TOPDIR}/redist/java/bin/java
JAVA_OPTIONS="-Xmx72m -Xms4m"
$JAVA $JAVA_OPTIONS -jar $ASSEMBLY_HOME/lib/saxonb9-1-0-1j/saxon9.jar "$@"
#!/bin/bash
@mjhsieh
mjhsieh / gist:5247446
Created March 26, 2013 17:39
A patch to LSC to make it compatible with python virtual_env
diff -ru tmp/LSC_0.2.2/bin/FASTA2fa.py LSC_0.2.2/bin/FASTA2fa.py
--- tmp/LSC_0.2.2/bin/FASTA2fa.py 2012-08-13 23:21:52.000000000 -0700
+++ LSC_0.2.2/bin/FASTA2fa.py 2013-03-25 13:58:15.000000000 -0700
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys
import os
diff -ru tmp/LSC_0.2.2/bin/RemoveBothTails.py LSC_0.2.2/bin/RemoveBothTails.py
米菓人生
src: @Funpea
注:只收集了自 14:27:03 至 23:38:40 的推文。
警告:此页面不会永久保存,需要者请自行备份。
14:27:03 Funpea: 好吧,现在就谈谈之前说过的台湾蔡衍明名下的旺旺中时集团在重庆做的那些肮脏丑事吧,拖了很久,反复思量,不管怎样,这些事情还是要让公众知晓,让人评说。 https://twitter.com/Funpea/status/200109611141971968
14:28:37 Funpea: 也在此说明一下,旺旺中时在重庆做的这些事情,我就是当事人之一,手上也有很多证据,所以可以保证事情的真实性。 https://twitter.com/Funpea/status/200110004290854912
[iMacCD:~/source] mjhsieh% ls ~^D
_amavisd _jabber _serialnumberd _xgridagent
_appowner _lp _spotlight _xgridcontroller
_appserver _mailman _sshd daemon
_ard _mcxalr _svn macports
_atsserver _mdnsresponder _teamsserver messagebus
_calendar _mysql _tokend mjhsieh
_clamav _pcastagent _unknown nobody
_cvs _pcastserver _update_sharing root
_cyrus _postfix _usbmuxd test
@mjhsieh
mjhsieh / main.bash
Created August 13, 2011 23:30
installer
#!/bin/bash
# The following files are bundled:
#
# 'Lettuce.app'
#
#
CD="CocoaDialog.app/Contents/MacOS/CocoaDialog"
rv=$($CD yesno-msgbox --title "License Agreement" --text "Agree this before you install. :-)" --informative-text "Copyright (c) 2011, Openvanilla project
All rights reserved.
@mjhsieh
mjhsieh / mpif90.bash
Created February 9, 2011 22:28
a replacement of mpif90 for AmberTools building process
#!/bin/bash
# 345678901234567890123456789012345678901234567890123456789012345678901234567890
# Usage: (stock lammpi 7.1.4 in my OSCAR cluster was compiled with gcc/gfortran)
# env LAMMPICC=icc LAMMPIF77=ifort mpif90
# env LAMMPIF77=g95 mpif90
# 345678901234567890123456789012345678901234567890123456789012345678901234567890
mystring="$(mpif77 -show)"
@mjhsieh
mjhsieh / gist:676014
Created November 14, 2010 08:40
One of my working config.h for pmemd.amba with MPI
IFORT_RPATH = /opt/intel/fce/10.1.025/lib:/opt/intel/cce/10.1.025/lib
#MATH_DEFINES = -DMKL
#MATH_LIBS = -L/opt/intel/mkl/10.2.0.013/lib/em64t \
# -lmkl_core -lmkl_intel_lp64 -lmkl_sequential
FFT_INCLUDEDIR =
FFT_LIBDIR =
FFT_DEFINES = -DPUBFFT
FFT_INCLUDE =
FFT_LIBS =
NETCDF_HOME =
@mjhsieh
mjhsieh / gist:668374
Created November 8, 2010 22:14
gcc -E -dM - < /dev/null
mjhsieh% cc -E -dM - < /dev/null
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __DEC64_DEN__ 0.000000000000001E-383DD
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 0
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
@mjhsieh
mjhsieh / gist:668351
Created November 8, 2010 22:00
(intel macbook) gcc dummy.c -S -o -
% gcc dummy.c -S -o -
.section __TEXT,__text,regular,pure_instructions
.section __TEXT,__cstring,cstring_literals
.globl _mydata
_mydata:
.asciz "mycontent"
.subsections_via_symbols