Skip to content

Instantly share code, notes, and snippets.

View dancingfrog's full-sized avatar
🎸

John Hall dancingfrog

🎸
View GitHub Profile
@dancingfrog
dancingfrog / .deploy-shiny-app.R
Created December 20, 2022 14:39
.deploy-shiny-app.R
if (!require(rsconnect)) {
install.packages("rsconnect")
library("rsconnect")
}
options(rsconnect.max.bundle.size = 9145728000)
# Print a list of app dependencies. Libraries need to be loaded
# before publishing so deployApp() knows what is necessary.
error_on_missing_name <- function(name){
@dancingfrog
dancingfrog / plumber-w-shiny.R
Created December 5, 2022 05:10
Plumber with proxy to Shiny (toy) app running in background cluster
library("future")
library("httr")
library("magrittr")
library("plumber")
library("shiny")
library("uuid")
library("websocket")
library("R6")
shiny_port <- 5174
@dancingfrog
dancingfrog / .gitignore
Last active June 20, 2022 14:01 — forked from dabit3/Dockerfile
Next.js + Fargate Dockerfile
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
@dancingfrog
dancingfrog / render_toc.R
Created February 5, 2022 13:20 — forked from gadenbuie/render_toc.R
Generate Manual Table of Contents in (R)Markdown Documents
#' Render Table of Contents
#'
#' A simple function to extract headers from an RMarkdown or Markdown document
#' and build a table of contents. Returns a markdown list with links to the
#' headers using
#' [pandoc header identifiers](http://pandoc.org/MANUAL.html#header-identifiers).
#'
#' WARNING: This function only works with hash-tag headers.
#'
#' Because this function returns only the markdown list, the header for the
@dancingfrog
dancingfrog / str.rs
Last active April 18, 2021 11:08 — forked from rust-play/playground.rs
Code shared from the Rust Playground
// https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=09a4f12d1c599376037d00f054ac359f
extern crate rand;
use rand::Rng;
use std::str;
// use std::string; // .to_string() is already impl on u8
fn main() {
let mut rng = rand::thread_rng();
let robot = rng.gen::<u8>().to_string();
let greeting: &str = &(format!("Hello, {}!", robot));
@dancingfrog
dancingfrog / .exec-shiny-app.R
Last active December 22, 2023 13:54
.exec-shiny-app.R
#!/usr/bin/env Rscript
# Title : Execute Shiny App
# Objective : Initialize Plumber and run Shiny app as "future" (background) worker as defined by local app.R or server.R/ui.R
# Created by: John Hall
library("future")
library("httr")
library("httpuv")
library("magrittr")
library("plumber")
library("shiny")
@dancingfrog
dancingfrog / UserPermissions.sql
Created January 23, 2020 14:11 — forked from JustinMcNamara74/UserPermissions.sql
#MSSQL List all user permissions/roles for all users
/*
********************************************************************************************************************************
Credits: @Jeremy
Posted: http://stackoverflow.com/questions/7048839/sql-server-query-to-find-all-permissions-access-for-all-users-in-a-database
********************************************************************************************************************************
Security Audit Report
1) List all access provisioned to a sql user or windows user/group directly
2) List all access provisioned to a sql user or windows user/group through a database or application role
3) List all access provisioned to the public role
@dancingfrog
dancingfrog / Steam-on-fedora.md
Created November 22, 2019 14:23 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories

@dancingfrog
dancingfrog / carto-on-prem.md
Created May 26, 2019 10:40
Carto On-Premise Installation

installing onprem 2.2.0

Server set up not included in this install process. For this install we will use the following server:

centos@onprem-install.westeurope.cloudapp.azure.com

prerequisites

For this process, you will need to have 4 links, provided by CARTO, available to you. (these links are generated in jenkins (must VM in))

links:

installers

builder [installer_url] this is an expired example link, use a valid one

@dancingfrog
dancingfrog / .block
Last active January 5, 2019 15:23 — forked from pbeshai/.block
Animate 100,000 points with regl - III
license: mit
height: 720
border: no