Skip to content

Instantly share code, notes, and snippets.

@jimbrig
jimbrig / linux_setup.md
Created January 4, 2021 03:31 — forked from gbingersoll/linux_setup.md
Linux Setup
@jimbrig
jimbrig / WindowsDevSetup.md
Created January 4, 2021 03:32 — forked from gbingersoll/WindowsDevSetup.md
Steps for Setting up a Windows Development Environment

Dev Environment on Windows (without WSL)

These are some notes for setting up a development system on Windows without using Windows Subsystem Linux (WSL). Setting up WSL is also valuable, but in some cases it can be slow or otherwise undesirable, so having a setup that only uses Windows is handy.

This currently focuses on setting up a proper shell built on top of Windows Powershell and Windows Terminal (or Cmder) and then setting up Python and friends in Windows (pyenv, pipenv, etc.).

App Install Plan

Critical

@jimbrig
jimbrig / nginx.conf
Created January 17, 2021 08:24 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jimbrig
jimbrig / file-upload-forms
Created January 17, 2021 22:01 — forked from labnol/file-upload-forms
File Upload Forms for Google Drive
File Upload Forms for Google Drive
----------------------------------
With the File Upload forms, you can upload files of any size and the files are sent directly to the owner’s Google Drive while the form data is saved in a Google Spreadsheet.
A [Pen](https://codepen.io/labnol/pen/QYWvwV) by [Amit Agarwal](https://codepen.io/labnol) on [CodePen](https://codepen.io).
[License](https://codepen.io/labnol/pen/QYWvwV/license).
@jimbrig
jimbrig / nginx.conf
Created January 20, 2021 19:45 — forked from vasantm/nginx.conf
my nginx.conf for nginx to serve shiny apps over ssl
#Here's the updated config,
#I put it all in /etc/nginx/nginx.conf.
#Earlier I had the http directive in nginx.conf and a sites.conf under /etc/nginx/conf.d.
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
@jimbrig
jimbrig / shiny-server.comf
Created January 20, 2021 19:46 — forked from vasantm/shiny-server.comf
shiny server configuration file
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# Define a server that listens on port 3838
server {
listen 3838 127.0.0.1;
# Define a location at the base URL
location / {

Windows 10 version 2004 - Installing Node.js on Windows Subsystem for Linux (WSL/WSL2)

UPDATE (Fall 2020): This gist is an updated version to the Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL) guide, I usually just keep here notes, configuration or short guides for personal use, it was nice to know it also helps other ppl, I hope this one too.

Windows updated windows subsystem for linux to version 2, as the F.A.Q stated you can still use WSL version 1 side by side with version 2. I'm not sure about existing WSL machines surviving the upgrade process, but as always backup and 🤞. NOTE: WSL version 1 is not replace/deprecated, and there ar

Fullstack Speedrun: browser based job dispatcher

I love a good challenge! This is why I become fullstack developer, we never get the simple tasks 😠, there's always a catch: sometime there is technology/hardware limitation, sometime security demands, or more than often plain old tight deadlines.

This post is based on such a solution, as part of my job I needed to devise a quick POC for a job dispatcher where there were some technology limitation: the clients could connect to the server only within a browser embedded within another external application, the browser in question was of course IE 11 and we had no control on the external application. The only resource given to the task was my time, and not much of it...

The solution I found is based on the well known socket.io, it is mature and robust server-client socket communication library, it was quick to setup and had no issues with the limitation I had. I used an existing express server and extend it

@jimbrig
jimbrig / global.R
Created February 1, 2021 22:58 — forked from SachaEpskamp/global.R
A general shiny app to import and export data to R. Note that this can be used as a starting point for any app that requires data to be loaded into Shiny.
library("shiny")
library("foreign")