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
#!/bin/bash | |
bfn=foo | |
codec=flac | |
hz=48000 | |
#hz=44100 | |
thz=24000 | |
#thz=22050 | |
workdir=work_dec | |
sfn=${bfn}_${thz}_steg.wav | |
ifn=$workdir/${bfn}_$hz.wav |
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
#!/bin/bash | |
PW=$(jq -r .privatekey < ~/.config/algia/config.json | sha256sum | cut -d' ' -f1) | |
openssl aes256 -K $PW -iv 00000000000000000000000000000000 | base64 |
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
package main | |
import ( | |
"fmt" | |
"github.com/nbd-wtf/go-nostr" | |
"github.com/nbd-wtf/go-nostr/nip19" | |
"github.com/tyler-smith/go-bip32" | |
"github.com/tyler-smith/go-bip39" | |
) |
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
#!/bin/bash | |
# description: Nostr status update script | |
if [ -z "$3" ]; then | |
echo "usage: ./nostr-status.sh title artist length_ms" | |
exit | |
fi | |
relays="wss://relay.damus.io wss://nos.lol wss://yabu.me" |
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
#!/bin/sh | |
export OP=$PATH | |
#export BASEPATH=$HOME/.PlayOnLinux/wine/linux-amd64/5.12 # TODO failed ! | |
export BASEPATH=$HOME/.PlayOnLinux/wine/linux-amd64/5.7 | |
export PATH=$BASEPATH/bin:$OP | |
export WINEARCH=win64 | |
export WINEPREFIX=$HOME/wineDrives/dot.wine64.voidol | |
export WINE=wine64 | |
#winecfg # to Windows 10 | |
#winecfg # change DPI? |
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 React, { useState, useEffect } from "react" | |
import ReactAudioPlayer from 'react-audio-player' | |
export default function Monacard2(props) { | |
const [url, setUrl] = useState(null); | |
const [audiourl, setAudiourl] = useState(''); // TODO | |
const name = props.name; | |
const gateway = props.gateway || 'https://ipfs.io/'; | |
useEffect(() => { | |
const api = 'https://monapa.electrum-mona.org/_api' |
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
FROM node | |
RUN apt-get update && \ | |
apt-get install -y xvfb libgtk2.0-0 libxtst-dev libxss-dev libgconf2-dev \ | |
libnss3 libasound2-dev && \ | |
apt-get clean | |
RUN npm install webtorrent-hybrid -g | |
RUN mkdir work | |
WORKDIR work | |
CMD webtorrent-hybrid download \ | |
e14cef00945a8d99dc74d65cf52dcb892cf48ed1 \ |
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
#!/bin/bash | |
API=https://card.mona.jp/api | |
DB=monacard_db | |
IMG=img | |
TMPD=tmp.d | |
BACKUPD=backup.d | |
mkdir -p $DB | |
mkdir -p $IMG | |
mkdir -p $TMPD | |
mkdir -p $BACKUPD |
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
#!/bin/bash | |
tmpfile=$(tempfile) | |
stun -v stun.l.google.com:19302 2> $tmpfile > /dev/null | |
port1=$(grep Opened.port $tmpfile | head -1 | cut -d ' ' -f 3) | |
port2=$(grep Opened.port $tmpfile | tail -1 | cut -d ' ' -f 3) | |
hostport1=$(grep MappedAddre $tmpfile | head -1 | cut -d ' ' -f 3) | |
hostport2=$(grep MappedAddre $tmpfile | tail -1 | cut -d ' ' -f 3) | |
rm -f $tmpfile | |
globalipv4=$(echo $hostport1 | cut -d : -f 1) | |
globalport1=$(echo $hostport1 | cut -d : -f 2) |
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 React, { useEffect, useState } from "react" | |
const apis = [ | |
'https://monapa.electrum-mona.org/_api', | |
'https://mpchain.info/api/cb', | |
'https://wallet.monaparty.me/_api', | |
]; | |
export default function ReadBC(props) { | |
const [msgs, setMsgs] = useState(null); |
NewerOlder