Skip to content

Instantly share code, notes, and snippets.

View jspaezp's full-sized avatar

J. Sebastian Paez jspaezp

View GitHub Profile
@jbellamycarter
jbellamycarter / docker-msconvert.sh
Last active May 6, 2021 20:27
Run `msconvert` on Linux/MacOS. A bash script to parse standard arguments to an `msconvert` Docker container. #docker
#!/bin/bash
# Script to run Proteowizard `msconvert` installed through Docker on Linux/MacOS systems.
# Parses standard command line arguments for `msconvert`. e.g.
# `docker-msconvert data.RAW --zlib --filter "zeroSamples removeExtra" --mz5`
# Requires `msconvert` Docker-container installed as on https://hub.docker.com/r/chambm/pwiz-skyline-i-agree-to-the-vendor-licenses
# Assumes `msconvert` is installed in an environment named 'default', replace this with the appropriate environment name.
# 2019 Jedd Bellamy-Carter
# Modify path strings for docker environment
@lindenb
lindenb / README.md
Last active June 23, 2023 19:41
How to linearize a FASTA sequence using awk.

Linearize a fasta sequence

awk -f linearizefasta.awk < input.fa

or

awk '/^&gt;/ {printf("%s%s\t",(N&gt;0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' &lt; input.fa
@yunga
yunga / Cliref.md
Last active February 1, 2024 00:56
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@arunk-s
arunk-s / backup.sh
Created April 13, 2014 06:36
Shell Script for taking Incremental Backup and store it at a remote place
# backup.sh
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License.
# By Arun Sori <arunsori94@gmail.com>
#For taking backup of the desired directory and store it at a remote place
#timestamp
time_stamp=`date`
#backup file name
@mderazon
mderazon / export-to-csv.gs
Last active April 2, 2024 22:25
Google apps script to export to individual csv files all sheets in an open spreadsheet
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet
* author: Michael Derazon
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
ss.addMenu("csv", csvMenuEntries);

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!