Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓

Lewis Cowles Lewiscowles1986

🤓
View GitHub Profile
@Lewiscowles1986
Lewiscowles1986 / README.md
Last active May 21, 2022
Playstation 2 EU USB "The Buzz" controller
View README.md

"The Buzz" Playstation 2 EU USB controller

Using tool "Simple HID Write"

  • W: Write
  • R: Read
W 00 {FF} 00 00 00 // controller 1 red light activate
W 00 {00} 00 00 00 // controller 1 red light deactivate
@Lewiscowles1986
Lewiscowles1986 / Dockerfile
Last active May 7, 2022
Bigcommerce Stencil Dockerfile
View Dockerfile
FROM ubuntu:xenial
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update -qq
RUN apt-get install -y -qq git curl python python-pip build-essential
RUN pip install virtualenv
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 4.1.2
@Lewiscowles1986
Lewiscowles1986 / extract_har.py
Last active Apr 8, 2022 — forked from kolmar-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())
@Lewiscowles1986
Lewiscowles1986 / goes in config file
Created Apr 7, 2017
Mupen 64 Plus DragonRise N64 USB Joystick
View goes in config file
[Input-SDL-Control1]
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
version = 2
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
mode = 0
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
device = 0
# SDL joystick name (or Keyboard)
name = "DragonRise Inc. Generic USB Joystick "
@Lewiscowles1986
Lewiscowles1986 / rPi3-ap-setup.sh
Last active Feb 16, 2022
Raspberry Pi 3 access-point-setup
View rPi3-ap-setup.sh
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
@Lewiscowles1986
Lewiscowles1986 / dh-diagram.svg
Last active Nov 16, 2021
SSH with asymmetric key UML Sequence
View dh-diagram.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 / Dockerfile
Last active Jul 19, 2021
PhalconPHP 2.1 Vagrant & Docker for PHP7 build...
View Dockerfile
FROM ubuntu:16.04
RUN apt-get -y update && apt-get install -y php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-pgsql build-essential git gcc make re2c libpcre3-dev php7.0-dev curl
RUN curl -sS http://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN composer global require "phalcon/zephir:dev-master"
RUN mkdir -p /opt/www
@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