Skip to content

Instantly share code, notes, and snippets.

View lira's full-sized avatar

Fernando Lira lira

View GitHub Profile
@lira
lira / golint.sh
Created August 29, 2025 23:53 — forked from pedronauck/golint.sh
Go and Typescript hooks for lint and check on Claude Code
#!/bin/bash
# Set up logging
LOG_FILE="$HOME/.claude/hooks/golangci-lint.log"
mkdir -p "$(dirname "$LOG_FILE")"
# Function to log with timestamp
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
@lira
lira / wg-easy-setup-oracle-vm.sh
Created June 16, 2025 21:58 — forked from itxtoledo/wg-easy-setup-oracle-vm.sh
Optimized script to install wg-easy on Oracle Linux (Oracle Cloud) in a VPS with 1 GB of RAM
#!/bin/bash
# Check if running as root
if [[ $EUID -ne 0 ]]; then
echo "Error: This script must be run as root. Use sudo."
exit 1
fi
# Initial settings
set -euo pipefail
@lira
lira / .zshrc
Created May 23, 2025 03:49 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@lira
lira / coolify-karakeep-compose.yml
Created May 15, 2025 19:33 — forked from easyselfhost/coolify-karakeep-compose.yml
Docker Compose for Karakeep in Coolify
services:
karakeep:
image: 'ghcr.io/karakeep-app/karakeep:release'
restart: unless-stopped
volumes:
- 'data:/data'
environment:
- 'MEILI_ADDR=http://meilisearch:7700'
- 'BROWSER_WEB_URL=http://chrome:9222'
- DATA_DIR=/data
@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