Skip to content

Instantly share code, notes, and snippets.

View codenamejason's full-sized avatar
💭
Buidling 🫠

<jaxcoder /> codenamejason

💭
Buidling 🫠
View GitHub Profile
@codenamejason
codenamejason / Allo.sol
Created March 26, 2024 13:48
Allo flattenned
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity =0.8.19 ^0.8.0 ^0.8.1 ^0.8.19 ^0.8.2 ^0.8.4;
// contracts/core/libraries/Errors.sol
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣗⠀⠀⠀⢸⣿⣿⣿⡯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣗⠀⠀⠀⢸⣿⣿⣿⡯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⢿⣿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣗⠀⠀⠀⢸⣿⣿⣿⡯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡟⠘⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣗⠀⠀⠀⢸⣿⣿⣿⡯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣾⣿⣿⣿⣿⣾⠻⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⡿⠀⠀⠸⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣗⠀⠀⠀⢸⣿⣿⣿⡯⠀⠀⠀⠀⠀⠀⢀⣠⣴⣴⣶⣶⣶⣦⣦⣀⡀⠀⠀⠀⠀⠀⠀
@codenamejason
codenamejason / Registry.sol
Last active March 26, 2024 13:34
Registry flattenned
/**
*Submitted for verification at celoscan.io on 2023-11-02
*/
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.19;
// External Libraries
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)
let Web3 = require("web3");
// Replace value of rpc with https://rpc-mumbai.matic.today for Mumbai
let rpc = "https://rpc-mainnet.matic.network";
const provider = new Web3.providers.HttpProvider(rpc);
const web3 = new Web3(provider);
// Add your private key
web3.eth.accounts.wallet.add("pvt-key");
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreicu77ap4onstcd4mjayn5uckzciui573sutnn57o4kphxx2dtmhm4 ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
Mac Network Commands Cheat Sheet
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.
Get an ip address for en0:
ipconfig getifaddr en0
Same thing, but setting and echoing a variable:

Keybase proof

I hereby claim:

  • I am codenamejason on github.
  • I am jaxcoder (https://keybase.io/jaxcoder) on keybase.
  • I have a public key ASDyKoIAGeIns2hnu5dZCinsTzyhoyjjyv4s2Be2iAnwtwo

To claim this, I am signing this object:

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreifcbjur6bftb2ppyedt3rfts5be62uwxhnh5ng6n4td3dwnrhrjn4 ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@codenamejason
codenamejason / gist:cdd96f861e1cb9a7790e7ad0d1c9bfe4
Created December 17, 2019 22:18
I need Ether for testing on Rinkeby
0x6F7d7d68c3Eed4Df81CF5F97582deef8ABC51533
@codenamejason
codenamejason / EpochTimestampConverterToDateTime.cs
Created April 23, 2019 17:35
Convert Unix Epoch time to DateTime
public static DateTime UnixTimestampToDateTime(string unixTimestamp)
{
var time = Convert.ToDouble(unixTimestamp);
DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
dtDateTime = dtDateTime.AddSeconds(time).ToLocalTime();
return dtDateTime;
}