You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...
Installation Step-by-Step
Each major task has its own gist, this is to help with maitainability long term.
Rails app with Postgres and Caddy on Hetzner VPS with Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C# implementation of UnityEngine.Random with (almost) 1-to-1 parity
This is a partial C# implementation of UnityEngine.Random with (almost) 1-to-1 parity.
Unity uses Xorshift for psuedorandom number generation. In particular Xorshift128, which uses a state consisting of four unsigned 32-bit integer values. The state is initialized in UnityEngine.Random.InitState using a signed 32-bit integer seed, which is shuffled around with a technique similar to the way a Mersenne Twister is initialized.
This has been tested as far back as Unity 4.7.0f1, and as recent as Unity 2020.1.17f1.
Notes
Huge thanks to MoatShrimp for figuring out how Unity initializes the Xorshift state parameters in InitState, and floating point generation.
C# - As below. Values may differ in .NET 5.0, but thankfully Unity doesn't yet support that.
Terraform Automation with GitHub Workflows and Workload Identity Federation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices.
You can't go to specific page numbers, the search is super slow, etc.
That's why I wrote this script to download the textbook as an ePub file for your own viewing.
Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to
download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is
legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE
ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters