Skip to content

Instantly share code, notes, and snippets.

View hrbrmstr's full-sized avatar
💤
#tired

boB Rudis hrbrmstr

💤
#tired
View GitHub Profile
https://publicwww.com/websites/NoSuchBucket/
aws s3 mb s3://BUCKET_NAME
aws s3 cp SOMEFILE s3://BUCKET_NAME SOMEFILE
{
"Version":"2018-01-01",
"Statement":[{"Sid":"AddPerm","Effect":"Allow","Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::BUCKET_NAME/*"] }]
@hrbrmstr
hrbrmstr / orig.png
Last active July 16, 2023 06:43
Supreme Annotations - moar splainin here: http://rud.is/b/2016/03/16/supreme-annotations/ - NOTE: this requires the github version of ggplot2
orig.png

First Post

Aliquip exercitation velit ea. Adipisicing reprehenderit nulla anim quis dolor veniam. Et enim ut sint enim eiusmod. Officia sit consectetur sit commodo nisi esse aute incididunt reprehenderit exercitation sunt in non. Ipsum irure in adipisicing Lorem nulla aliquip ut reprehenderit elit minim fugiat esse dolore. Qui cupidatat cupidatat officia fugiat aliquip.

Qui irure aute exercitation adipisicing. Lorem ullamco anim ex elit exercitation nostrud do. Ex esse tempor pariatur incididunt. Nisi ullamco est nisi amet nostrud ut. Amet excepteur voluptate aliqua nisi elit quis. Ex magna quis fugiat do sint id. Nostrud culpa aute eiusmod enim laborum in ullamco nostrud qui eiusmod cillum. Fugiat laborum ex sunt culpa cillum cillum nisi magna.

Ut Lorem est nisi proident cillum dolor ipsum ullamco labore do pariatur. Laborum in aliqua eu reprehenderit. Sint qui dolore commodo ipsum officia mollit eu id laborum deserunt amet cupidatat id incididunt. Qui sint sint ex consequat nulla fugiat. Voluptate veni

@hrbrmstr
hrbrmstr / webr-experiments.R
Created April 8, 2023 10:50
Janky R script to create the HTML page for https://rud.is/webr-experiments/
#!/usr/bin/env Rscript
library(httr, include.only = c("GET", "add_headers", "content"))
library(jsonlite, include.only = c("fromJSON", "write_json"))
library(glue, include.only = c("glue"))
GITHUB_TOKEN <- Sys.getenv("GITHUB_TOKEN")
JSON_FILE <- "webr-experiments.json"
HTML_FILE <- "webr-experiments/index.html"
@hrbrmstr
hrbrmstr / do_rpt.r
Last active March 16, 2023 21:51
parallel, parameterized knitr reports
library(doParallel)
rpts <- list(list(out="one.html", params=list(some_var="One")),
list(out="two.html", params=list(some_var="Two")),
list(out="three.html", params=list(some_var="Three")),
list(out="four.html", params=list(some_var="Four")))
do_rpt <- function(r) {
require(rmarkdown)
library(maptools)
library(ggplot2)
library(gridExtra)
library(scales)
# adapted from http://r.789695.n4.nabble.com/maptools-sunrise-sunset-function-td874148.html
ephemeris <- function(lat, lon, date, span=1, tz="UTC") {
lon.lat <- matrix(c(lon, lat), nrow=1)
@hrbrmstr
hrbrmstr / all_email_provider_domains.txt
Created August 5, 2022 13:50 — forked from pratikt/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@hrbrmstr
hrbrmstr / all_email_provider_domains.txt
Created August 5, 2022 13:49 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@hrbrmstr
hrbrmstr / phantomjs.R
Created December 29, 2014 15:29
Scraping gnarly sites with phantomjs & rvest
library(rvest)
# example of using phantomjs for scraping sites that use a twisty maze
# of javascript to render HTML tables or other tags
# grab phantomjs binaries from here: http://phantomjs.org/
# and stick it somehere PATH will find it
# this example scrapes the user table from: