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
#!/bin/bash
# Input parameters
folders=$1 # Comma-separated list of folders
packages=$2 # Comma-separated list of npm package names
versions=$3 # Comma-separated list of version strings
# Check if the user is logged into GitHub CLI
if ! gh auth status > /dev/null 2>&1; then
echo "You are not logged into GitHub CLI. Please run 'gh auth login' to authenticate then try again."
@johnnyshankman
johnnyshankman / godaddy-ssl-letsencrypt-zerossl-acme.md
Last active August 12, 2024 21:18
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

@allysonsilva
allysonsilva / Full-Markdown.md
Last active November 8, 2024 14:04
⚡️ Full Markdown Example

Headers

# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 17, 2024 07:52
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>