Skip to content

Instantly share code, notes, and snippets.

@randy3k
randy3k / # rstudio-server - 2020-06-03_00-37-06.txt
Created June 3, 2020 01:04
rstudio-server (rstudio-server) on Ubuntu 16.04.6 LTS - Homebrew build logs
Homebrew build logs for rstudio-server on Ubuntu 16.04.6 LTS
Build date: 2020-06-03 00:37:06
@randy3k
randy3k / # boost-rstudio-server - 2020-06-02_18-07-27.txt
Created June 2, 2020 23:41
boost-rstudio-server (boost-rstudio-server) on Ubuntu 20.04 LTS - Homebrew build logs
Homebrew build logs for boost-rstudio-server on Ubuntu 20.04 LTS
Build date: 2020-06-02 18:07:27
@randy3k
randy3k / # rstudio-server - 2020-06-02_22-36-55.txt
Created June 2, 2020 22:55
rstudio-server (rstudio-server) on Ubuntu 20.04 LTS - Homebrew build logs
Homebrew build logs for rstudio-server on Ubuntu 20.04 LTS
Build date: 2020-06-02 22:36:55
@randy3k
randy3k / server.R
Created April 6, 2020 23:11
preview private github repo
library(httpuv)
library(httr)
library(stringr)
app <- list(
call = function(req) {
paths <- str_split(req$PATH_INFO, "/")[[1]]
owner <- paths[2]
repo <- paths[3]
path <- str_c(paths[4:length(paths)])
@randy3k
randy3k / launcher.cc.diff
Created February 14, 2020 04:46 — forked from talonsensei/launcher.cc.diff
Diff of launcher.cc from shiny-server showing the changes necessary to make it work on OS X. From https://github.com/nathanweeks/shiny-server/commit/d5240ef6d795dafc89c74a49d6f14d7fe0509541
@@ -1,1 +1,1 @@
/*
* launcher.cc
*
* Copyright (C) 2009-13 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
@randy3k
randy3k / app.R
Created February 12, 2020 00:35
shiny app with splite
library(shiny)
library(tidyverse)
library(DBI)
con <- dbConnect(RSQLite::SQLite(), dbname = "mtcars.sqlite")
onStop(function() dbDisconnect(con))
# to create the .sqlite file
# con %>% dbWriteTable("mtcars", mtcars)
@randy3k
randy3k / ucdvpn
Last active November 13, 2019 17:03
connect ucd vpn via socks proxy
echo $UCDSECRET | openconnect -b --juniper -u $UCDUSER --passwd-on-stdin --script-tun --script "ocproxy -D 8080" vpn.library.ucdavis.edu
@randy3k
randy3k / # rstudio-server - 2019-04-22_01-41-36.txt
Created April 22, 2019 01:56
rstudio-server on Ubuntu 16.04.6 LTS - Homebrew build logs
Homebrew build logs for rstudio-server on Ubuntu 16.04.6 LTS
Build date: 2019-04-22 01:41:36
@randy3k
randy3k / pre-commit
Created August 30, 2018 15:20
git pre-commit which unstages eol whitespaces
#!/bin/sh
git diff --ignore-space-at-eol -U0 --cached > foo.patch
git reset
git apply --ignore-whitespace --unidiff-zero --cached foo.patch
rm foo.patch
from LSP.plugin.core.handlers import LanguageHandler
from LSP.plugin.core.settings import ClientConfig
class LspRLangPlugin(LanguageHandler):
name = "rlang"
def __init__(self):
self._config = ClientConfig(
name=self.name,
binary_args=[