Skip to content

Instantly share code, notes, and snippets.

View genitalico's full-sized avatar

Galileo Teco genitalico

View GitHub Profile
@genitalico
genitalico / preinde.js
Created June 3, 2024 03:13
Pre conteo INE 2024
const request = async () => {
const myHeaders = new Headers();
myHeaders.append("accept", "application/json, text/plain, */*");
myHeaders.append("accept-language", "en,es-MX;q=0.9,es;q=0.8,en-US;q=0.7,es-ES;q=0.6");
// myHeaders.append("if-modified-since", "Mon, 03 Jun 2024 02:11:59 GMT");
myHeaders.append("if-none-match", "\"de25a1fa8c2f61e8c49f3c26cf1b3093\"");
myHeaders.append("priority", "u=1, i");
myHeaders.append("referer", "https://prep2024.ine.mx/publicacion/nacional/presidencia/nacional/candidatura");
myHeaders.append("sec-ch-ua", "\"Microsoft Edge\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"");
myHeaders.append("sec-ch-ua-mobile", "?0");
@genitalico
genitalico / a2dp.py
Created July 7, 2017 05:46 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .