Skip to content

Instantly share code, notes, and snippets.

View typhonius's full-sized avatar

Adam Malone typhonius

View GitHub Profile
wget https://openresty.org/download/openresty-1.9.7.3.tar.gz
tar -zxvf openresty-1.9.7.3.tar.gz
cd openresty-1.9.7.3
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.zip
unzip pcre-8.38.zip
rm -rf pcre-8.38.zip
wget https://www.openssl.org/source/openssl-1.0.1r.tar.gz
tar -zxvf openssl-1.0.1r.tar.gz
rm -rf openssl-1.0.1r.tar.gz
sudo ./configure --prefix=/opt --with-pcre-jit --with-ipv6 --with-pcre=pcre-8.38/ --with-openssl=openssl-1.0.1r/
@typhonius
typhonius / worker-purger.js
Last active August 26, 2020 00:47
Purge selected files depending on publish or update webhook action with Ghost and Cloudflare
/* eslint-disable no-undef */
const url = require('url');
function generateSimpleResponse(httpCode, strMessage) {
return new Response(JSON.stringify({ result: strMessage }), {
status: httpCode,
headers: {
'Content-Type': 'application/json',
},
});
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH