Skip to content

Instantly share code, notes, and snippets.

View sebhtml's full-sized avatar

Sébastien Boisvert sebhtml

View GitHub Profile
$ aws s3 ls s3://ws77111-v1-alignments|grep cram
2019-12-29 00:49:40 426776555 SRR1259601-0001.cram.gz
2019-12-29 01:35:34 456253719 SRR1259601-0002.cram.gz
2019-12-29 02:22:17 432592627 SRR1259601-0003.cram.gz
2019-12-29 03:07:25 455323986 SRR1259601-0004.cram.gz
2019-12-29 03:53:22 437195550 SRR1259601-0005.cram.gz
2019-12-29 04:03:35 141333491 SRR1259601-0006.cram.gz
2019-12-29 00:55:39 424405382 SRR1259602-0001.cram.gz
2019-12-29 01:43:36 470357257 SRR1259602-0002.cram.gz
2019-12-29 02:32:01 438627995 SRR1259602-0003.cram.gz
--- supplements/MatrixSVM/Makefile 2008-11-04 18:34:55.000000000 -0500
+++ supplements.build/MatrixSVM/Makefile 2018-06-19 08:50:14.203123343 -0400
@@ -7,7 +7,7 @@
#
CC=gcc # used C-compiler
-CFLAGS= -O3 # release C-Compiler flags
+CFLAGS= -O3 -fPIC # release C-Compiler flags
#CFLAGS= -g -Wall -pedantic # debugging C-Compiler flags
LD=gcc # used linker
foo = File.new("ifs", "w")
@sebhtml
sebhtml / bug.cpp
Created June 2, 2015 22:05
bedtools 2.24 issue with g++ 4.4.7
// compile with g++ bug.cpp -fPIC
// This will produce this error with g++ 4.4.7
// ./a.out: symbol lookup error: ./a.out: undefined symbol: _ZZN1A1B3fooERKSsS2_E8CONSTANT
#include <string>
namespace A
{
class B
@sebhtml
sebhtml / gist:387865180daff979d8bc
Created June 2, 2015 22:04
bedtools issue with g++ 4.4.7
#include <string>
namespace A
{
class B
{
public:
B();
~B();
------------------------------------------------------------------------
Program : /gpfs/mira-fs1/projects/CompBIO/Projects/automated-tests/spate-Iowa_Native_Prairie_Soil-2014-12-10-20-26-41.spate
------------------------------------------------------------------------
+++ID Rank: 34, TGID: 1, Core: 13, HWTID:3 TID: 355 State: RUN
0000000001548678
abort
/bgsys/drivers/V1R2M2/ppc64/toolchain/gnu/glibc-2.12.2/stdlib/abort.c:77
0000000001542788
TLB V EA Range RA Range Size ThID WIMGE RWXRWX XSSP TID TL
----- - ---------------- ---------------- ---------------- ---------------- ----- ---- ----- ------ ---- ---- --
0:2 V 0004063888000000-0004063888FFFFFF 0000010088000000-0000010088FFFFFF 16MB 1111 -IM-- RWXrw- ---- 0080 00
0:3 V 0000000000001000-00000000000FFFFF 0000000000001000-00000000000FFFFF 1MB 1111 --M-- R-X--- X--- 0000 00
1:2 V 0004063889000000-0004063889FFFFFF 0000010089000000-0000010089FFFFFF 16MB 1111 -IM-- RWXrw- ---- 0080 00
1:3 V 0000000000100000-00000000001FFFFF 0000000000100000-00000000001FFFFF 1MB 1111 --M-- RWX--- ---- 0000 00
2:1 V 000406388A000000-000406388AFFFFFF 000001008A000000-000001008AFFFFFF 16MB 1111 -IM-- RWXrw- ---- 0080 00
2:2 V 0000010002000000-0000010002FFFFFF 0000010002000000-0000010002FFFFFF 16MB 1111 -IM-- RW---- ---- 0000 00
2:3 V 0000000000200000-00000000002FFFFF 0000000000200000-00000000002FFFFF 1MB 1111 --M-- RWX--- ---- 0000 00
3:2 V
[boisvert@cetuslac1 biosal]$ git diff
diff --git a/core/system/memory.c b/core/system/memory.c
index 534dd24..c1282f1 100644
--- a/core/system/memory.c
+++ b/core/system/memory.c
@@ -628,12 +628,12 @@ void core_memory_initialize_memory_subsystem()
*/
#ifdef __bgq__
- /*
@sebhtml
sebhtml / gist:497e5e8915f5524ab525
Created August 15, 2014 14:44
mothur has > 150k lines of code
$ cloc mothur
814 text files.
814 unique files.
46 files ignored.
http://cloc.sourceforge.net v 1.60 T=5.60 s (143.7 files/s, 41055.9 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
C++ 380 34767 21318 137141
DEBUG MEMORY REQUESTED 1107296256 bytes !
DEBUG MEMORY REQUESTED 1107296256 bytes !
DEBUG MEMORY REQUESTED 1107296256 bytes !
DEBUG MEMORY REQUESTED 1107296256 bytes !
MEMORY 1 s node/0 4668375040 bytes
MEMORY 1 s node/2 4602212352 bytes
MEMORY 1 s node/1 4601540608 bytes
MEMORY 1 s node/3 4602830848 bytes
MEMORY 2 s node/0 4668375040 bytes
MEMORY 2 s node/2 4602212352 bytes