Skip to content

Instantly share code, notes, and snippets.

View numoonchld's full-sized avatar
🎬

Raghavendra Saralaya numoonchld

🎬
View GitHub Profile
@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"
@topherPedersen
topherPedersen / greeter.ts
Last active March 5, 2023 09:03
Solana 101: Storing Data on the Solana Blockchain (From Figment.io's Solana 101 Course)
import {
Connection,
PublicKey,
Keypair,
SystemProgram,
Transaction,
sendAndConfirmTransaction,
} from '@solana/web3.js';
import type {NextApiRequest, NextApiResponse} from 'next';
import {getNodeURL} from '@figment-solana/lib';
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@sebkopf
sebkopf / gtk_install.md
Last active February 22, 2024 06:10
Installation information for R with GTK on Windows/Mac OS

Installation information for R with GTK+

Windows

Install the newest version of R. Additionally, I highly recommend R-Studio for working with R regularly (but the basic command line will work just fine for most applications). Once R is installed, you can install GTK directly from within R (details below). In short:

  1. From the R command line (e.g. in R-Studio), install the RGtk2 package by running: install.packages("RGtk2", depen=T)
    This might fail with the warning that package ‘RGtk2’ is not available (for R version xxx) if your version of R has been released very recently. If so, just run install.packages("RGtk2", depen=T, type="source") instead to install the RGtk2 package directly from its source code (this might take a few
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active May 2, 2024 08:30
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active May 2, 2024 23:15
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"