Skip to content

Instantly share code, notes, and snippets.

View Tknott95's full-sized avatar
🍀

TKnott Tknott95

🍀
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active June 17, 2025 02:38
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@jamiephan
jamiephan / README.md
Last active June 16, 2025 17:51
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
@Tknott95
Tknott95 / toc_cli_theme.MD
Last active October 27, 2024 10:14
toc_cli_theme

TOC CLI THEME

  • ANY COLOR BASH FUNCTION ( EX: _p "1;37m" )
 _p() {
  export PS1="\n\[\033[38;5;230m\]\[\033[48;5;17m\]\t\[\033[0m\]\[\033[38;5;15m\]\[\033[48;5;-1m\].\[\033[0m\]\[\033[38;5;69m\]\u\[\033[0m\]\[\033[38;5;198m\]@\[\033[0m\]\[\033[38;5;74m\]\h\[\033[0m\]\[\033[38;5;15m\] \W\[\033[0m\]\[\033["$@"\] ︻デ═一 \[\033[0m\]"
 }
  • BLACK GUN export PS1="\n\[\033[38;5;230m\]\[\033[48;5;17m\]\t\[\033[0m\]\[\033[38;5;15m\]\[\033[48;5;-1m\].\[\033[0m\]\[\033[38;5;69m\]\u\[\033[0m\]\[\033[38;5;198m\]@\[\033[0m\]\[\033[38;5;74m\]\h\[\033[0m\]\[\033[38;5;15m\] \W\[\033[0m\]\[\033[1;30m\] ︻デ═一 \[\033[0m\]"
@OrionReed
OrionReed / dom3d.js
Last active June 3, 2025 17:52
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@SmaugPool
SmaugPool / scripts_resources.md
Last active December 17, 2023 22:35
Scripts Memory Units & Execution Steps used by Cardano transactions & blocks

Smart Contracts on Cardano are Plutus scripts. We often talk about the size of transactions and blocks compared to the maximum currently authorized by the protocol parameters, but scripts are also limited in CPU and memory units.

Here is the description of those 3 properties from Cardano docs:

  • The total on-chain transaction size in bytes: a simple transaction, for example, is around 300 bytes, one with metadata is around 650 bytes, and Plutus scripts are typically 4,000-8,000 bytes (future optimizations and improvements will reduce this).
  • The number of computational (CPU) steps that the script uses: each step represents 1 picosecond of execution time on a benchmark machine. Typical scripts should consume less than 1,000,000,000 (1 millisecond).
  • The number of memory units that the script uses: this represents the number of bytes that the script allocates. Typical scripts should consume less than 1,000,000 memory units (
@nickfarrow
nickfarrow / malleablefrost.md
Last active November 26, 2024 01:22
Modifying FROST Threshold and Signers

Modifying FROST Signers and Threshold

FROST's distributed key generation involves N parties each creating a secret polynomial, and sharing evaluations of this polynomial with other parties to create a distributed FROST key.

The final FROST key is described by a joint polynomial, where the x=0 intercept is the jointly shared secret s=f(0). Each participant controls a single point on this polynomial at their participant index.

The degree T-1 of the polynomials determines the threshold T of the multisignature - as this sets the number of points required to interpolate the joint polynomial and compute evaluations under the joint secret.

T parties can interact in order to interpolate evaluations using the secret f[0] without ever actually reconstructing this secret in isolation (unlike Shamir Secret Sharing where you have to reconstruct the secret).


@p1nox
p1nox / pytorch_rtx_3060.md
Last active March 15, 2025 16:05
PyTorch on RTX 3060

After researching a lot on how to use PyTorch with a RTX 3060 card, specially with older versions or torch (0.4.0) and torchvision (0.2.1), I noticed that it was either impossible or very hard to do. RTX 3060 and these packages apparently doesn't have compatibility with the same versions of CUDA and cuDNN. I tried to do this by using different combinations with compiled versions available in conda, but didn't work, maybe it could work if you recompile from source these versions.

After all this, actually I was able to use RTX 3060 effectively with latest versions of all these dependencies with two methods:

  1. Using a conda env, and latest versions published in pytorch site (https://pytorch.org/get-started/locally):
conda create -n rtx_3060 python=3.6.5
conda activate rtx_3060
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia
@Tknott95
Tknott95 / fleece.MD
Created March 24, 2021 13:11
Jackie Kennedy Poetry
The lights glowed inside, soon supper would ring
And he would go home where his father was King.

But no he was here with the wind and the sea
And all the things he was going to be.

He would build empires
And he would have sons
Others would fall
@SmaugPool
SmaugPool / cardano-cli-completion.md
Last active November 29, 2023 11:57
cardano-cli Bash auto-completion

To enable cardano-cli and cardano-node bash auto-completion for the current shell:

source <(cardano-cli --bash-completion-script cardano-cli)
source <(cardano-cli --bash-completion-script cardano-node)

To enable it for all future sessions:

@Tknott95
Tknott95 / nietzsche.MD
Last active December 26, 2019 11:47
“And those who were seen dancing were thought to be insane by those who could not hear the music.” ~Nietzsche
  “And those who were seen dancing were thought to be insane by those who could not hear the music.”
~Nietzsche