Skip to content

Instantly share code, notes, and snippets.

View mokolabs's full-sized avatar

Patrick Crowley mokolabs

View GitHub Profile
@mokolabs
mokolabs / git-add-ignore-space.sh
Created March 1, 2024 21:01 — forked from neilgoldman/git-add-ignore-space-at-eol.sh
Git Add But Ignore Whitespace
git diff -w --no-color | git apply --cached --ignore-whitespace
MISSING LINKS
/ask_an_expert
/better_categories/cell-line-construction/wares
/better_categories/metabolomics/wares
/better_categories/natural-products/wares
/better_categories/neurological/wares
/category/cell-assay-kits-87785
/better_categories/cell-line-construction/wares
/better_categories/metabolomics/wares
/better_categories/natural-products/wares
/better_categories/neurological/wares
/category/cell-assay-kits-87785
/category/cell-based-assays-9
/category/chemical-properties-16
/category/cyp450-assays-388
@mokolabs
mokolabs / sshpass.rb
Created September 20, 2019 16:17 — forked from lalyos/sshpass.rb
brew install sshpass
require 'formula'
class Sshpass < Formula
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz'
homepage 'http://sourceforge.net/projects/sshpass'
sha256 'c3f78752a68a0c3f62efb3332cceea0c8a1f04f7cf6b46e00ec0c3000bc8483e'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
@mokolabs
mokolabs / gist:9f837f36ab05ae456571bf48b7e0efaf
Created November 9, 2016 17:40
macOS Sierra Upgrade Notes
MACOS SIERRA UPGRADE
UPDATE SYSTEM
- Install macOS Sierra 12.1
- Update apps via App Store
- Update apps via third party downloads
PHOTOS.APP
- Update Photo library
@mokolabs
mokolabs / gist:3372944
Created August 16, 2012 19:34
# Heroku account switcher
# Heroku account switcher
function switch() {
rm -rfd ~/.heroku/credentials
cp ~/.heroku_logins/$1 ~/.heroku/credentials
}
def initialize(file)
if File.directory?(file)
file = file + "/data.plist"
end
if File.read(file, 2).unpack('CC') == [0x1f, 0x8b]
file = Zlib::GzipReader.open(file).read
end
@stencil = Plist::parse_xml(file)
def initialize(file)
if File.directory?(file)
file = file + "/data.plist"
end
begin
file = Zlib::GzipReader.open(file).read
rescue
end
def initialize(file)
begin
file = Zlib::GzipReader.open(file).read
rescue
end
@stencil = Plist::parse_xml(file)
end
# Customize prompt
export DISPLAY=:0.0
export PS1="\h:\w $ "