Skip to content

Instantly share code, notes, and snippets.

View billyjacoby's full-sized avatar

Billy Jacoby billyjacoby

View GitHub Profile
@billyjacoby
billyjacoby / m1solana.md
Created November 7, 2021 03:16
Process to get Solana and Anchor working on M1 based Macs

How to install Solana & Anchor on M1 Macs without Rosetta

Versions info:

  • node: 17.0.1
  • homebrew: 3.3.2
  • npm: 8.1.0
  • solana-cli: 1.9.0

install rust

import * as web3 from "@solana/web3.js";
import { Metadata } from "@metaplex/js";
import { deserialize } from "@metaplex/js";
const programId = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
const programIdKey = new web3.PublicKey(programId);
const walletAddress = "AmtW4L39QwE2DGU3f3uEoL1rVCgwwit5W4UhjxiM35Nt";
const network = "mainnet-beta";
const walletPubKey = new web3.PublicKey(walletAddress);
@billyjacoby
billyjacoby / solana-tracker.6s.py
Created September 2, 2021 21:24
An xbar plugin to track the price of SOL using Binance's API
#!/usr/bin/python
# coding=utf-8
# <xbar.title>Binance Price Ticker</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Gabriel Age</xbar.author>
# <xbar.author.github>agezao</xbar.author.github>
# <xbar.desc>Displays Binance's ticker price for configured coin pairs</xbar.desc>
# <xbar.image>https://i.imgur.com/zJsoTl8.jpg</xbar.image>
# <xbar.dependencies>python</xbar.dependencies>
@billyjacoby
billyjacoby / inovelliLZW30.yaml
Created July 23, 2021 20:58
Inovelli LZW30-SN ZwaveJS Blueprint
blueprint:
name: Inovelli Red Series LZW30-SN Switch (ZWave-JS)
description: Create automations for the Inovelli Red Series LZW30-SN Switch using the ZWave-JS integration.
domain: automation
input:
zwave_device:
name: Inovelli Switch
description: "List of available inovelli LZW30-SN switch."
selector:
device:
@billyjacoby
billyjacoby / Configuration.h
Created August 3, 2020 13:04
Marlin 2.0.x FW
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or