Skip to content

Instantly share code, notes, and snippets.

View talwai's full-sized avatar

Aaditya Talwai talwai

View GitHub Profile
@audreyfeldroy
audreyfeldroy / pypi-release-checklist.md
Last active February 23, 2023 15:03
My PyPI Release Checklist
  • Update HISTORY.md
  • Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@jszmajda
jszmajda / 1readme.md
Last active September 3, 2022 18:33
Data Serialization: JSON, MsgPack, ProtoBufs
@progrium
progrium / consulkv
Created June 4, 2014 22:21
Consul KV client, depends on jq
#!/bin/bash
CONSUL="localhost:8500"
main() {
case "$1" in
info)
curl -s "$CONSUL/v1/kv/$2" | jq -r .[]
;;
get)
@talwai
talwai / list_venvs.sh
Created July 28, 2014 03:36
List Python versions and packages installed in all virtualenvs under a directory
#!/usr/bin/env bash
: <<'END'
Sample Run: ./list_venvs.sh /Users/talwai/
Sample Output:
-----------------------
DIRECTORY: /Users/talwai/qorpus_env
PYTHON_VERSION: 3.3.2
PACKAGES:
@clutchski
clutchski / install_go.sh
Last active April 26, 2017 20:26
install go quickly
url=https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
out=go.tar.gz
wget -O $out $url
sudo mkdir -p /usr/local/
sudo tar zxfv $out -C /usr/local/
echo '' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin/' >> ~/.bashrc
echo ''
echo "reload your env to get GOPATH. Profiling instructions here: https://golang.org/pkg/net/http/pprof/"