Skip to content

Instantly share code, notes, and snippets.

@gtpedrosa
gtpedrosa / whisper-audio-to-text.py
Created January 26, 2023 23:46 — forked from rasbt/whisper-audio-to-text.py
Transcribes audio files using OpenAI Whisper
# Setup:
# conda create -n whisper python=3.9
# conda activate whisper
# https://github.com/openai/whisper
# pip install git+https://github.com/openai/whisper.git
# Usage:
# python whisper-audio-to-text.py --audio_dir my_files --out_dir texts
import argparse
@gtpedrosa
gtpedrosa / fix-intel_wifi_aer-avell_g1513_fire_v3
Created March 7, 2022 00:32 — forked from Brainiarc7/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
@gtpedrosa
gtpedrosa / scanner.sh
Created April 4, 2020 02:40 — forked from andyrbell/scanner.sh
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@gtpedrosa
gtpedrosa / drop_shadow
Last active April 5, 2017 12:40 — forked from chrisn/drop_shadow
Add a drop shadow to an image, using ImageMagick #imageMagick
# Credits: <lookup which forum i got this from>
convert <input-file> \( +clone -background black -shadow 30x8+0+0 \) +swap -background none -layers merge +repage <output-file>