Skip to content

Instantly share code, notes, and snippets.

@lucataco
lucataco / ollama_fast_speech_text_speech.py
Last active May 15, 2024 23:07
speech to text to speech using Ollama
""" 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/* .
@fenkint1
fenkint1 / pokemon_names.txt
Last active February 12, 2024 05:25
List of all Pokemon Names
Bulbasaur
Ivysaur
Venusaur
Charmander
Charmeleon
Charizard
Squirtle
Wartortle
Blastoise
Caterpie
@pheebcodes
pheebcodes / guide.md
Last active March 29, 2022 13:17
Adding architecture to your M1 Mac terminal with starship

Adding the current architecture to your starship command prompt.

# ~/.config/starship.toml

format = """
$username\
$hostname\
$arch\
$shlvl\
@foo4u
foo4u / docker-imagetool-inspect.out
Created January 8, 2020 19:34
Building Multi-Architecture Docker Images on ARM 64
$ 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
@foo4u
foo4u / docker-build.out
Created January 8, 2020 19:23
Building Multi-Architecture Docker Images on ARM 64
$ 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
@foo4u
foo4u / create-builder.out
Created January 8, 2020 19:08
Building Multi-Architecture Docker Images on ARM 64
$ docker buildx create --name mbuilder
mbuilder
$ docker buildx use mbuilder
$ docker buildx inspect --bootstrap
Name: mbuilder
Driver: docker-container
Nodes:
@ianfinch
ianfinch / rpi4-usb.sh
Last active March 5, 2024 17:55
Raspberry Pi 4 USB Gadget
#!/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
@7MinSec
7MinSec / NPK_quick_start.md
Last active May 7, 2023 14:24
Quick start guide to install NPK (https://github.com/Coalfire-Research/npk) on Ubuntu 18

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
@seokbeomKim
seokbeomKim / .bash_profile
Last active September 25, 2023 15:12 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
env-configuration
# 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
@AnoRebel
AnoRebel / Kali-WSL.sh
Created May 19, 2018 08:52
Installing Kali-Xfce on WSL
=| Kali Linux on Win 10 |=
[First Install]
sudo cat /etc/issue
sudo apt-get update
sudo apt-get dist-upgrade (y)
sudo apt-get install webshells [you may need to allow access via defender / smartscreen]
sudo apt-get clean
sudo apt-get install webshells [re-do if first time blocked by defender / smartscreen]