Skip to content

Instantly share code, notes, and snippets.

View johnnyshankman's full-sized avatar
💀
stumbling thru the ether

Johnny Shankman johnnyshankman

💀
stumbling thru the ether
View GitHub Profile
@johnnyshankman
johnnyshankman / godaddy-ssl-letsencrypt-zerossl-acme.md
Last active June 21, 2024 20:59
How To Setup SSL Encryption with Let's Encrypt On GoDaddy

How To Setup Free SSL Encryption with "Let's Encrypt" (aka "ZeroSSL") On GoDaddy

The guides online will tell you that this isn't easy, but it's actually really easy and only a simple process that takes about 10 minutes to complete.

This guide takes from raw shared hosting service with a domain attached to it and no HTTPS support, to full SSL support that auto-renews every 60 days for FREE.

The key is acme.sh

Thank you so much to that team. Support them if you can.

interface ITokenMetadata {
    struct tokenOutput {
        // text/html, image/svg+xml, image/png, ...
        string mimeType;
        bytes output;
    };

    function getTokenPreview(uint256 tokenId) external view returns (string memory);
import {
AdditiveBlending,
Color,
LinearFilter,
MeshBasicMaterial,
RGBAFormat,
ShaderMaterial,
UniformsUtils,
Vector2,
Vector3,
@tolmekian1453
tolmekian1453 / sig.js
Last active March 29, 2023 18:52
Verify a Tezos signature given a wallet address, public key, payload, and signature.
// Based on https://github.com/ecadlabs/taquito/blob/master/packages/taquito-remote-signer/src/taquito-remote-signer.ts#L155
const {
b58cdecode,
b58cencode,
buf2hex,
hex2buf,
isValidPrefix,
mergebuf,
prefix,
@cryppadotta
cryppadotta / README.md
Last active July 28, 2022 06:26
OpenSea Floor Price Depth

OpenSea Floor Depth Calculator

Find out how much ETH is required to move to a certain floor price.

yarn
./node_modules/.bin/ts-node floor-depth.ts --slug forgottenruneswizardscult

NOTE: OpenSea limits to 50 listings per page (:eyeroll:) so this takes an eternity (hours) to run

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 22, 2024 06:03
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@doxas
doxas / gist:e9a3d006c7d19d2a0047
Created November 21, 2014 18:10
GLSL simple raytrace
<html><head><script src="script.js" type="text/javascript"></script><script id="fs" type="x-shader/x-fragment">precision mediump float;
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
// const ==========================================================================================
const vec3 cPos = vec3(0.0, 0.0, 3.0);
const vec3 cDir = vec3(0.0, 0.0, -1.0);
const vec3 cUp = vec3(0.0, 1.0, 0.0);
const float targetDepth = 1.0;
@chrisvfritz
chrisvfritz / index.html
Created November 18, 2014 19:22
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@neilmendoza
neilmendoza / gist:4512992
Last active June 9, 2023 14:22
Function to return matrix for rotation about an arbitrary axis in GLSL.
mat4 rotationMatrix(vec3 axis, float angle)
{
axis = normalize(axis);
float s = sin(angle);
float c = cos(angle);
float oc = 1.0 - c;
return mat4(oc * axis.x * axis.x + c, oc * axis.x * axis.y - axis.z * s, oc * axis.z * axis.x + axis.y * s, 0.0,
oc * axis.x * axis.y + axis.z * s, oc * axis.y * axis.y + c, oc * axis.y * axis.z - axis.x * s, 0.0,
oc * axis.z * axis.x - axis.y * s, oc * axis.y * axis.z + axis.x * s, oc * axis.z * axis.z + c, 0.0,