Skip to content

Instantly share code, notes, and snippets.

View CompewterTutor's full-sized avatar
:shipit:

Compewter Tutor CompewterTutor

:shipit:
View GitHub Profile
@jamiephan
jamiephan / README.md
Last active October 11, 2025 13:09
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@younes0
younes0 / package.json
Last active April 24, 2025 20:37
LAN Forwarding to Metro (Expo / React Native) dev server under WSL
{
"private": true,
"scripts": {
"wsl:lan:start": "export env REACT_NATIVE_PACKAGER_HOSTNAME=$(powershell.exe -executionpolicy bypass -File wsl-get-lan-ip.ps1) && yarn wsl:port-forward && yarn start",
"wsl:port-forward": "powershell.exe -executionpolicy bypass -File wsl-port-forward.ps1",
}
}
@kayandra
kayandra / rn-with-wsl-wsa.md
Created May 23, 2023 06:21 — forked from nkt217/rn-with-wsl-wsa.md
Develop React Native app with WSL and WSA

Develop React Native app with WSL and WSA

Requirement

  • Windows Subsystem for Linux 2 (WSL2)
  • Windows Subsystem for Android (WSA)
  • NodeJS install inside WSL2

Steps

WSA

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@CompewterTutor
CompewterTutor / autoexec.cfg
Last active November 4, 2020 00:04
CS:GO Autoexec
echo " _____ __ _ "
echo " ____|__ // /___ __ __(_)___ ____ "
echo " / ___//_ </ / __ `/ |/_/ / __ \/ __ \"
echo " / / ___/ / / /_/ /> </ / /_/ / / / /"
echo "/_/ /____/_/\__,_/_/|_/_/\____/_/ /_/ "
echo ""
echo "CS:GO AutoExec Autoconfig latest source: "
echo "https://gist.github.com/CompewterTutor/7f2a6b72aeec3e59927cd7714f9fc19b"
echo ""
@JoshLmao
JoshLmao / UE4_FSM_Structure.cpp
Last active May 16, 2024 18:37
🎮 UE4 C++ Finite State Machine - Basic Structure Example
#include "UE4_FSM_Structure.h"
// Sets default values
AUE4_FSM_Structure::AUE4_FSM_Structure()
{
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
@delhoume
delhoume / tpm2net-wemos.ino
Created April 9, 2018 08:28
TPM2.NET protocol handler for esp8266
/*
TPM2.NET protocol handler
Works with Jinx LED software
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <FastLED.h>
#include <WiFiManager.h>
#include <Ticker.h>
@mihow
mihow / load_dotenv.sh
Last active October 13, 2025 18:35
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@galloscript
galloscript / imgui_color_gradient.cpp
Last active July 12, 2024 11:34
Gradient color generator and editor for ImGui
//
// imgui_color_gradient.cpp
// imgui extension
//
// Created by David Gallardo on 11/06/16.
#include "imgui_color_gradient.h"
#include "imgui_internal.h"
@jblang
jblang / tpm2.md
Last active May 23, 2025 02:50
TPM2 Protocol Description

TPM2 Protocol Implementation

Introduction

Frame data is transferred inside packets (similar to DMX, for example). A frame is an image representing a matrix or a light scene.

The packets start and end with one-byte characters. In between are a few control bytes followed by the payload. There is no set size for a payload; it is transmitted with each packet. This makes the protocol quite flexible. There are enough bytes in a single packet for an RGB matrix with 21,845 pixels, but if you just want to control an RGBW lamp, that only requires 9 bytes. The variable frame size means there is no overhead, allowing for maximum transfer speed.

TPM2 Packet Structure