Skip to content

Instantly share code, notes, and snippets.

View autonome's full-sized avatar

Dietrich Ayala autonome

View GitHub Profile
# list features, sorted by size
alias wf="wc -l features/*.dist | sort"
# list spec-generated draft, sorted by size
alias wfd="wc -l features/draft/spec/*.dist | sort"
# count number of keys in a feature
#
# pass a feature path (from repo root)
# eg:
@autonome
autonome / airtable2pullrequest.yaml
Created June 28, 2024 09:17
Airtable2PullRequest
name: Airtable2PullRequest
on:
workflow_dispatch:
repository_dispatch:
types:
- webhook
permissions:
contents: write
jobs:
checkout-update-and-pr:
/*
Zapier provides the `inputData` global.
This script assumes you've passed in three params:
- text: the post text
- url: a url to attach to the post
- status: `${text} ${url}`
@autonome
autonome / hover-tab-close.js
Created June 10, 2024 09:08
Firefox userChrome.css for showing tab close button on hover, even tho tab is inactive
/* move favicon, throbber and text to the right so that the close button appears on the left */
.tabbrowser-tab .tab-icon-image {
-moz-box-ordinal-group: 2 !important;
}
.tabbrowser-tab .tab-throbber {
-moz-box-ordinal-group: 2 !important;
}
@autonome
autonome / 01_Radicle_in_containers.md
Created March 28, 2024 11:30 — forked from gsaslis/01_Radicle_in_containers.md
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
@autonome
autonome / unmagic.py
Created November 26, 2023 09:20
Firefox profile lz4 de-magicker from mossop
#!/usr/bin/env python
import io
import sys
import lz4.block
MAGIC = b'mozLz40\0'
for path in sys.argv[1:]:
with io.open(path, 'rb') as f:
@autonome
autonome / thingfinder.js
Created March 17, 2023 16:03
script to dump IPFS Thing airtable to local toml files ready for a GHA to make a PR w/ those changes
const https = require('https');
const token = process.env.AIRTABLE_TOKEN;
const url = 'https://api.airtable.com/v0/apptAzTf0HPbYkCbn/Responses'
const options = {
headers: {
'Authorization': 'Bearer ' + token
@autonome
autonome / camera-test.html
Created October 31, 2019 19:59
getUserMedia camera test
<style>
html, body, div, a-scene {
background-color: transparent;
}
#video {
/* overrule a-frame default styles */
width: 100% !important;
max-width: 100% !important;
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/*
Disable tab throbber to stop battery death.
https://bugzilla.mozilla.org/show_bug.cgi?id=1422090#c67
*/
@autonome
autonome / download-site-as-static.sh
Created January 21, 2019 22:52
download website for static/offline use
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains yourdomain.com \
--no-parent \
--no-cache \