Skip to content

Instantly share code, notes, and snippets.

@what-name
what-name / createSft.ts
Created October 6, 2022 11:16
How to create SFTs on Solana (TypeScript)
// This Gist is the code for the tutorial "How to create SFTs on Solana".
// See the tutorial on Youtube: https://youtu.be/BYmcw0LThGE
// Check out SOAP - https://solanasoap.lol - https://twitter.com/solanasoap
// yarn add @metaplex-foundation/js@0.16.0 @solana/web3.js@1.63.1
import { bundlrStorage, keypairIdentity, Metaplex, CreatorInput, KeypairSigner, JsonMetadata, CreateSftInput } from '@metaplex-foundation/js';
import { Keypair, clusterApiUrl, Connection, PublicKey } from '@solana/web3.js';
import * as fs from "fs"
const clusterString = "devnet"
@what-name
what-name / 100daysofcloud-feedback.md
Created July 18, 2020 17:51
100DaysOfCloud Challenge feedback😎

Hey there!😊 We were wondering about what your experience has been as a participant of the #100DaysOfCloud challenge, and how are you noting down & sharing your daily progress. We're curious because as the website and the whole challenge is being built and fostered, we want to make it as enjoyable and exciting as possible. For that we'd like to hear about your experiences. A couple questions to get the conversation going (you don't have to answer all of them), and please add anything that comes to mind! Don't have to hold back anything, the most honest feedback is the best:) Feedback is welcome to this Gist as a comment, or to the Tweet which led you here🙂

  1. How much time do you / can you delegate to the challenge each day?
  2. Do you share your progress at the end of your "study session" or later in the day?
  3. Do you primarly tweet about what you've done that day, or do you also utilize the 100DaysOfCloud GitHub template?
  4. Have you heard of the above mentioned GitHub template? (it is fully okay if you hav
@what-name
what-name / s3_cf_cors.yaml
Created May 31, 2020 23:36
S3 Static Hosting + CloudFormation + CORS + YAML
---
Parameters:
S3BucketName:
Description: "The name of the S3 bucket that will store the website files"
Type: String
Resources:
WebsiteBucket:
Type: AWS::S3::Bucket
Properties:
@what-name
what-name / GoodMorningMusic.scpt
Last active April 24, 2019 06:04
An Applescript application that connects to a bluetooth speaker->starts iTunes->starts playing a playlist automatically
-- works as of MacOS Mojave, iTunes 12
-- TIMESTAMP: 24. Apr. 2019
-- clear start - quit itunes
tell application "iTunes"
quit
end tell
delay 60 -- sometimes iTunes takes a while to quit
# disable icloud & Apple Popup for new user creation
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
sw_vers=$(sw_vers -productVersion)
# Checks first to see if the Mac is running 10.7.0 or higher.
# If so, the script checks the system default user template
# for the presence of the Library/Preferences directory. Once
# found, the iCloud and Diagnostic pop-up settings are set
# to be disabled.
@what-name
what-name / ESP8266_MQTT.ino
Created August 20, 2016 16:08
ESP8266 MQTT Weather station
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <DHT.h>
#define wifi_ssid "ssid" //your Wifi SSID
#define wifi_password "password123" //your Wifi password
int DHTPIN = 2; //the pin your dht board's signal is connected to
#define DHTTYPE DHT11 //the type of dht board you are using - DHT11, DHT22...
#define ClientID "BalconyESP8266" //the clientID what your MQTT server will see