#!/usr/bin/env bash | |
# script that fixes weird macOS 10.14 SDK issues | |
# SO: https://stackoverflow.com/questions/51314888/ld-warning-text-based-stub-file-are-out-of-sync-falling-back-to-library-file#comment93288538_53111739 | |
# script source: https://gist.github.com/wawiesel/eba461de5f5e38f7f0ac93ae3676b484 | |
# slightly modified to include PrivateFrameworks too | |
F=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks | |
G=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks |
Also applies to the NZXT Smart Device
Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:
- +5V (marked with arrow; corresponding wire with white stripe)
- IN (data in)
### 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 |
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
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
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
#! /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) $@" |