Skip to content

Instantly share code, notes, and snippets.

View mperesson's full-sized avatar
🤔

Maxime Peresson mperesson

🤔
View GitHub Profile
@mperesson
mperesson / test.svg
Created August 9, 2022 10:09
Test svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
CPU Family: 0x6
@mperesson
mperesson / trash_kayako_spam.py
Created April 25, 2019 08:31
Kayako API remove spam
import requests
from requests.auth import HTTPBasicAuth
auth = HTTPBasicAuth('email', 'password')
while True:
r = requests.get('https://COMPANY.kayako.com/api/v1/search?fields=id&query=QUERY&offset=0&limit=30&resources=CONVERSATIONS', auth=auth)
ids = []
j = r.json()
if len(j['data']) == 0:
break
for data in j['data']: