Skip to content

Instantly share code, notes, and snippets.

@tgrecojs
tgrecojs / MacOS-Multi-Version-Go-With-Homebrew.md
Created July 5, 2024 18:44 — forked from BigOokie/MacOS-Multi-Version-Go-With-Homebrew.md
Manage multiple versins of Go on MacOS with Homebrew

This process would likely apply to other Homebrew formula also.

First search for your desired package:

brew search go

You should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:

[
{ "address": "0x77485F4Df482fC2abe4C787AF523b260f740C1FF" },
{ "address": "0xF12d911576bbC4b55Ba9A12A14E3e9186BEd6528" },
{ "address": "0xA19f91cabAC5cEA3a72216C04d85aeFF3fB17937" },
{ "address": "0x8568B8B239a85Ec08B6A7138ef486d78E0445ab5" },
{ "address": "0x0105B02885F73b242ee57F12FA4a7BE2eefE0d22" },
{ "address": "0x657225e87d88388568AA1145b269D6781fbc5101" },
{ "address": "0x9d3f5026AB7Eb1EAB1765E73899A04C3EFb9c431" },
{ "address": "0xA4945Cd5EFc76013C78b690Ca726167F0a87Eb95" },
{ "address": "0x3357FE2D05f58d7E73ba8D36dc173b231AdFb8Fe" },

Note

Highlights information that users should take into account, even when skimming.

Important

Crucial information necessary for users to succeed.

Warning

@tgrecojs
tgrecojs / README.md
Last active March 18, 2024 18:57
provider-services CLI helpers

Scripts

This gist contains shell files intended to make the setup process a seamless one.

To make use of these scripts, you will need to have bash installed, as well as jq, and curl.

Note: Mac OS users have bash installed on their machines by default.

@tgrecojs
tgrecojs / lockdown.umd.js
Created February 22, 2024 23:14
lockdown script to load via script tag
// ses@1.2.0
'use strict';
(() => {
const functors = [
// === functors[0] ===
({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => (function () { 'use strict'; $h‍_imports([]); /* global globalThis */
/* eslint-disable no-restricted-globals */
/**
* commons.js
const c = new Compartment({ console, Math: { log2: Math.log2 });
c.evaluate(
`
console.log('---------------')
console.group('---- inside compartment ----')
console.log('---------------')
const num = 10;
@tgrecojs
tgrecojs / Instructions.md
Last active February 3, 2024 23:41
confusion around `endo send`, evaluating code as an `EndoGuest` - a @tgrecojs reproduction

Fun with endo featuring send, inbox, inbox -a <pet-name> -a <pet-name> and more! 🤠🤠

  1. Make the clock plug-in using endo make --UNCONFINED
~/ ==> git clone https://gist.github.com/tgrecojs/71ed5f69356eef848a9b0e0328cffb79 && cd $_
~/71ed5f69356eef848a9b0e0328cffb79 ==> endo make --UNSAFE src/clock.js -n clock 
Object [Alleged: Clock] {}
@tgrecojs
tgrecojs / index.js
Created January 23, 2024 20:30
runme endojs example
#!/usr/bin/env node
import "@endo/init";
const isFrozen = o => Object.isFrozen(o);
const mathCompartment = new Compartment({ Math, print: console.log });
mathCompartment.evaluate(`
const result = Math.pow(2, 5);
@tgrecojs
tgrecojs / index.js
Last active January 19, 2024 22:04 — forked from degrammer/index.js
lockdown example
#!/usr/bin/env node
import 'ses';
lockdown();
const isFrozen = x => Object.isFrozen(x);
const c1 = new Compartment({ console, Date });
@tgrecojs
tgrecojs / data.json
Last active January 19, 2024 19:12
airdrop-mock-data.json
[
{
"amount": 2000,
"address": "cosmos1p00xhl9ysacadcduxglhavstr8yvh9hfzk6z6w",
"pubkey": "033f1d99e8f90c8b46e7a2f14f3fa52ce484bd419744b3bac58db2b227b87a2e5a",
"PrivateKey": "047baf28b432df107dcfb71d21ecc93a655cfaf842b5e4268a9603369c39c47d"
},
{
"amount": 2000,
"address": "cosmos1yquxnvua4me07zxyq85fnxkdg9htqvn90x8m7h",