Skip to content

Instantly share code, notes, and snippets.

View shikhir-arora's full-sized avatar
💭
¯\_(ツ)_/¯

Shikhir Arora shikhir-arora

💭
¯\_(ツ)_/¯
View GitHub Profile

How the NZXT Hue+ works

Also applies to the NZXT Smart Device

TL; DR

Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:

  • +5V (marked with arrow; corresponding wire with white stripe)
  • IN (data in)
@johnhw
johnhw / umap_sparse.py
Last active January 6, 2024 16:09
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
# Your WidgetBot license token
license: ''
# NEDB configuration - see https://github.com/louischatriot/nedb/wiki/Creating-loading-the-database
database:
# The path to where the NeDB database should be stored
dir: ./data/database/
# The secret to use when verifying JWT tokens
# WARNING: Keep this private. If an attacker gains ahold
@ruario
ruario / README.md
Last active July 26, 2022 07:23
Run Vivaldi Package (rpm, deb or recompressed contents)

Run Vivaldi Package

The attached script (rvp.sh) will allow you to directly run a Vivaldi .deb or .rpm package without “installing” it. This works by quickly extracting the package contents into /var/tmp and then executing the binary therein (the extracted files are removed when you close Vivaldi).

Vivaldi is run with a temporary user data (settings) that are specific to that exact version. This is to avoid messing up the main install's user data.

To run Vivaldi in this way, make rvp.sh executable and start a build like so:

./rvp.sh vivaldi-snapshot-1.15.1159.7-1.x86_64.rpm
@steven2358
steven2358 / ffmpeg.md
Last active May 10, 2024 20:57
FFmpeg cheat sheet
@nicolasdao
nicolasdao / serverless_regions.md
Last active July 2, 2023 08:06
Serverless Regions

AMAZON API GATEWAY REGIONS

US East (Ohio) us-east-2 apigateway.us-east-2.amazonaws.com HTTPS ZOJJZC49E0EPZ

US East (N. Virginia) us-east-1 apigateway.us-east-1.amazonaws.com HTTPS Z1UJRXOUMOOFQ8

US West (N. California) us-west-1 apigateway.us-west-1.amazonaws.com HTTPS Z2MUQ32089INYE

US West (Oregon) us-west-2 apigateway.us-west-2.amazonaws.com HTTPS Z2OJLYMUO9EFXC

@willfarrell
willfarrell / ssh-keygen.sh
Last active June 17, 2018 22:14
Generate all SSH key pairs
#! /bin/bash
# Use Examples
# ./ssh-keygen Additional comments
# ./ssh-keygen "(Work)"
ROUNDS=100
if hash networksetup 2>/dev/null; then
# Mac only: Computer Name
COMMENT="$(networksetup -getcomputername) $@"