Skip to content

Instantly share code, notes, and snippets.

View austbot's full-sized avatar
😶‍🌫️

austbot austbot

😶‍🌫️
View GitHub Profile
@austbot
austbot / current.rs
Last active April 26, 2023 01:48
tlv
use std::{
cell::{Ref, RefCell, RefMut},
collections::HashMap,
rc::Rc,
};
use arrayref::array_ref;
#[derive(Debug)]
pub enum ValueError {
@austbot
austbot / trash4.rs
Created April 23, 2023 22:16
attempt 4
use std::{
cell::{Ref, RefCell, RefMut},
collections::HashMap,
rc::Rc,
};
use arrayref::array_ref;
pub use mpl_token_metadata::state::{
Collection, CollectionDetails, Data, Key, Metadata, ProgrammableConfig, TokenStandard, Uses,
};
@austbot
austbot / pnft.json
Last active January 26, 2023 00:39
first pnft ever
{
"name": "WE OVERCAME",
"symbol": "DUMP",
"description": "We had a tight deadline and we weren't perfect but here we are.",
"image": "https://arweave.net/OpTkKNGGBFPidKABLFQ8nzDMlK28dc-RxRr-74Nfng4?ext=png",
"attributes": [],
"properties": {
"files": [
{
"uri": "https://arweave.net/OpTkKNGGBFPidKABLFQ8nzDMlK28dc-RxRr-74Nfng4?ext=png",
{
"metadata": [
{
"$$schema": "description",
"name": "Austbot on his tractor",
"description": "When not writing bareley readable code and complaining about the temperature of his office, he is found in his unnatural habitat. Outside the Austbot encounters wild animals, so he stays on his tractor to avoid the scorching heat of the pavement and the dangers of the Texas fauna"
}
],
"files": [
{
@austbot
austbot / das.json
Created July 12, 2022 19:55
das.json
{"openrpc":"1.0.0-rc1","info":{"version":"0.0.1","title":"Digital Asset API"},"servers":[{"url":"https://rpc.metaplex.com/this_is_fake"}],"methods":[{"name":"get_asset_proof","summary":"Get merkle proof for asset","tags":[{"name":"proof"}],"params":[{"$ref":"#/components/contentDescriptors/asset_id"}],"result":{"$ref":"#/components/contentDescriptors/assetProof"},"errors":[{"code":500,"message":"server error"},{"code":400,"message":"invalid request $msg"},{"code":429,"message":"slow down sheesh"}]},{"name":"get_assets_by_owner","summary":"List all assets by owner pubkey","tags":[{"name":"index"}],"params":[{"$ref":"#/components/contentDescriptors/owner_param"},{"$ref":"#/components/contentDescriptors/asset_sort_by"},{"$ref":"#/components/contentDescriptors/limit"},{"$ref":"#/components/contentDescriptors/page"},{"$ref":"#/components/contentDescriptors/before"},{"$ref":"#/components/contentDescriptors/after"}],"result":{"$ref":"#/components/contentDescriptors/assetList"},"errors":[{"code":500,"message":"server
use std::collections::HashMap;
use std::path::Path;
use jsonpath_lib::JsonPathError;
use mime_guess::Mime;
use sea_orm::{DatabaseConnection};
use sea_orm::{entity::*, query::*, DbErr};
use url::Url;
use crate::dao::{asset, asset_authority, asset_creators, asset_data, asset_grouping};
use crate::dao::prelude::{Asset, AssetData};
use crate::rpc::{Asset as RpcAsset, Authority, Compression, Content, Creator, File, Group, Interface, Links, Ownership, Royalty, Scope};
{
"transactions": {
"2WZecSmdidugKDQkjwySfBHe2zbVkdp54enpKUuceVrWMKCG3AeCLmgWHbqNzLrqSSW6vonXjCiHVEpeT1MWhHFA": {
"signature": "2WZecSmdidugKDQkjwySfBHe2zbVkdp54enpKUuceVrWMKCG3AeCLmgWHbqNzLrqSSW6vonXjCiHVEpeT1MWhHFA",
"keys": {
"7fRe33yB8MW2TZGiHm1yG2BybHkr9Ah1BFn94APrmgcx": {
"pubkey": "7fRe33yB8MW2TZGiHm1yG2BybHkr9Ah1BFn94APrmgcx",
"signer": true,
"writable": true
},

Keybase proof

I hereby claim:

  • I am austbot on github.
  • I am austbot (https://keybase.io/austbot) on keybase.
  • I have a public key ASCop7vCobniCD2u6juWT_MpXpr6t-GLrvc8kdTu3u5QWwo

To claim this, I am signing this object:

const {Builder, By, Key, until, Capabilities} = require('selenium-webdriver');
(async function example() {
let c = Capabilities.firefox();
c.setAcceptInsecureCerts(true);
let driver = new Builder()
.forBrowser('firefox')
.withCapabilities(c)
.usingServer('http://localhost:4444/wd/hub')
.build();
try {
import { Injectable, Inject } from '@angular/core';
@Injectable()
export class SecretService {
constructor( @Inject('ENcRYPTI0n_k3y') private key: string, private features: FeatureFlags) {}
//public api
encode(secret: string) {
return SecretService._encodeSecret(this.key, secret);
}