Skip to content

Instantly share code, notes, and snippets.

View nopdotcom's full-sized avatar

Jay Carlson nopdotcom

  • No Operation Partners
View GitHub Profile
@nopdotcom
nopdotcom / iter-vs-func.ipynb
Created August 30, 2021 19:40
Microbenchmarking iterative vs functional style
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nopdotcom
nopdotcom / elif.ipynb
Created June 1, 2021 16:01
Python 3.9 on MBA M1: hash of functions, vs elif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nopdotcom
nopdotcom / man-no-justification
Last active May 12, 2018 17:37
Stop the madness of fully-justified manpages on Linux
# alias man='man --nh --nj'
export MANOPT='--nh --nj'
@nopdotcom
nopdotcom / streisand-depends.sh
Last active October 27, 2017 12:46
Script to install all StreisandEffect/streisand dependencies on Ubuntu
#!/bin/bash
### STREISAND RUNTIME DEPENDENCIES BEGIN HERE
apt-get --yes install python-pip git build-essential python-dev python-setuptools python-cffi libffi-dev libssl-dev python-nacl
# We only really wanted python-pip for its dependencies.
pip install --upgrade pip
# The pip we want should be in /usr/local now. Don't fail if it didn't install right.
hash -r
pip install boto boto3 "ansible[azure]" dopy==0.3.5 "apache-libcloud>=1.5.0" linode-python pyrax
pip install ansible
@nopdotcom
nopdotcom / file-fragments
Created October 11, 2017 16:18
Stop the madness of fully-justified manpages on OS X aka macOS
.bash_profile fragment:
export GROFF_TMAC_PATH="$HOME/Documents/tmac"
----
~/Documents/tmac/man.local:
.\" This file is loaded after an-old.tmac.
.\" Put any local modifications to an-old.tmac here.
.ad l
.nh
@nopdotcom
nopdotcom / gist:a4a26477c70483833a040e2fd8908c4e
Created October 11, 2017 16:17
Stop the madness of fully justified manpages on OS X aka macOS
.bash_profile fragment:
export GROFF_TMAC_PATH="$HOME/Documents/tmac"
----
~/Documents/tmac/man.local:
.\" This file is loaded after an-old.tmac.
.\" Put any local modifications to an-old.tmac here.
.ad l
.nh
@nopdotcom
nopdotcom / Documents-tmac-man.local
Created October 11, 2017 16:14
Stop the madness of fully-justified manpages on OS X (aka macOS)
.\" This file is loaded after an-old.tmac.
.\" Put any local modifications to an-old.tmac here.
.ad l
.nh
@nopdotcom
nopdotcom / Documents-tmac-man.local
Last active October 11, 2017 16:12
Stop the madness of fully justified text in manpages on OS X aka macOS
.\" This file is loaded after an-old.tmac.
.\" Put any local modifications to an-old.tmac here.
.ad l
.nh
class AnsibleAT23 < Formula
include Language::Python::Virtualenv
desc "Automate deployment, configuration, and upgrading"
homepage "https://www.ansible.com/"
url "https://releases.ansible.com/ansible/ansible-2.3.2.0.tar.gz"
sha256 "0563b425279422487f12616ef719f6e558373b258dcf47e548d119be8d3168eb"
head "https://github.com/ansible/ansible.git", :branch => "devel"
depends_on "pkg-config" => :build