Skip to content

Instantly share code, notes, and snippets.

View felipemarinho97's full-sized avatar

Felipe Marinho felipemarinho97

View GitHub Profile
@krisleech
krisleech / renew-gpgkey.md
Last active June 17, 2025 12:32
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@pixelchai
pixelchai / m3u8_listener.md
Last active June 9, 2025 22:22
Tutorial on how to listen for and extract m3u8 streams over https using TShark

Listening for m3u8 files using TShark

Set-Up

In order to capture https traffic, some setting up is required in order to allow tshark to decrypt the traffic.
A pre-master secret key will be used in order to do this.

Basically, we need to get the browser to log a SSL key log file. This can be done by following the steps here: https://www.comparitech.com/net-admin/decrypt-ssl-with-wireshark/.

In summary, the steps are:

  1. export SSLKEYLOGFILE=~/.ssl-key.log
@edgarsandi
edgarsandi / _install.md
Last active August 30, 2022 19:14
Terraform plan GitLab highlight
@craigphicks
craigphicks / setup-aws-linux-for-gpu.sh
Created August 17, 2024 10:04
Setup an AWS Linux AMI with NVIDIA-Linux-x86_64 drivers and nvidia-container-toolkit
#!/bin/bash
set -e
# Step-by-Step Installation Guide
# Step 0: Remove existing NVIDIA drivers and CUDA installations
sudo yum erase -y nvidia cuda
# Step 1: Update the system and install dependencies
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then