Skip to content

Instantly share code, notes, and snippets.

View lira's full-sized avatar
🐢
Working from home

Fernando Lira lira

🐢
Working from home
View GitHub Profile
@lira
lira / build_ffmpeg_command.py
Created November 5, 2024 12:13 — forked from akitaonrails/build_ffmpeg_command.py
Try to convert Netflix videos into an open MKV format
# Procedure:
# - download the episodes you want from the Android Netflix app (there is a limit)
# - connect your smartphone to your PC and navigate to Internal Storage/Android/data/com.netflix.mediaclient/Download/.of.
# - fetch each directory (each directory is one episode)
#
# Each directory should have the following file formats:
# - .nfv - the video stream, possibly already in H.264, unencrypted
# - .nfa - the most difficult file to deal with, it's an unencrypted AAC file in ISO fMP4 (fragmented) format and an unknown "object type 42" that ffmpeg complains
# - .nfs - subtitle in TTML format with custom properties.
# - .nfi - information about the download (unknown format)
@lira
lira / GetNordVPNWireGuardDetails.md
Created November 3, 2024 15:28 — forked from bluewalk/GetNordVPNWireGuardDetails.md
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@lira
lira / benchmarking-tools.md
Created October 28, 2024 15:03 — forked from aliesbelik/benchmarking-tools.md
Benchmarking & load testing tools
@lira
lira / wireguard-site-to-site.sh
Created September 29, 2024 20:59 — forked from jtmoon79/wireguard-site-to-site.sh
Wireguard Site to Site generator
#!/usr/bin/env bash
#
# https://gist.github.com/jtmoon79/c951f81f621bb87ddb60836245aca4ff
#
# Script to generate a site-to-site Wireguard IPv4 VPN tunnel
# configuration files, and commands for systemd services.
# This script only covers a narrow scope of possible networking arrangements.
# It may not perfectly fit the user's needs, but it may provide the user with
# a working example that they can modify for their needs.
#
@lira
lira / AuthyToOtherAuthenticator.md
Created May 22, 2024 20:25 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@lira
lira / gist:6e91b2b74f48515acfaccfa9c77cf69b
Created September 19, 2023 18:29 — forked from davidhemphill/gist:5188894
How to do a Git clone without the .git directory
// Clone the repo
git clone --depth=1 git://someserver/somerepo dirformynewrepo
// Remove the .git directory
rm -rf !$/.git
@lira
lira / ddns-start
Created July 10, 2023 15:26 — forked from greysAcademicCode/ddns-start
Google Domains DDNS registration script
#!/bin/sh
# see: https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#google-domains
# this script could go into /jffs/scripts of a router running Merlin's asus-wrt firmware
# you must then choose the "Custom" option for DDNS in the router's web interface
# it registers the WAN IP of the router with Google Domains' DDNS system
# get your login info from yout Google Domains dashboard
IP=$1
USER=
PASS=
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Fernando Lira",
"label": "Senior Software Engineer",
"image": "https://avatars0.githubusercontent.com/u/1247740?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"summary": "I'm a Software Engineer at Mercado Livre, a big player of marketplace, with multi-language environment. I'm worked with SysAdmin and SysOp Linux too.",
"website": "https://liraf.dev",
@lira
lira / awscreds_encrypt.sh
Created January 6, 2023 19:05 — forked from benhagen/awscreds_encrypt.sh
BASH script to take your two AWS environment vars, and encrypt them via AES-256. Store these values in a generated shell script which can be sourced to apply the variables when the correct password is given.
#!/bin/bash
read -sp "Enter encryption password: " PASSWORD
echo ""
read -sp "Confirm encryption password: " PASSWORD_CONFIRM
echo ""
if [[ "$PASSWORD" != "$PASSWORD_CONFIRM" ]]; then
echo "ERROR: Passwords do not match!"
exit 1
@lira
lira / mercadopago-iva.php
Created March 10, 2022 19:40 — forked from GiovanniCavallari/mercadopago-iva.php
IVA Customization for mercadopago plugin for woocommerce
/**
* WC_WooMercadoPago_PreferenceAbstract.php
*/
// Declare the taxes variable at the beginning of the file
protected $taxes;
// Set the value on constructor
$this->taxes = 500;