Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View autonome's full-sized avatar

Dietrich Ayala autonome

View GitHub Profile
@gsaslis
gsaslis / 01_Radicle_in_containers.md
Last active March 28, 2024 11:30
Running Radicle Nodes in Containers

Running in Containers

In case you want to run radicle in containers, on the same host (e.g. your laptop), you can use the docker-compose.yml file provided within this repo.

1. Create a profile

  1. Create a folder where you will store the data of your node. e.g. mkdir -p ~/radicle/profiles/bob/.radicle
  2. Set RAD_HOME : export RAD_HOME=~/radicle/profiles/bob/.radicle
  3. Create a key:
  • Pick a good passphrase and store it in your password manager
@anselm
anselm / gist:33015bffe4989a6ebe20a68dbb17c499
Created February 12, 2021 20:59
Time Lock Self Sovereign 401k Future Money Smart Contract for ETH Denver Hackathon
// See the Figma https://www.figma.com/file/pzq5EhzdxXvhpBoFlB8MDd/Money-Savings-App?node-id=5%3A3
// And see the app https://glitch.com/edit/#!/web3-time-lock
pragma solidity >=0.4.22 <0.7.0;
contract FutureBank {
address private owner;
mapping (address => uint256) private balances;
mapping (address => uint256) private locktime;
@Nemo157
Nemo157 / _Publishing crates to IPFS.md
Last active March 26, 2024 20:46
Publishing crates to IPFS

Publishing crates to IPFS

This was an experiment in seeing how feasible it would be to distribute crates on IPFS using the alternative registries feature combined with a local IPFS web gateway.

There was very little plan for this originally, and I wish I had kept more of the intermediate states as I went through multiple major design changes. My original goal was to publish my CLI utility [bs58-cli][] and its dependency tree.

changeAvatarByAvatarId("4JRhjmU")
function changeAvatarByAvatarId(avatarId){
window.APP.store.update({ profile: { ...(window.APP.store.state.profile), avatarId } });
}
// for testing window.APP.store.resetToRandomDefaultAvatar()
// to potential programmatically upload avatars https://github.com/mozilla/hubs/blob/master/src/react-components/avatar-editor.js#L108
/* How to use this script :
To play with it "as is" try it in the console of your browser first.
If you do like and want to make it permanent then a bit of UI integration is needed
(e.g. could add an icon, chat command, etc).
That would be done by using https://hubs.mozilla.com/docs/hubs-cloud-custom-clients.html
So that your integration remains easy to merge and maintainable over time it is recommended to
touch Hubs Cloud code itself as little as possible. For example having separate components for
@mattdesl
mattdesl / about.md
Last active June 7, 2023 06:49
canvas-sketch + AxiDraw + pen plotter in 3 commands

canvas-sketch + pen plotter in 3 commands

Install the CLI tool globally:

npm install canvas-sketch-cli -g

Create a new folder and move into it:

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 10, 2024 20:23
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@jimpick
jimpick / 1_summary.txt
Last active April 1, 2019 20:29
Filecoin Simple Probe Test - User Devnet 2019.03.29 v0.1.4
Attempted to store the contents of hello.txt ("Hi my name is Jim") on every miner with a current advertised ask, for a 24 hours duration.
Number of asks: 72
Proposals accepted: 15 of 72
Number of deals transitioned to 'posted' state: 9 of 15
Successful retrievals: 7 of 9
@alanshaw
alanshaw / config.json
Last active August 5, 2019 11:53
NYC to markdown list of names linked to github with counts for activities
{
"repos": [{
"login": "ipfs",
"repo": "aegir",
"after": "2019-05-22"
}, {
"login": "ipfs",
"repo": "js-ipfs",
"after": "2019-05-22"
}, {
@cwervo
cwervo / webAR-authoring-tools.md
Last active April 9, 2023 04:00
A collection of tools for creating AR content using web technologies.