Skip to content

Instantly share code, notes, and snippets.

View tonym128's full-sized avatar

Tony Mamacos tonym128

View GitHub Profile
@tonym128
tonym128 / shhh.py
Created December 9, 2022 21:48
Telegram Bot for Speeh to Text using OpenWhisper and capable of running on a Pi 4
import logging
from telegram import Update
from telegram.ext import filters, MessageHandler, ApplicationBuilder, CommandHandler, ContextTypes
import os
import shlex
from subprocess import Popen, PIPE
import time
import dbm
import uuid
@tonym128
tonym128 / Powershell Git All Folders Update.txt
Last active October 28, 2020 07:36
Git Powershell Get all folders
Get-ChildItem -Recurse -Depth 2 -Force |
Where-Object { $_.Mode -match "h" -and $_.FullName -like "*\.git" } |
ForEach-Object -Parallel {
cd $_.FullName
cd ../
git pull
cd ../
}
Thanks to https://michael-mckenna.com/update-multiple-git-repositories-on-windows-at-once-using-powershell/
@tonym128
tonym128 / docker-rm-images.md
Last active October 11, 2018 18:19 — forked from alferov/docker-rm-images.md
Remove all (untagged) images and containers from Docker
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")

# System Prune
# WARNING! This will remove:

Keybase proof

I hereby claim:

  • I am tonym128 on github.
  • I am tonym (https://keybase.io/tonym) on keybase.
  • I have a public key whose fingerprint is CDF6 6A0A 8AE8 99E1 AB6C 8298 E9F7 5380 3F69 B474

To claim this, I am signing this object: