Skip to content

Instantly share code, notes, and snippets.

BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Winchester Waste Collection C24
X-WR-TIMEZONE:Europe/London
BEGIN:VEVENT
DTSTART;VALUE=DATE:20231012
DTEND;VALUE=DATE:20231013
const stateKey = 'nyt-wordle-state';
var statsKey = 'nyt-wordle-statistics';
var str = 'Clipboard';
try {
var json = JSON.parse(atob(str));
if (json.gameState == null || json.statistics == null) throw 'err';
window.localStorage.setItem(stateKey, JSON.stringify(json.gameState));
window.localStorage.setItem(statsKey, JSON.stringify(json.statistics));
} catch(err) {
alert('Can\'t read the input.');
@anyhotcountry
anyhotcountry / Dockerfile
Last active May 3, 2022 14:03
Dockerfile to compile the ModSecurity-nginx connector. The distribution can then be copied to your local file system.
FROM ubuntu:hirsute
ARG NGINX_VER=1.20.2
RUN apt-get update && \
apt-get install -y apt-utils autoconf automake build-essential git libcurl4-openssl-dev libgeoip-dev liblmdb-dev libpcre++-dev libtool libxml2-dev libyajl-dev pkgconf wget zlib1g-dev
WORKDIR /root
RUN git clone --depth 1 -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity
WORKDIR /root/ModSecurity
RUN git submodule init && \
git submodule update && \
./build.sh && \
@anyhotcountry
anyhotcountry / delete.sh
Created June 27, 2019 14:45
az cli delete all resource groups without locks
for i in `az group list -o tsv --query [].name`; do if [ "$(az lock list -g $i -o tsv --query [].name)" ]; then echo "$i have a lock"; else az group delete -n $i -y --no-wait; fi; done
@anyhotcountry
anyhotcountry / kids.sh
Created February 10, 2018 20:14
LEDE script to setup kids WiFi
#!/bin/sh
start='18:00:00'
early_end='19:00:00'
end='08:30:00'
ssid='KIDZ'
pass='KidsAreCool'
allowip() {
rule=$1