Skip to content

Instantly share code, notes, and snippets.

View but3k4's full-sized avatar

Claudio Borges but3k4

  • Workday
  • Ireland
View GitHub Profile
@maratori
maratori / .golangci.yml
Last active October 25, 2025 17:47
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.5.0
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
@TsuyoshiUshio
TsuyoshiUshio / azure-pipelines.yml
Created September 24, 2018 12:15
Pipeline for Go lang with coverage report
# Go
# Build your Go application.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/go
pool:
vmImage: 'Ubuntu 16.04'
variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
@Gaboso
Gaboso / license-badges.md
Last active February 25, 2025 19:55 — forked from lukas-h/license-badges.md
Selos de licença para o seu projeto

Selos de licença no Markdown

Coleção de selos de licença para o arquivo README do seu projeto.
Esta lista inclui as licenças open data e open source mais comuns.
Copie e cole facilmente o código dos selos nos seus arquivos em Markdown.

Notas

  • Esses selos não substituem totalmente as informações de licença dos seus projetos, eles são apenas emblemas para o README, que o usuário pode ver a Licença à primeira vista.

Traduções: (sem garantias que as traduções estarão atualizadas)

@DusanMadar
DusanMadar / TorPrivoxyPython.md
Last active October 10, 2025 04:58
A step-by-step guide how to use Python with Tor and Privoxy

A step-by-step guide how to use Python with Tor and Privoxy

Latest revision: 2025-07-24.

Tested on Ubuntu 24.04 Docker container. The Dockerfile is a single line FROM ubuntu:24.04. Alternatively, you can simply run docker run -it ubuntu:24.04 bash.

NOTE: stopping services didn't work for me for some reason. That's why there is kill $(pidof <service name>) after each failed service <service name> stop to kill it.

References

@hiwonjoon
hiwonjoon / python-ffmpeg.py
Last active November 26, 2023 16:11
ffmpeg and ffprobe subprocess call in python; extract specific frame at some timepoint, extract duration of a video
import subprocess
import datetime
import numpy as np
THREAD_NUM=4
def get_video_info(fileloc) :
command = ['ffprobe',
'-v', 'fatal',
'-show_entries', 'stream=width,height,r_frame_rate,duration',
@jamesmacwhite
jamesmacwhite / Workarounds for Netflix and the blocking of IPv6 tunnels.md
Last active September 6, 2025 10:17
Prevent proxy/VPN streaming error messages from Netflix when using a Hurricane Electric IPv6 tunnel.

Workarounds for Netflix and the blocking of Hurricane Electric IPv6 tunnels

The dreaded "You seem to be using an unblocker or proxy." error message. Cool story bro.

This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.

Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.

The problem

Netflix now treats IPv6 tunnel brokers (such as Hurricane Electric) as proxy servers. A while ago it became apparent to users and Netflix that somewhat by accident, IPv6 tunnel users were being served content outside of their geolocation because of the way Netflix was identifyi

@cleot
cleot / nginx-vhost-letsencrypt-ocsp.conf
Created September 3, 2016 17:43
nginx ssl vHost + Letsencrypt OCSP Stapling
server {
listen 443 ssl http2;
ssl on;
#listen [::]:443 ssl http2;
server_name example.com;
keepalive_timeout 300;
# Letsencrypt
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
@m-ou-se
m-ou-se / replace-debian-with-arch.txt
Last active July 3, 2025 21:23
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1
@magnetikonline
magnetikonline / README.md
Last active October 20, 2025 14:03
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set, value is returned.

Combine with a : no-op to discard/ignore return value.
${variable="value"}
: ${variable="value"}