Skip to content

Instantly share code, notes, and snippets.

@veziak
veziak / gist:d455df1a812bbd8b33b1fc18d532bf83
Last active February 13, 2025 16:48
example of fastly logs streaming request to HTTPS service
{
"timestamp": "2025-02-13T16:19:17+0000",
"client_ip": "2.96.155.166",
"geo_country": "united kingdom",
"geo_city": "greenwich",
"host": "veziak.global.ssl.fastly.net",
"url": "/",
"request_method": "GET",
"request_protocol": "HTTP/1.1",
"request_referer": "",
; Skips the gentle method of activating a window and goes straight to the forceful method.
#WinActivateForce
; Don't display a tray icon
; #NoTrayIcon
; Things to do before moving a window
MoveInit:
WinGet, maximized, MinMax, A
if (maximized)
@veziak
veziak / gglCalEventsOnSpreadSheet.gs
Created February 19, 2017 19:15 — forked from paucoma/gglCalEventsOnSpreadSheet.gs
Script to read Google Calendar Events and Count total Hours
var gblFromYear = 2015;
var gblToYear = 2015;
var gblFromMonth = 01;
var gblToMonth = 04;
var gblFromDay = 01;
var gblToDay = 01;
var gblCalendarName = "Work";
var gblEventQuery = "TT";

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt