Skip to content

Instantly share code, notes, and snippets.

@Resousse
Resousse / getMulesoftLB.py
Created September 26, 2022 10:16
Retrieve the list of LoadBalancer (LB) defined in Mulesoft Anypoint platform
import requests
'''
pip install requests
orgId can be retrieved in any url of the api manager, within the URL after the /organizations/
token can be retrieved if you run the developper console (F12 on Chrome), in network tab, and then go in RuntimeManager then Load Balancers, this could be found in Authorization header, take the part after Bearer
'''
orgId = "insert yours"
token = "insert yours"
#include <Arduino.h>
#include <SPI.h>
#include <ArduinoLowPower.h>
#include <Ethernet.h>
#include <SigFox.h>
byte mac[] = {0x9F, 0xAF, 0xDF, 0x0F, 0xAF, 0x7F};
@Resousse
Resousse / getSignalSpamHeaders.py
Created November 3, 2020 06:59
Get Messages data related to a domain from signal-spam.fr
# -*- coding: utf-8 -*-
import time
import sys
import requests
import json
import re
from decouple import config
import urllib.parse
import pyperclip
# -*- coding: utf-8 -*-
# pip install pdf2image
from pdf2image import convert_from_path
import sys
if len(sys.argv) < 2:
print("Donner un fichier a convertir en argument")
sys.exit()
fichier = sys.argv[1][:-4]