openai whisper

Lets use some ai magic to transcribe audio in the command line. simple enough with whisper https://github.com/openai/whisper whisper audiofile.m4a --language English --model medium and then there is the python version which is oktoo import whisper model = whisper.load_model("base") result = model.transcribe("audio.mp3") print(result["text"]) I have had pretty good results with it but i think that i like the ui better for a simple macos app called whisper transcription. there is a paid tier but the free one is good enough for me....

2024-06-13 · 1 min · 104 words · Mike Fettis

ecr and aws orgs

We have an AWS ORG, we want to share some things between accounts in the ORG. Namely ecr and code artifact. In order to get an ECR repository to share, be shared across multiple AWS accounts, you have many, many, many different ways that you can do this. You can do it probably 12 different ways, and maybe even more than that. But I am going to do it with AWS orgs and with kind of a permissive structure in that anyone that is a part of the org will get access to the ECR....

2024-05-14 · 2 min · 356 words · Mike Fettis

writing again?

I have been thinking that I should start writing again. Over the past few years I have gone back and forth on the writing and finding both the time and the inspiration to begin writing again. Why have I not been writing enough? Part of it is I have not had the creative energy, and I have not had the inspiration, or I have not been remembering to do it. Also, I’ve not been writing down things I’m learning, and it’s frustrating because I cannot remember what things are, and in order to solve that, I simply need to write things down and start writing again....

2024-05-14 · 2 min · 314 words · Mike Fettis

zmk dongles

I am trying to create a dongle setup to use with my wireless skeltyls. I have not been using them as much as i would like because they are a giant pita to deal with when they come out of sleep, and when they are reconnecting. so i thought that i would like to try and do a dongle mode with them and see how it goes. Working with ZMK dongles mode in ZMK I have a ZMK keyboard....

2024-05-14 · 2 min · 278 words · Mike Fettis

makefile list

Working with make commands can be tiresome. Especially when those makefiles are really long and you do not know what commands are in them or you cannot remember what the commands are named. Here is a neat little trick to help with that. make list <Makefile> test: echo "testing" build: echo "building" deploy: echo "deploying" list: @grep '^[^#[:space:]].*:' Makefile | sort just add the extra list command to a makefile like this...

2023-12-15 · 1 min · 92 words · Mike Fettis

tracing redirects

Follow the redirect road Sometimes you want to have a curl command that traces the redirects and lets you see hops that it makes along the way long story short do this curl -sLD - http://test.chrislatta.org/myredirect.html -o /dev/null it will look like this $ curl -sLD - http://test.chrislatta.org/myredirect.html -o /dev/null HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=iso-8859-1 Content-Length: 244 Connection: keep-alive Location: http://test.chrislatta.org/hop1.html HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=iso-8859-1 Content-Length: 244 Connection: keep-alive Location: http://test....

2023-12-15 · 1 min · 117 words · Mike Fettis

keyboard-mounts

keyboard mounts this is the easiest cleanest and cheapest way I have found to mount a split keyboard. the sticker that you apply to the keyboard case has adhesive and can be bought in a multi pack these are great because they are pretty cheap and their height is less that your standard silicon bumpon, therefore you can have the bumpons for feet and they will sit nicely on any flat surface when not mounted...

2023-10-27 · 1 min · 212 words · Mike Fettis

tfstate-migration

It turns out that if you were using terraform.io as a remote state only situation, hashicorp is upping the price to a price per resource model and making things really expensive. It is now time to migrate from tf.io to s3 and not pay a ton of money.. BLADE And never again have to pay for a service that would be dirt cheap... RAZOR ...IF it weren't run by a bunch of profiteering gluttons!...

2023-09-15 · 2 min · 292 words · Mike Fettis

2023-08-24-minimodem

adeventures in old technology so there is an application called minimodem and it will transmit and receive data at various bps etc. why not see what it takes to move a 1.5mb file. cause lol base64 -i img.jpg|minimodem --tx 9600 --ascii -f 9600.wav ffmpeg -i 9600.wav 9600.mp3 ffmpeg -i 9600.mp3 9600.wav minimodem --rx 9600 -f 9600.wav|base64 -d >img_output9600.png at 9600 bps the file is 36 minutes long. and 120mb once in mp3 its 17mb....

2023-08-24 · 1 min · 118 words · Mike Fettis

terraform targeting

terraform targeting https://github.com/ridingintraffic/ridingintraffic.github.com/wiki/code_sre#terraform-targetingd Yes you are supposed to never use a targeted plan and apply in terraform becuase it is the violation of the Infra as code creed. But you know what sometimes you just gotta do a thing and get it done. Then you never want to remember your shame and as a result you go and forget how to do that thing. so here it is terraform plan -target="aws_appautoscaling_scheduled_action....

2023-08-18 · 1 min · 81 words · Mike Fettis

gitlab exit codes aws arm building

gitlab and exit codes Sometimes gitlab will have a command or a script that runs and it will not trap an exit code properly. This results in an error condition happening in a script, but the job in the pipeline to come back green. here is some meat and context around the issue as well. https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25394 and then a bit more here https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77601 and then of course it still isn’t fixed as of today’s writing https://gitlab....

2023-08-17 · 2 min · 336 words · Mike Fettis

boost audio on video file

Was the audio too quiet on something that you recorded? Are you lazy and you don’t want to drop in the file to a timeline editor just so you can gain boost? most laptops will have ffmpeg on them, and if your mac doesnt then a simple brew install ffmpeg https://formulae.brew.sh/formula/ffmpeg ffmpeg -i "your_input_file.mp4" -vcodec copy -filter:a "volume=15dB" "your_output_file.mp4" there you have it short and simple now your video file is louder....

2023-08-14 · 1 min · 72 words · Mike Fettis

improvisation as a way of life

I am a leaf on the wind, watch how I soar. this is an old post from 2018 that I never added here but I thought it was still relevant today - Roll with the punches, go with the flow, make it up as you go… People always say that you should stay flexible with your plans. Don’t be afraid to change things. Never in my wildest dreams would I fully understand what it means to live a life of constant improvisation than when we had our first child....

2023-08-14 · 3 min · 534 words · Mike Fettis

docker-powershell

docker powershell To prove a point i went out and foudn that there is a microsoft supported docker image for powershell. dockerhub - microsoft this means that running a mac, you can run docker that runs linux and then will let you run powershell.. You must go deeper… ha instant pot dragon head instant pots are pretty rad and there is this little thingverse that will let you have a dragon head for your instant pot, you just need to make sure that you print it with pla so that it does not instamelt when you are releasing the steam dragon head

2018-11-12 · 1 min · 102 words · Mike Fettis