# ~/.config/starship.toml
format = """
$username\
$hostname\
$arch\
$shlvl\
This file contains hidden or 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
""" To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory | |
brew install portaudio | |
brew install git-lfs | |
git lfs install | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
This file contains hidden or 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
Bulbasaur | |
Ivysaur | |
Venusaur | |
Charmander | |
Charmeleon | |
Charizard | |
Squirtle | |
Wartortle | |
Blastoise | |
Caterpie |
Paul Miller's explanation of endomorphism:
secp256k1 is Koblitz curve (e.g. Short Weierstrass curve with a=0).
Koblitz curves allow using efficiently-computable GLV endomorphism ψ:
- GLV endomorphism ψ transforms a point:
P = (x, y) ↦ ψ(P) = (β·x mod p, y)
- GLV scalar decomposition transforms a scalar:
k ≡ k₁ + k₂·λ (mod n)
This file contains hidden or 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
$ docker buildx imagetools inspect foo4u/demo-mutliarch:2 | |
Name: docker.io/foo4u/demo-mutliarch:2 | |
MediaType: application/vnd.docker.distribution.manifest.list.v2+json | |
Digest: sha256:3b4e4135b92017e5214421543b813e83a77fcea759af8067c685b70a5d978497 | |
Manifests: | |
Name: docker.io/foo4u/demo-mutliarch:2@sha256:cb54200a7c04dded134ca9e3e6a0e434c2fdf851fb3a7226941d0983ad5bfb88 | |
MediaType: application/vnd.docker.distribution.manifest.v2+json | |
Platform: linux/amd64 |
This file contains hidden or 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
$ docker buildx build --platform linux/amd64,linux/arm64 -t foo4u/demo-mutliarch:2 --push . | |
[+] Building 4.7s (9/9) FINISHED | |
=> [internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 31B 0.0s | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [linux/amd64 internal] load metadata for docker.io/library/alpine:latest |
This file contains hidden or 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
$ docker buildx create --name mbuilder | |
mbuilder | |
$ docker buildx use mbuilder | |
$ docker buildx inspect --bootstrap | |
Name: mbuilder | |
Driver: docker-container | |
Nodes: |
This file contains hidden or 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 | |
# Set up a Raspberry Pi 4 as a USB-C Ethernet Gadget | |
# Based on: | |
# - https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/ | |
# - https://pastebin.com/VtAusEmf | |
if ! $(grep -q dtoverlay=dwc2 /boot/config.txt) ; then | |
echo "Add the line dtoverlay=dwc2 to /boot/config.txt" | |
exit | |
fi |
This gist is a little long in the tooth, so your mileage my vary. We also covered NPK in a podcast episode.
This is an in-progress quick start install guide for NPK on Ubuntu 18.
From a new Ubuntu 18 box, install the essentials:
apt install unzip -y
This file contains hidden or 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
# This is personal bash_profile | |
export TERM=xterm-256color | |
function cd | |
{ | |
if [ $# -eq 0 ]; then | |
pushd ~ > /dev/null | |
elif [ " $1" = " -" ]; then | |
pushd "$OLDPWD" > /dev/null | |
else |
NewerOlder