Skip to content

Instantly share code, notes, and snippets.

@jniltinho
jniltinho / install_dotnet-sdk.sh
Last active February 5, 2023 12:28
Install .NET Core 2.0.0 SDK for Ubuntu 16.04
#!/bin/bash
## Install .NET Core 2.0.0 SDK on Ubuntu 16.04 64Bits
## Author: Nilton OS www.linuxpro.com.br
## https://www.microsoft.com/net/core#linuxubuntu
## https://docs.microsoft.com/en-us/aspnet/core/publishing/apache-proxy
## https://medium.com/@renato.groffe/net-core-e-sql-server-em-linux-primeiros-passos-89a7cb475ebd
## Version 0.1
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
@jeffjohnson9046
jeffjohnson9046 / sinatra-server.rb
Last active June 3, 2020 23:51
A simple sinatra server that accepts a POST with JSON content.
# To make this server publicly available on the inter-webs while running from localhost, use ngrok, which can be found here:
# https://ngrok.com/download. Follow the installation instructions for ngrok and start it up:
#
# ./ngrok 4567 # (or whatever port you want to listen on).
#
# ngrok will spit out an ugly but unique URL. After ngrok starts up, you should be able to POST to the sinatra server:
#
# http://6eee766f.ngrok.com/payload
require 'sinatra'
require 'json'