Skip to content

Instantly share code, notes, and snippets.

@nginx-gists
nginx-gists / Dockerfile
Last active June 27, 2024 17:03
Dockerfiles for NGINX Plus R32 (Debian bookworm -12- and Alpine Linux 3.20), from Deploying NGINX and NGINX Plus on Docker (https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-docker)
ARG RELEASE=bookworm
FROM debian:${RELEASE}-slim
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
# Define NGINX versions for NGINX Plus and NGINX Plus modules
# Uncomment this block and the versioned nginxPackages block in the main RUN
# instruction to install a specific release
# ARG RELEASE
# ENV NGINX_VERSION=32
@jakobii
jakobii / HTTPServer.ps1
Last active May 4, 2024 14:02
A Basic Powershell Webserver
# You Should be able to Copy and Paste this into a powershell terminal and it should just work.
# To end the loop you have to kill the powershell terminal. ctrl-c wont work :/
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
@andrewpmiller
andrewpmiller / remove_libreoffice.md
Created November 29, 2015 18:02
Remove libreoffice from a Raspberry Pi
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
var request = require("request");
// var tessel = require('tessel');
// var led1 = tessel.led[0].output(0);
console.log("connecting to skynet");
request.get('http://skynet.im/subscribe',
{headers: {
'skynet_auth_uuid': '196798f1-b5d8-45a0c0308eaa',
'skynet_auth_token': '00cpk8akrmhe0358livn29'
@chrismatthieu
chrismatthieu / gist:7e5b104a634c4268dae6
Created February 27, 2015 16:22
Send Tessel GPS to Octoblu
/**********************************************************
This gps example logs a stream of data:
coordinates, detected satellites, timestamps, and altitude.
For best results, try it while outdoors.
**********************************************************/
var tessel = require('tessel');
var gpsLib = require('gps-a2235h');
var request = require('request');
var querystring = require('querystring');
@jwebcat
jwebcat / gist:5122366
Last active June 20, 2024 13:35 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1