Skip to content

Instantly share code, notes, and snippets.

View imgntn's full-sized avatar

James B. Pollack, MFA imgntn

View GitHub Profile
@imgntn
imgntn / disco_v5_plus_Win_Install.md
Created June 17, 2022 07:13 — forked from MSFTserver/disco_v5_plus_Win_Install.md
guide to installing disco v5+ locally on windows

Install Disco Diffusion v5 for Windows

NOTE: Pytorch3d no longer has to be compiled i have stripped out the function we use to make this a lot easier and also so we do not have to use WSL2 with linux and can now run directly on your windows system.

Comments section is not checked often for issues please join the disco diffusion discord for assistance

https://discord.gg/mK4AneuycS

You may now use the official disco diffusion notebook with this tutorial as it has been uodated to reflect the changes here for better cross platform support

@imgntn
imgntn / Sheepdog.sol
Created November 21, 2021 06:28 — forked from 0xAlcibiades/Sheepdog.sol
Trivial exploit for weak Pseudo Random Number Generation in the Wolf Game
// SPDX-License-Identifier: UNLICENSED
// It's trivially easy to exploit a weak PRNG based NFT.
// Just bundle this with a flashbots bundle where the mint occurs.
//
// It's also trivially easy to detect/prevent with a took like slither:
// https://github.com/crytic/slither/wiki/Detector-Documentation#weak-PRNG
pragma solidity ^0.8.0;