Skip to content

Instantly share code, notes, and snippets.


William Jacoby bonelifer

View GitHub Profile

Generating SSL keys for development


Thanks to minica it is very easy to create trusted SSL certificates that have a very long expiration date.

In order to get started you have to have the go tools installed and set up correctly in your environment.


bonelifer /
Created Sep 20, 2020 — forked from jfcarr/
"Feels Like" (temperature) Calculation in Python
# I use a Python script to pull current weather conditions from the NOAA web service API. The NOAA web
# service does not return a windchill value for all locations, but given temperature, relative humidity,
# and wind speed you can calculate a “feels like” temperature as follows.
# This code assumes units of Fahrenheit, MPH, and Relative Humidity by percentage. In this example, a
# temperature of 35F, wind speed of 10mph, and relative humidity of 72% yields a "feels like" value of 27.4F
import math
vTemperature = float(35)
bonelifer / fc.php
Last active Sep 20, 2020
Get weather for today
View fc.php
require_once 'noaa/Forecaster.php';
$config = new \noaa\weather\Configuration();
$myWritableCacheDirectory = dirname(__FILE__) . '/cache';
$config->setCache(new \noaa\weather\cache\FileCache($myWritableCacheDirectory));
$forecaster = new \noaa\Forecaster($config);
// Function to calculate HeatIndex
function heatIndex($currTempF,$currentHumidity){
## Function Found at
bonelifer / userChrome.css
Created Sep 4, 2020 — forked from Jakob-PB/userChrome.css
My custom userChrome.css file I use for tweaking Firefox's behaviour
View userChrome.css
/*** BEGIN - Override URL bar enlargement ***/
/* Compute new position, width, and padding */
#urlbar[breakout][breakout-extend] {
top: 5px !important;
left: 0px !important;
width: 100% !important;
padding: 0px !important;
bonelifer /
Created Sep 4, 2020 — forked from mbohun/
simple and easy github gist backup
#!/usr/bin/env bash
for url in `./ $GIST_TOKEN /gists | jq -r '.[]|.git_pull_url'`
git clone ${url};
bonelifer /
Created Sep 4, 2020 — forked from haisum/
Create and upload github releases
go get
echo "export GITHUB_TOKEN=$1" >> ~/.bash_profile;
git tag v0.0
git push --tags
github-release.exe -v release --repo focusedu --user haisum -t v0.0 -d "Static file server"
github-release.exe -v upload --repo focusedu --user haisum -t v0.0 -n focusedu.exe -f focusedu.exe
bonelifer /
Created Sep 4, 2020 — forked from moqmar/
Get the latest release download from GitHub
file=0 # use the first file
# with jq (recommended if available)
wget${repo}/releases/latest -qO- | jq -r ".assets[${file}].browser_download_url"
# - or -
curl${repo}/releases/latest -so- | jq -r ".assets[${file}].browser_download_url"
file=$(($file + 1)) # WARNING: sed uses 1-based indices!
bonelifer /
Created Sep 4, 2020 — forked from vinayr/
List all your github repos
curl | jq '.[] | select(.permissions.admin == true) | .html_url'
View better-gh-issue-labels
echo -n "Github Username: "
read USER
echo -n "Password: "
read PASS
echo -n "Repo (e.g. cyclejs/core); "
read REPO
bonelifer /
Created Sep 4, 2020 — forked from oelna/
Export Github issues from the command line
echo "Please enter your Github username"
read username
echo "Please enter your Github password"
read -s password
echo "What is the Github repo you'd like to download issues from?"
echo "Format is user/repo"
You can’t perform that action at this time.