This file contains 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
--- | |
- hosts: all | |
gather_facts: no | |
become: yes | |
pre_tasks: | |
- name: install python | |
raw: sudo apt-get install -y -qq python-minimal | |
roles: | |
- some_role |
This file contains 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/sh | |
echo 'on run | |
-- check if Terminal is already running | |
tell application "System Events" | |
set isRunning to (exists process "Terminal") | |
end tell | |
tell application "Terminal" | |
-- if Terminal is running create new window | |
if isRunning then do script "" |
This file contains 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 | |
rm -rf dist build | |
python setup.py py2app | |
productbuild --component dist/AppName.app /Applications dist/AppName.pkg |
This file contains 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/Rscript | |
library(rmarkdown) | |
rmarkdown::render("your-script.R") |
This file contains 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
import std.stdio; | |
import std.file; | |
import std.path; | |
import std.process; | |
import std.algorithm; | |
import std.parallelism; | |
void main(string[] args) { | |
int[string] no_of_reads; |
This file contains 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/Rscript | |
library(foreach) | |
library(doParallel) | |
library(iterators) | |
target_filename <- commandArgs(trailingOnly=T)[1] | |
doc_filename <- commandArgs(trailingOnly=T)[2] | |
if (is.na(doc_filename) || !file.exists(doc_filename) || is.na(target_filename) || !file.exists(target_filename)) { | |
print('Usage: Rscript <script.R> <targets.bed> <doc file>') |
This file contains 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
sudo mdutil -Ea |
This file contains 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 | |
LOG=/path/to/log_file.log | |
>${LOG} | |
exec > >(tee -a ${LOG}) | |
trap "kill -9 $! 2>/dev/null" EXIT | |
exec 2> >(tee -a ${LOG} >&2) | |
trap "kill -9 $! 2>/dev/null" EXIT | |
echo Test 1 |
This file contains 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 | |
zcat ${1} | ./beelinetools.py convert -i - -m /resources/arrays/HumanCore-12-v1/HumanCore-12-v1-0-B.csv -o /tmp | |
timestamp=$(date +%F-%T | tr -d ':') | |
mv /tmp/from_stdin.ped ${2}_${timestamp}.ped | |
mv /tmp/from_stdin.map ${2}_${timestamp}.map |
This file contains 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 | |
echo " | |
CREATE TABLE gadcdc ( | |
'ID' integer, | |
'ALTNAME' text, | |
'DISEASE' text, | |
'DIS_CLAS' text, | |
'CH_BAND' text, | |
'GENE' text, |