Skip to content

Instantly share code, notes, and snippets.

View stevedylandev's full-sized avatar
🌐
blogging and building

Steve Simkins stevedylandev

🌐
blogging and building
View GitHub Profile
@stevedylandev
stevedylandev / speedPin.js
Created January 8, 2024 23:28
Pinning as fast as possible
async function uploadJsonToPinata(jsonData, pinataApiKey) {
const axios = require("axios");
const FormData = require("form-data");
const url = "https://api.pinata.cloud/pinning/pinJSONToIPFS";
try {
const data = JSON.stringify(jsonData);
const response = await axios.post(url, data, {
__zoxide_zi () {
\builtin local result
result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${result}"
}
@stevedylandev
stevedylandev / keys.txt
Created August 28, 2023 02:44
BeepBerry Keydump
keycode range supported by kernel: 1 - 255
max number of actions bindable to a key: 256
number of keymaps in actual use: 7
of which 0 dynamically allocated
ranges of action codes supported by kernel:
number of function keys supported by kernel: 256
max nr of compose definitions: 256
nr of compose definitions in actual use: 68
Symbols recognized by dumpkeys:
(numeric value, symbol)
@stevedylandev
stevedylandev / index.js
Last active June 8, 2024 08:27
Mint an NFT Using Pinata and Crossmint
// Run `npm install form-data node-fetch fs dotenv`
//
// Create a separate .env file with the following variables completed
// PINATA_JWT=
// CROSSMINT_PROJECT_ID=
// CROSSMING_CLIENT_SECRET=
//
// Read more on how this works at
@stevedylandev
stevedylandev / settings.json
Created July 4, 2023 14:08
VSCodeVim Config
{
"editor.accessibilitySupport": "off",
"terminal.integrated.fontFamily": "BerkeleyMono Nerd Font",
"workbench.colorTheme": "Gruvbox Material Dark",
"editor.fontFamily": "BerkeleyMono Nerd Font, Menlo, Monaco, 'Courier New', monospace",
"gruvboxMaterial.darkContrast": "hard",
"editor.inlineSuggest.enabled": true,
"editor.fontSize": 13,
"terminal.external.osxExec": "Alacritty.app",
"terminal.integrated.fontSize": 13,
@stevedylandev
stevedylandev / nord-theme-arc-boost-twitter.css
Last active February 23, 2023 05:20
Nord Theme Arc Boost for Twitter
/* Main background styles */
body {
/* background: pink; */
/* color: purple; */
background-color: #2e3440 !important;
}
.css-1dbjc4n
.r-1habvwh{
background-color: #2e3440 !important;
I am attesting that this GitHub handle stevedsimkins is linked to the Tezos account tz1RafQ9ipNyo9aMzTt2tS2epJutADjqiyXt for tzprofiles
sig:edsigu5ci91Ty6hKGidd1kU5f33YWerPy4pxzqK2jAZtD2erNYDYecPWdKSLxgqewp8zsp3JrVMGMWMbCxVj5jfR65FsjTwFuBd
@stevedylandev
stevedylandev / pinStringToIPFS.js
Created January 9, 2023 20:07
A Pinata API call that will pin a string to IPFS
const { Readable } = require('stream');
const FormData = require('form-data')
const axios = require('axios');
const JWT = 'Bearer PASTE_YOUR_PINATA_JWT'
const pinStringToIPFS = async (string) => {
try {
const buffer = Buffer.from(string, 'utf8')
const stream = Readable.from(buffer)
const data = new FormData()
@stevedylandev
stevedylandev / example.js
Last active November 17, 2022 03:53 — forked from heidyhb89/example.js
const { Readable } = require("stream");
const buffer = await getWnft(args, { size: IMAGE_SIZE }); // returns Buffer
const fileData = Readable.from(buffer)
// we are calling the function below with `fileData: buffer`
static async uploadFileToIPFS({ fileData, metadata = {} }) {
const pinataOptions = {
cidVersion: PINATA_CID_VERSION,
wrapWithDirectory: false,
@stevedylandev
stevedylandev / submarineFile.js
Created October 23, 2022 18:17
Submarining a File via API
import axios from 'axios'
import FormData from 'form-data'
import fs from 'fs'
const submarineFile = async () => {
const data = new FormData()
data.append(`files`, fs.createReadStream('./path/to/file.png'));
data.append('pinToIPFS', 'false');