Skip to content

Instantly share code, notes, and snippets.

Carl Leubsdorf, Jr. carlthewebmaster

Block or report user

Report or block carlthewebmaster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View summary.md

On April 23 and 24 a group of NCBI computer scientists, subject matter experts and customer service representatives conducted an in-house tool building exercise focused on building a prototype “what’s in my tube” workflow. This event was an attempt at converting the lessons learned from the January virus hackathon into a prototype tool that strings together the disparate computational steps used in the hackathon into a single, modular pipeline that sequentially analyzes the content of user provided next generation sequencing data.

The pipeline was built into a stand-alone Jupyter notebook interface that allows users to see and edit analysis parameters and view graphic displays of results.

While the April event resulted in the basic coding of the pipeline and an initial (MVP) approach to how to run the pipeline in GCP, work remains, particularly in fleshing out effective ways to host and run Jupyter Notebooks on GCP (including access to BLAST, scaling architecture, and visualizations). By the end of the two

View proxy.ps1
$Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$proxyServer = Get-ItemProperty -path $Path ProxyServer -ErrorAction SilentlyContinue
if([string]::IsNullOrEmpty($proxyServer)){
Set-ItemProperty -path $Path ProxyEnable -value 1
Set-ItemProperty -path $Path ProxyServer -Value "localhost:3128"
Write-Host "Proxy is enabled"
}
else {
View v21-new-only.txt
.\js\textorum\cakefile
.\js\textorum\gemfile
.\js\textorum\gemfile.lock
.\js\textorum\gruntfile.js
.\js\textorum\package.json
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\_jstree.scssc
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\_textorum.scssc
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\editor.scssc
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\plugin.scssc
.\js\textorum\.tmp\textorum-rjs.js
View wp-update-all.sh
# Carl's wp updater
# assumes wp-cli is aliased to wp
wp core check-update
read -r -p "Update Core? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then
wp core update
fi
View anno-custom-header-size.php
<?php
// Add the following function to a child theme or plugin:
function anno_custom_header_size() {
Anno_Keeper::keep( 'header_image', new Anno_Header_Image( 'header', array (1265, 110 ) ) );
}
// Priority 10 to come in after the annotum's initial template initialization.
add_action( 'after_setup_theme', 'anno_custom_header_size', 10 );
@carlthewebmaster
carlthewebmaster / example.md
Last active Aug 29, 2015
Github markdown syntax highlighting
View example.md

Github Synxax highlighting

Some Ruby:

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

Some C++:

@carlthewebmaster
carlthewebmaster / apt-get-new.sh
Last active Aug 29, 2015
apt-get for new linux setup - ubuntu
View apt-get-new.sh
sudo apt-get install vim wget curl git subversion zip ssmtp
sudo apt-get install tasksel
sudo tasksel install lamp-server
# don't forget these steps for crouton installs! https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton
sudo apt-get install phpmyadmin ssmtp man weather-utils
# wordpress setup with a2ensite http://linuxconfig.org/wordpress-installation-ubuntu-linux-apache-mysql
View docker-vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@carlthewebmaster
carlthewebmaster / ls-to-dig.sh
Created Dec 14, 2013
DNS Dump from list of domains.
View ls-to-dig.sh
ls | xargs -L1 dig @ns1.mediatemple.net -t ANY > all-dns.txt
View ssmtp.conf
root=mygmailusername@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=mygmailusername@gmail.com
AuthPass=mypassword
UseSTARTTLS=YES
You can’t perform that action at this time.