Skip to content

Instantly share code, notes, and snippets.

View pedrofurtado's full-sized avatar
🤓
👍

Pedro Furtado pedrofurtado

🤓
👍
View GitHub Profile
@Nks
Nks / MediaVideoConverterListener.php
Last active October 9, 2025 09:43
Laravel Media Library converting video to .mp4 after saving
<?php
namespace App\Listeners;
use App\Media;
use FFMpeg\FFMpeg;
use FFMpeg\Format\Video\X264;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\SerializesModels;
@RuChuanLin
RuChuanLin / HashTableOpenAddressing.java
Last active January 7, 2021 17:08 — forked from pedrofurtado/HashTableOpenAddressing.java
Implementation of Hash Table (with Open Addressing) in Java.
/**
* Hash table with open addressing.
*
* <p>This contains some common methods of Map interface, including size, isEmpty, put, get, remove,
* containsKey
*
* <p>For open addressing hash table, we use 100% of the inner array space, and it is a close
* hashing. When collision occurs, it has to find an empty position to store the element. Pedro
* provided few methods to probe a new index. I am not quite familiar with quadratic probing, so the
* default probing method is linear probing, which means if the index is occupied, it automatically
@sanketsudake
sanketsudake / kind-kubernetes-metrics-server.md
Last active October 4, 2025 18:55
Running metric-server on Kind Kubernetes

I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.

Deploy latest metric-server release.

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml

Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls.