This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [ 1 ]; do date; ping -o -q -t 3 x.x.x.x >/dev/null && echo PASS || echo FAIL; sleep 5; done >~/pinglog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create new env with conda libgcc | |
conda create -n ORFfinder -c anaconda libgcc | |
source activate ORFfinder | |
#Setup scripts to set LD_LIBRARY_PATH | |
mkdir -p $CONDA_PREFIX/etc/conda/activate.d | |
mkdir -p $CONDA_PREFIX/etc/conda/deactivate.d | |
cat <<EOF >$CONDA_PREFIX/etc/conda/activate.d/LD_PATH.sh | |
export LD_LIBRARY_PATH_CONDA_BACKUP=$LD_LIBRARY_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$1" ] #If input arg is non-empty then move on, but if it is prompt for number | |
then | |
LINE="$1" | |
else | |
echo "Enter line to delete of ~/.ssh/known_hosts:" | |
read LINE | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
from Bio import SeqIO | |
for record in SeqIO.parse("test_R1.fq", "fastq"): | |
print ('{}\t{}'.format(record.id, np.mean(record.letter_annotations["phred_quality"]))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
from Bio import SeqIO | |
for record in SeqIO.parse("test_R1.fq", "fastq"): | |
print ('{}\t{}'.format(record.id, np.mean(record.letter_annotations["phred_quality"]))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env GIT_SSL_NO_VERIFY=true git clone https://... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Reads a FASTA file and if >1 sequence has the same description line, | |
it only keeps the longest sequence. It outputs all the sequencs to stdout | |
when complete. | |
""" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil mount `diskutil list | grep "Time Machine" | awk {'print $7'}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsenableroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s SATe-2.2.7 SATe |