Serverless to HTTP Handler:
Password hashing:
Encrypted cookies:
OAuth2 library:
func DisableCachingAndSniffing(next http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate;") | |
w.Header().Set("pragma", "no-cache") | |
w.Header().Set("X-Content-Type-Options", "nosniff") | |
next.ServeHTTP(w, r) | |
}) | |
} |
Serverless to HTTP Handler:
Password hashing:
Encrypted cookies:
OAuth2 library:
{"lightId":"1","states":[true,true,true,true,true]} |
I hereby claim:
To claim this, I am signing this object:
#include <U8x8lib.h> | |
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/15, /* data=*/4, /* reset=*/16); | |
// Timer setup. | |
volatile int interruptCounter; | |
volatile int totalInterruptCounter; | |
hw_timer_t *timer = NULL; | |
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED; |
var path = require('path'); | |
const redirects = { | |
"/about-us": { to: "/about", statusCode: 301 }, | |
"/contact-us/head-office": { to: "/contact/head-office", statusCode: 302 }, | |
}; | |
exports.handler = async event => { | |
const { request } = event.Records[0].cf; | |
const normalisedUri = normalise(request.uri); |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Sets up the required resources for the website at example.com | |
Parameters: | |
DomainName: | |
Type: String | |
Description: The website domain name. | |
Default: example.co.uk | |
RedirectTo: | |
Type: String |
Check that my program is free from known security vulnerabilities.
For example, if a package I'm using has a security vulnerability in it, I want to be notified to upgrade or warned.
Checked the https://nvd.nist.gov/vuln/search for Go related issues, but found that only core packages were listed. I noticed that some packages had vulnerabilities listed (e.g. https://nvd.nist.gov/vuln/detail/CVE-2018-1002207) but couldn't work out how to find them programatically. I wrote a program to scan the NIST database for Go language related vulnerabilities and to let me know anyway - https://github.com/a-h/nvdnotifier
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
#include <WiFiServerSecure.h> | |
#include <WiFiClientSecure.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <WiFiUdp.h> | |
#include <ESP8266WiFiType.h> | |
#include <ESP8266WiFiAP.h> | |
#include <WiFiClient.h> | |
#include <WiFiServer.h> | |
#include <ESP8266WiFiScan.h> |