Skip to content

Instantly share code, notes, and snippets.

View winstxnhdw's full-sized avatar
⚠️
This user is a registered cybercriminal. Learn about GitHub Terms of Service.

Winston H. winstxnhdw

⚠️
This user is a registered cybercriminal. Learn about GitHub Terms of Service.
View GitHub Profile
@MrDiamond64
MrDiamond64 / login.md
Last active April 15, 2024 07:27
Skribbl.io Protocol

Login

The login procedure for skribbl.io is divided between several network requests.

POST https://skribbl.io:3000/play

Request Headers:

User-Agent: <user agent>
Accept: */*
Accept-Language: en-US;q=0.7,en;q=0.3
@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active June 20, 2024 02:08
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.

You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.

You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)

Don't like Next? Here's how to do the same in Gatsby.

@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active June 22, 2024 03:22
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@LoLei
LoLei / opencvi3imshow.py
Created August 8, 2020 13:27
Fix opencv imshow in i3wm
"""
Fix opencv imshow in i3wm
- Use namedWindow with WINDOW_NORMAL
- Only close when Esc (==27) is pressed
(For some reason it triggers on Alt/i3 mod as well otherwise)
- 50% chance the window is opened in tiled mode or floating mode
Just change mode to liking after the fact with keybind
"""
import cv2
@picchietti
picchietti / _wireless.md
Last active March 21, 2024 17:37
Making a wireless router with an ASUS PCE-AC88 and Linux (Ubuntu 18.04 LTS)

Introduction

This project makes a wifi router out of an ASUS PCE-AC88 wireless adapter and your Ubuntu Linux computer that can exceed top of the line routers.

Instead of buying a gaming grade router or another computer that you install openWRT on, follow this project and put the savings towards upgrading your main computer or modem.

Add Adapter

The adapter needs to be added to a PCI slot and the wireless antenna needs to be connected to the adapter. If your computer does not detect it, you may need to re-seat the adapter in the slot. If you can't detect wireless networks after installing the firmware below then this is probably why.

Install Firmware for Adapter

For your computer to use the wifi adapter you need to add the missing firmware that Asus won't provide.

@Mygod
Mygod / export-ble-infos.py
Last active June 23, 2024 18:31
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@nyorain
nyorain / sat.cpp
Last active December 26, 2023 23:14
Small Separating Axis Theorem implementation in C++
#include <nytl/vec.hpp>
#include <nytl/vecOps.hpp>
#include <vector>
#include <limits>
using Polygon = std::vector<nytl::Vec2f>;
/// Returns whether the two given convex polygons intersect using the
/// separating axis theorem. The given polygons can be in clockwise or
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 27, 2024 09:17
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@0xjac
0xjac / private_fork.md
Last active June 27, 2024 06:37
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git