Skip to content

Instantly share code, notes, and snippets.

@endophage
endophage / unwatch_gh_org.js
Created August 13, 2018 16:29
Unwatch org in GitHub
// From https://github.com/isaacs/github/issues/641#issuecomment-328716343
// 1. Go to https://github.com/watching
// 2. Open JS console and paste in function
// 3. Call function with desired org you want to unwatch.
function unwatchOrgRepos(orgName) {
var repoItems = document.querySelectorAll(".repo-list > li")
repoItems.forEach(function (item) {
var repoOrgElement = item.querySelector(".repo-name").previousElementSibling;
var repoOrgName = repoOrgElement.innerText;
if (repoOrgName === orgName) {
#! /bin/bash
SERVER=https://pytuf.heliocide.org
GUN=pypi.io
target=echo $2 | sed "s/==/-/"
hash=notary -s $SERVER lookup $GUN $target | awk '{print $2}'
echo "$2 --hash=$hash" > /tmp/requirements.txt
# docker run -it --rm -v keybase:/home/keybase keybase:latest
FROM ubuntu:16.04
ENV HOME /home/keybase
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
&& curl -O https://dist.keybase.io/linux/deb/keybase-latest-amd64.deb \
# Bash wrapper to change directory to the output of gocd
gocd () {
if [ -d "$GOPATH/src/$1" ]; then
cd "$GOPATH/src/$1"
fi
}
# Optional tab completion wrapper for $GOPATH/src
_gopath () {
local cur
@endophage
endophage / keybase.md
Last active September 12, 2019 20:55

Keybase proof

I hereby claim:

  • I am endophage on github.
  • I am endophage (https://keybase.io/endophage) on keybase.
  • I have a public key ASBeNVTR_bJxSbFnIemnz5vWEx-PSuAyMWXZgntA6tW8ygo

To claim this, I am signing this object: