Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Lewiscowles1986's full-sized avatar
🤓

Lewis Cowles Lewiscowles1986

🤓
View GitHub Profile
@Lewiscowles1986
Lewiscowles1986 / ConsCarCdr.js
Last active September 19, 2023 07:54 — forked from scotthaleen/ConsCarCdr.js
JavaScript implementation of cons, car and cdr
/**
* 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
Lewiscowles1986 / extract_har.py
Last active April 14, 2024 21:27 — forked from kafran/extract_har.py
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 https://gist.github.com/FurloSK/0477e01024f701db42341fc3223a5d8c
# Special mention, and thanks to MDN
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
version: '3.5'
services:
# LewisCowles local docker-compose partial for Minio/S3
minio:
image: minio/minio
ports:
- 9000:9000
restart: always
volumes:
- ./data/minio:/data
@Lewiscowles1986
Lewiscowles1986 / README.md
Created August 13, 2021 14:35
Zoom links

Screenshot 2021-08-13 at 15 35 22

@Lewiscowles1986
Lewiscowles1986 / console filter (chrome)
Created July 4, 2021 10:20
Make JitSi meet external frame API Shut the fuck up
-url:https://api.callstats.io/static/callstats-ws.min.js -url:https://auth.callstats.io/authenticate -url:chrome-extension://invalid/ -url:https://wp.dh.codesign2.co.uk/wp-content/plugins/digital-venue/assets/vue.js -url:https://meet.jit.si/external_api.js -url:https://web-cdn.jitsi.net/meetjitsi_5107.1757/libs/app.bundle.min.js?v=5107.1757 -url:https://web-cdn.jitsi.net/meetjitsi_5107.1757/libs/lib-jitsi-meet.min.js?v=5107.1757
@Lewiscowles1986
Lewiscowles1986 / README.md
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 https://gist.github.com/lttlrck/9628955 to make the renaming of branches simpler.

Usage

  1. Ensure the script is executable.
  2. git-rename.sh [oldbranchname] newbranchname [upstreamname]

conventions

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