Skip to content

Instantly share code, notes, and snippets.

View smourapina's full-sized avatar

Silvia P. smourapina

View GitHub Profile
@smourapina
smourapina / dl.sh
Created March 5, 2023 07:35 — forked from mknz/dl.sh
Download YouTube video, extract audio and convert it to whisper-cpp compatible wav
#!/bin/bash
WORKDIR=/tmp/whisper
rm -rf $WORKDIR
mkdir $WORKDIR
URL=\'$1\'
SAVEFILE=\'$WORKDIR/tmp.3gpp\'
python -c "from pytube import YouTube; YouTube($URL).streams.first().download(filename=$SAVEFILE)"
ffmpeg -i $WORKDIR/tmp.3gpp -ar 16000 -ac 1 -c:a pcm_s16le $WORKDIR/tmp.wav &> /dev/null
@smourapina
smourapina / kafka.md
Created July 20, 2020 08:07 — forked from ashrithr/kafka.md
kafka introduction

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic
@smourapina
smourapina / private_fork.md
Created May 3, 2020 15:40 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

Kubernetes New Contributor Workshop - KubeCon EU 2018

Special Interest Groups (SIGs)

Types of SIGs:

Master list can be found here

  • Feature areas:

Quick Tips for Fast Code on the JVM

I was talking to a coworker recently about general techniques that almost always form the core of any effort to write very fast, down-to-the-metal hot path code on the JVM, and they pointed out that there really isn't a particularly good place to go for this information. It occurred to me that, really, I had more or less picked up all of it by word of mouth and experience, and there just aren't any good reference sources on the topic. So… here's my word of mouth.

This is by no means a comprehensive gist. It's also important to understand that the techniques that I outline in here are not 100% absolute either. Performance on the JVM is an incredibly complicated subject, and while there are rules that almost always hold true, the "almost" remains very salient. Also, for many or even most applications, there will be other techniques that I'm not mentioning which will have a greater impact. JMH, Java Flight Recorder, and a good profiler are your very best friend! Mea

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x