Skip to content

Instantly share code, notes, and snippets.

View jimtalksdata's full-sized avatar
🤓

jimtalksdata

🤓
View GitHub Profile
CmdUtils.CreateCommand({
name: "ncbi-pubmed",
takes: { "query": noun_arb_text },
description: "Searches NCBI for PubMed articles.",
help: "Please enter a query to search NCBI PubMed. Both natural text and expressions should work.",
_base_url: "http://www.ncbi.nlm.nih.gov/sites/entrez?db=pubmed&cmd=search&term=",
_help: "Enter a query to search NCBI PubMed.",
// Change results to show
#!/usr/bin/perl
# Report.pl
# This script scans for backups in the specified directories (@DIRINDEX)
# and generates log files for each cobian backup set detected in each
# of these directories. These log files are generated by the list command
# in 7z. Optionally password protected archives can be opened by
# specifying the password after the option -p (e.g. ./report.pl -p password).
#USER CONFIGURBLE PARAMETERS
ScriptName LevitationEffectScript
;*******************************
;
; This script current on gist:
; http://gist.github.com/428779
;
;*******************************
; Author: Saltare
; Email: Saltare_ferocan@hotmail.com
Sub Process_0_1_genuniquepeptides()
'
' Counts # of unique peptides per reference.
'
'
LastRow = ActiveSheet.UsedRange.Rows.Count
LastCol = ActiveSheet.Range("a1").End(xlToRight).Column
DD-WRT config:
insmod /lib/modules/`uname -r`/kernel/net/ipv6/sit.ko
sleep 5
HOST6RD=$(nslookup 6rd.comcast.net |grep "Address"|awk '{ print $3 }'|grep -v 192.168.1.1 -m1)
WANIP=$(ip -4 addr show dev vlan2 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
if [ -n "$WANIP" ]
then
V6PREFIX=$(printf ' 2001:55c:%02x%02x:%02x%02x' $(echo $WANIP | tr . ' '))
ip tunnel add tun6rd mode sit ttl 255 remote any local $WANIP
@jimtalksdata
jimtalksdata / vscript.sh
Created June 2, 2011 16:01
Prototype vina script for resume support and error handling of multiple runs
#!/bin/bash
echo "Short and simple VINA docking script - Jim"
echo ""
if [ $# -eq 0 ]
then
echo "Please enter the protein to dock (do not put the extension in): "
read prot
fi
if [ $# -eq 1 ]
then
04a5b6d5f052d2ed2b22a9dc61a31b7359234258c9d0d2cdd1535a63d84dae7f55090d7325acbf4acf4190ab913c324c1c7082046e95b5ba6d698843cc28982186;romanornr
@jimtalksdata
jimtalksdata / RefreshImports.gs
Created March 14, 2018 23:17
Google sheets - RefreshImports
/**
* Go through all sheets in a spreadsheet, identify and remove all spreadsheet
* import functions, then replace them a while later. This causes a "refresh"
* of the "import" functions. For periodic refresh of these formulas, set this
* function up as a time-based trigger.
*
* Caution: Formula changes made to the spreadsheet by other scripts or users
* during the refresh period COULD BE OVERWRITTEN.
*
* From: https://stackoverflow.com/a/33875957/1677912
@jimtalksdata
jimtalksdata / ImportJSON.gs
Created March 14, 2018 23:18
Google sheets - ImportJSON
/*====================================================================================================================================*
ImportJSON by Brad Jasper and Trevor Lohrbeer
====================================================================================================================================
Version: 1.4.0
Project Page: https://github.com/bradjasper/ImportJSON
Copyright: (c) 2017 by Brad Jasper
(c) 2012-2017 by Trevor Lohrbeer
License: GNU General Public License, version 3 (GPL-3.0)
http://www.opensource.org/licenses/gpl-3.0.html
------------------------------------------------------------------------------------------------------------------------------------
@jimtalksdata
jimtalksdata / TwitterExporter.gs
Created March 14, 2018 23:19
Google Sheets - Twitter Export 3.2.3
// Copyright 2014 Martin Hawksey. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,