Instantly share code, notes, and snippets.

View Dockerfile
FROM centos:7
RUN yum update -y
RUN yum install -y tcsh gcc gcc-c++ make autoconf automake libtool openssl-devel memkind-devel libdb-devel ncurses-devel pam-devel libXmu-devel libXpm-devel motif-devel hwloc-devel ant ant-nodeps javacc junit java-1.7.0-openjdk-devel
RUN mkdir -p build
WORKDIR /build
RUN curl -OL https://github.com/son-of-gridengine/sge/archive/819.tar.gz && tar xzf 819.tar.gz
WORKDIR /build/sge-819/source
RUN sh scripts/bootstrap.sh
RUN ./aimk -no-herd -pam
RUN ./aimk -man
View Emacs.kms
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE KeyboardMappingScheme>
<!-- Written by Qt Creator 4.8.0, 2018-12-15T21:05:52. -->
<mapping>
<shortcut id="Perforce.DiffCurrent"/>
<shortcut id="ModelEditor.Action.Explorer.OpenDiagram"/>
<shortcut id="Macros.ExecuteLastMacro">
<key value="Alt+R"/>
</shortcut>
<shortcut id="Macros.EndMacro">
View instruction.md
View Dockerfile
FROM centos:7
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y gcc gcc-c++ make cmake3 cmake fuse-devel openssl-devel zlib-devel bzip2-devel chrpath patchelf
RUN mkdir -p /build
WORKDIR /build
RUN curl -OL https://libzip.org/download/libzip-1.5.1.tar.gz
RUN tar xzf libzip-1.5.1.tar.gz
WORKDIR /build/libzip-1.5.1
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig LD_LIBRARY_PATH=/usr/local/lib64:/usr/lib64
View simple-repeat.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import cyvcf2
import pyfaidx
import sys
def _main():
parser = argparse.ArgumentParser(description="Simple Repeat Variant Detector")
View transproxy-helper.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import ipaddress
import itertools
import subprocess
import tempfile
import os
import signal
View add_path.sh
function add_path() {
if [ ! -d $1 ];then
return
fi
NEWPREFIX=$1
case ":$PATH:" in
*":$NEWPREFIX/bin:"*) return;;
View insert-pitapa.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import csv
import sqlite3
import sys
import datetime
import pytz
import collections
View hashcat-benchmark.csv
Hash H/s
MD4 8549200000
MD5 4626000000
Half MD5 3157900000
SHA1 2005600000
SHA256 841000000
SHA384 202000000
SHA512 200500000
SHA-3(Keccak) 187100000
SipHash 8700100000
View checkcredit.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import csv
import sqlite3
import sys
import datetime
import pytz
import collections