Skip to content

Instantly share code, notes, and snippets.

@FvD
FvD / app.R
Created September 9, 2019 21:28 — forked from calligross/app.R
Shiny Cookie Based Authentication Example, please visit https://calligross.de/post/using-cookie-based-authentication-with-shiny/ for more information.
library(shiny)
library(shinyjs)
if (!dir.exists('www/')) {
dir.create('www')
}
download.file(
url = 'https://raw.githubusercontent.com/js-cookie/js-cookie/master/src/js.cookie.js',
destfile = 'www/js.cookie.js'
@FvD
FvD / .gitignore
Last active August 29, 2015 00:12
Standard .gitignore file for python projects
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@FvD
FvD / xclipR.R
Created August 26, 2015 22:44
A clipboard function for R using xclip on ubuntu
# from http://stackoverflow.com/questions/10959521/how-to-write-to-clipboard-on-ubuntu-linux-in-r
clipboard <- function(x, sep="\t", row.names=FALSE, col.names=TRUE){
con <- pipe("xclip -selection clipboard -i", open="w")
write.table(x, con, sep=sep, row.names=row.names, col.names=col.names)
close(con)
}
# update apt sources and distribution
sudo apt-get update
sudo apt-get dist-upgrade
# update pip
sudo apt-get install python-dev libffi-dev libssl-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install --upgrade ndg-httpsclient

Keybase proof

I hereby claim:

  • I am fvd on github.
  • I am fvd (https://keybase.io/fvd) on keybase.
  • I have a public key whose fingerprint is DDB6 7D18 BD51 E4D1 E0B7 7DD5 C241 E497 EA49 211E

To claim this, I am signing this object:

var _ = require('underscore');
var http = require('http');
var httpProxy = require('http-proxy');
var https = require('https');
var fs = require('fs');
var opts = require('optimist')
.usage('Test auth proxy.\nUsage: $0 [extPort] [destPort] [destHostName] --ssl')
.describe('ssl', 'Enable SSL on both the client and expect it on the target.')
.demand(0);