Skip to content

Instantly share code, notes, and snippets.

View Lewiscowles1986's full-sized avatar
🤓

Lewis Cowles Lewiscowles1986

🤓
View GitHub Profile
@Lewiscowles1986
Lewiscowles1986 / download.php
Created May 19, 2025 06:26
Forgecraft-manifest-downloader PHP
<?php
function relativeDirectory($path) {
return __DIR__ . "/" . $path;
}
$manifestPath = relativeDirectory("manifest.json");
$downloadDir = relativeDirectory("mods");
$userAgent = "CurseForge/Downloader+1.0";
$cookieFile = relativeDirectory("cookies.txt"); // Optional. Comment this line out if not using cookies.
@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 May 31, 2025 07:50 — 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 stuart11n/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: