I stopped using GitHub for most things, please find me elsewhere -> https://tyrel.dev/links
tyrelsouza
Follow
- Chapel Hill, NC
- https://tyrel.dev/links/
Block or Report
Block or report tyrelsouza
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
Copy git branch to your clipboard (n...
Copy git branch to your clipboard (needs xsel or pbcopy installed) 1function cpbr {
2if branch=$(git symbolic-ref --short -q HEAD)
3then
4if command -v pbcopy 2>/dev/null; then
5printf "$branch" | pbcopy
-
Import Keybase Keys you are Tracking...
Import Keybase Keys you are Tracking into GnuPG 1import gnupg
2import urllib
3from subprocess import Popen, PIPE
4import os
5from pprint import pprint
-
Get GPG keys from Keybase
Get GPG keys from Keybase 1#!/bin/bash
2keybase list-tracking | while read -r line ; do
3if [ -n "$line" ]; then
4curl -s https://keybase.io/$line/key.asc | gpg --with-fingerprint | sed -n 's/.*=//p' | awk 'NF>1{print $(NF-3)$(NF-2)$(NF-1)$(NF) }' | while read -r key; do
5echo "Trying $line's key: $key"
-
calculate distance on unit sphere wi...
calculate distance on unit sphere with lat long 1def distance_on_unit_sphere(lat1, long1, lat2, long2):
2#http://www.johndcook.com/python_longitude_latitude.html
3degrees_to_radians = math.pi/180.0
4phi1 = (90.0 - lat1)*degrees_to_radians
5phi2 = (90.0 - lat2)*degrees_to_radians
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.