Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓

Lewis Cowles Lewiscowles1986

🤓
View GitHub Profile
@Lewiscowles1986
Lewiscowles1986 / extract_har.py
Last active Nov 28, 2022 — forked from kafran/extract_har.py
Python 3 script to extract images from HTTP Archive (HAR) files
View extract_har.py
import json
import base64
import os
# make sure the output directory exists before running!
folder = os.path.join(os.getcwd(), "imgs")
with open("src.har", "r") as f:
har = json.loads(f.read())
View docker-compose.yml
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 / console filter (chrome)
Created Jul 4, 2021
Make JitSi meet external frame API Shut the fuck up
View console filter (chrome)
-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 Jun 13, 2020 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View README.md

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

View install-vscodium-64-bit-update-after-download.sh
#!/bin/bash
sudo tar -xzf ~/Downloads/VSCodium-linux-x64*.tar.gz -C . && rm ~/Downloads/VSCodium-linux-x64*
View Build and push to dockerhub
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
@Lewiscowles1986
Lewiscowles1986 / math_spelunk.c
Created Mar 3, 2020
Spelunking through math.h to try to find understanding
View math_spelunk.c
#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)
View fullstory-org-code-js-input-helper.part.html
<script type="text/javascript">
(function() {
/*
* Helper to extract FullStory Org code from URL when used in a HTML input element
*/
const SCHEME_INDICATOR = '://';
const URL_PATH_SEPARATOR = '/';
const FULLSTORY_DOMAIN_INDICATOR = 'app.fullstory.com';
document.querySelector('#fullstory_org_code').addEventListener('input', function(event) {