This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. Replace DOMAIN with actual domain. | |
1. Renew Let's Encrypt certificate. | |
sudo certbot certonly --debug --force-renew -a manual -d DOMAIN | |
2. Update Heroku certificate. | |
sudo heroku certs:update /etc/letsencrypt/live/DOMAIN/fullchain.pem /etc/letsencrypt/live/DOMAIN/privkey.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires: | |
// Leaflet: http://leafletjs.com/ | |
// Leaflet.curve: https://github.com/elfalem/Leaflet.curve | |
// | |
// Assumes: | |
// var map is a Leaflet map and already set up. | |
var latlngs = []; | |
var latlng1 = [LATITUDE, LONGTITUDE], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function linkBills(text, newWindow=true) { | |
const year = 2022; | |
const regex = /([HS]C?[BR]) ?(\d{1,4})/g; | |
const target = newWindow ? "target='_blank'" : ""; | |
return text.replaceAll(regex, `<a href="https://www.capitol.hawaii.gov/measure_indiv.aspx?billtype=$1&billnumber=$2&year=${year}" ${target}>$1 $2</a>`); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceZoomRegistration(html) { | |
const regex = />(http.+zoom.us\/meeting\/register.+?)</gi; | |
if (!!html.match(regex)) { | |
return html.replaceAll(regex, `><iframe src="$1" frameborder="0" style="width: 100%; height: 100vh">Loading…</iframe> | |
<p style="font-size: 0.8em; font-style: italic;">Can’t see the registration form? <a href="$1" target="_blank">Click here to open it in a new window.</a></p><`); | |
} | |
return html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<option value="AL">AL</option><option value="AK">AK</option><option value="AS">AS</option><option value="AZ">AZ</option><option value="AR">AR</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DE">DE</option><option value="DC">DC</option><option value="FL">FL</option><option value="GA">GA</option><option value="GU">GU</option><option value="HI">HI</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="IA">IA</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="ME">ME</option><option value="MD">MD</option><option value="MA">MA</option><option value="MI">MI</option><option value="MN">MN</option><option value="MS">MS</option><option value="MO">MO</option><option value="MT">MT</option><option value="NE">NE</option><option value="NV">NV</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><opt |
OlderNewer