Skip to content

Instantly share code, notes, and snippets.

View v67bruno's full-sized avatar

Bruno Vernochi v67bruno

View GitHub Profile
@whatsmate
whatsmate / send-pdf-individual.py
Last active April 15, 2024 09:29
Sending a document to a registered WhatsApp user in Python 3
#!/usr/bin/env python3
import base64
import requests
# TODO: When you have your own Client ID and secret, put down their values here:
instanceId = "YOUR_GATEWAY_INSTANCE_ID_HERE"
clientId = "YOUR_OWN_ID_HERE"
clientSecret = "YOUR_OWN_SECRET_HERE"
@kurlov
kurlov / mkv embed soft subtitles
Created December 16, 2017 23:41
ffmpeg command to add .srt based subtitles to an .mkv file
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv
@ThadeuLuz
ThadeuLuz / dddsBrasileiros.json
Last active October 22, 2024 15:25
Objeto JSON com Estados Brasileiros por DDD e lista de DDDs por Estados.
{
"estadoPorDdd": {
"11": "SP",
"12": "SP",
"13": "SP",
"14": "SP",
"15": "SP",
"16": "SP",
"17": "SP",
"18": "SP",
@cspanring
cspanring / pip-install-gdal.md
Last active August 24, 2024 12:07
Installing GDAL in a Python virtual environment

Installing GDAL in a Python virtual environment

Get gdal development libraries:

$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install libgdal-dev

Create and activate a virtual environment: