# General purpose ipfs gateway for Macula nodes;
*.g.macula.link {
encode gzip
# rewrite the main request
rewrite * /ipfs/{labels.3}{uri}
reverse_proxy {
# proxy all to the IPFS gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return a function that checks if a number is in a range | |
* @param low - inclusive | |
* @param high - inclusive | |
* @returns | |
*/ | |
export function inRange(low: number, high: number): (x: number) => boolean { | |
return allPass([(x: number) => x >= low, (x: number) => x <= high]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE CameraDetails ( | |
Manufacturer SYMBOL, | |
Model SYMBOL, | |
Orientation SYMBOL, | |
Software STRING, | |
DateAndTime timestamp, | |
YCbCrPositioning SYMBOL, | |
Compression SYMBOL, | |
XResolution LONG, | |
YResolution LONG, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Thu Sep 7 14:24:51 on ttys011 | |
+(eval):1> z4h load ohmyzsh/ohmyzsh/plugins/nvm | |
+z4h:1> (( 1 )) | |
+z4h:2> -z4h-cmd-load ohmyzsh/ohmyzsh/plugins/nvm | |
+-z4h-cmd-load:1> local -a compile | |
+-z4h-cmd-load:2> zparseopts -D -F -- 'c=compile' '-compile=compile' | |
+-z4h-cmd-load:4> local -a files | |
+-z4h-cmd-load:6> '(anon)' ohmyzsh/ohmyzsh/plugins/nvm | |
+(anon):1> emulate -L zsh -o extended_glob | |
+(anon):2> local pkgs=( /Users/woss/.cache/zsh4humans/v5/ohmyzsh/ohmyzsh/plugins/nvm ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
name: 'ubuntu-latest / Node.js ${{ matrix.node-version }}' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
import FormData from "form-data"; | |
// create DL stream | |
const dl = await axios.get('url.tar', { | |
responseType: "stream", | |
}); | |
// create multipart | |
const formData = new FormData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"strategy": "github", | |
"context": { | |
"UrlForDomainWithUsername": [ | |
"https://github.com/woss", | |
"github.com", | |
"woss" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
######################################################################################################################### | |
## Make it excutable | |
## chmod +x create.sh | |
## | |
## Parachain example | |
## ./create.sh --chain local --image registry.gitlab.com/anagolay/anagolay/idiyanale:3861d9b3 --parachain 4222 | |
## | |
## Relaychain example | |
## ./create.sh --chain rococo-local --image parity/polkadot:v0.9.38 --relay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPOSE_PROJECT_NAME=remote-signer | |
ENABLE_API_KEY_SUPPORT=true | |
APPROVED_API_KEY=( UUID4 or anything really as long as this is exported on the sender side ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// enable this in docusaurus.config.js > plugins: [require('./plugins/gitpod')], | |
/** | |
* Docusaurus plugin to work with the gitpod and HMR | |
*/ | |
module.exports = function () { | |
const { GITPOD_WORKSPACE_URL } = process.env; | |
return { | |
name: 'enable-hot-reload-for-gitpod', | |
configureWebpack(config, isServer) { |
NewerOlder