Skip to content

Instantly share code, notes, and snippets.

View puppycodes's full-sized avatar
💕
ミ●﹏☉ミ

puppycodes

💕
ミ●﹏☉ミ
View GitHub Profile
@cmj
cmj / sdot.m3u8
Created February 23, 2023 15:34
Seattle DOT Live Cameras
#EXTM3U
#EXTM3U
#EXTINF:0,11th Ave SW & SW Spokane St
https://58cc2dce193dd.streamlock.net/live/11_SW_Spokane_EW.stream/playlist.m3u8
#EXTINF:0,12th Ave NE & NE 50th St
https://58cc2dce193dd.streamlock.net/live/12_NE_50_EW.stream/playlist.m3u8
#EXTINF:0,12th Ave S & Boren Ave S
https://58cc2dce193dd.streamlock.net/live/12_S_Boren_NS.stream/playlist.m3u8
#EXTINF:0,12th Ave S & S Jackson St
https://58cc2dce193dd.streamlock.net/live/12_S_Jackson_EW.stream/playlist.m3u8
@geerlingguy
geerlingguy / arducam-hawk-eye-setup.sh
Last active December 9, 2023 17:23
ArduCam Hawk-Eye 64MP camera setup
# Download the pivariety driver install script and make it executable
wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
# Install libcamera dev and apps
./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps
# Install the Hawk-Eye kernel driver
./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
@SuaYoo
SuaYoo / web3-storage.js
Last active November 22, 2021 16:15
Encrypt and decrypt JSON files for Web3 Storage (requires Node.js >=15.7)
// node >=15.7.0 required for Blob usage
const { Blob } = require('buffer');
const crypto = require('crypto');
const { Web3Storage } = require('web3.storage');
// Secret env variables
//
// Grab token from https://web3.storage/tokens/
const WEB3_STORAGE_API_KEY = 'my_api_key';
// Encryption secret must have exact length of 32
@ujin5
ujin5 / fuck.js
Last active May 13, 2024 10:20
WebKit RCE on ios 14.1
function sleep( sleepDuration ){
var now = new Date().getTime();
while(new Date().getTime() < now + sleepDuration){ /* do nothing */ }
}
function gc() {
for (let i = 0; i < 0x10; i++) {
new ArrayBuffer(0x1000000);
}
}
let data_view = new DataView(new ArrayBuffer(8));
@joshuabradley012
joshuabradley012 / Object collisions with canvas
Last active June 17, 2024 07:27
An example of 2D collisions using JavaScript Canvas
class State {
constructor(display, actors) {
this.display = display;
this.actors = actors;
}
update(time) {
/**
* provide an update ID to let actors update other actors only once
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@ummjackson
ummjackson / Peach v1 API Endpoints.md
Last active February 8, 2024 18:27
Peach v1 API Endpoints

Peach (peach.cool) API Endpoints

Peach is hot right now so I poked around their API using https://mitmproxy.org/

As of the last update, this seems to be a fairly extensive/complete list of v1 endpoints, but feel free to submit revisions to this gist with any others you find!

Login

@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 13, 2024 02:39
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx