Skip to content

Instantly share code, notes, and snippets.

View Lewiscowles1986's full-sized avatar

Lewis Cowles Lewiscowles1986

View GitHub Profile
Lewiscowles1986 / ConsCarCdr.js
Last active September 19, 2023 07:54 — forked from scotthaleen/ConsCarCdr.js
JavaScript implementation of cons, car and cdr
View ConsCarCdr.js
* Generic Container, which can contain a single item, and the next item as a function
function cons(value, next) {
return function wrap(wrapper) { return wrapper(value, next) };
* Get value of item by calling unwrap function, taking value
Lewiscowles1986 /
Last active February 6, 2024 15:13 — forked from kafran/
Python 3 script to extract images from HTTP Archive (HAR) files
import json
import base64
import os
import pathlib
from urllib.parse import urlparse
# list of supported image mime-types
# Special thanks to
# Special mention, and thanks to MDN
View docker-compose.yml
version: '3.5'
# LewisCowles local docker-compose partial for Minio/S3
image: minio/minio
- 9000:9000
restart: always
- ./data/minio:/data
Lewiscowles1986 / console filter (chrome)
Created July 4, 2021 10:20
Make JitSi meet external frame API Shut the fuck up
View console filter (chrome)
-url: -url: -url:chrome-extension://invalid/ -url: -url: -url: -url:
Lewiscowles1986 /
Last active June 13, 2020 08:53 — forked from lttlrck/gist:9628955
rename git branch locally and remotely

Git Rename Script

This is a fork of to make the renaming of branches simpler.


  1. Ensure the script is executable.
  2. [oldbranchname] newbranchname [upstreamname]


sudo tar -xzf ~/Downloads/VSCodium-linux-x64*.tar.gz -C . && rm ~/Downloads/VSCodium-linux-x64*
Lewiscowles1986 / Build and push to dockerhub
Created April 7, 2020 16:20
Build and push to dockerhub
View Build and push to dockerhub
name: Docker Image CI
branches: [ master ]
branches: [ master ]
Lewiscowles1986 / math_spelunk.c
Created March 3, 2020 22:45
Spelunking through math.h to try to find understanding
View math_spelunk.c
#include <stdint.h>
#include <string.h>
#define for_endian(size) for (int i = 0; i < size; ++i)
#define for_endian(size) for (int i = size - 1; i >= 0; --i)