Skip to content

Instantly share code, notes, and snippets.

fearthecowboy / Test.csproj
Last active Dec 31, 2020
The definitive way to use PowerShell from an msbuild script
View Test.csproj
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="">
<!-- #1 Place this line at the top of any msbuild script (ie, csproj, etc) -->
<PropertyGroup><PowerShell># 2>nul || type %~df0|find /v "setlocal"|find /v "errorlevel"|powershell.exe -noninteractive -&amp; exit %errorlevel% || #</PowerShell></PropertyGroup>
<!-- #2 in any target you want to run a script -->
<Target Name="default" >
<PropertyGroup> <!-- #3 prefix your powershell script with the $(PowerShell) variable, then code as normal! -->
boneskull / proxy
Created Jan 26, 2016
example nginx config to reverse proxy a node-red server (websocket support)
View proxy
server {
listen 80;
server_name your_server_name;
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://localhost:1880;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
igrr / AboutPage.h
Created Oct 6, 2015
Custom ESP8266WebServer RequestHandler sample
View AboutPage.h
#ifndef ABOUT_PAGE_H
#define ABOUT_PAGE_H
#include <ESP8266WebServer.h>
class AboutPage : public RequestHandler {
AboutPage(const char* uri = "about")
: _uri(uri)
You can’t perform that action at this time.