Skip to content

Instantly share code, notes, and snippets.

@beegal
beegal / eevee-charging-extractor.py
Last active September 24, 2025 12:40
Eevee-charging-extrator
#!/usr/bin/env python3
import math
import time
import argparse
import logging
import sqlite3
import requests
import sys
from datetime import datetime, timezone
from typing import Dict, Tuple, List
@beegal
beegal / fdfiles.py
Last active October 22, 2024 20:36
from __future__ import annotations
import csv
import getopt
import hashlib
import logging
import os
import sys
import time
from enum import Enum
@beegal
beegal / instruction.md
Last active October 11, 2024 23:00
Google Workspace Configuration for OAuth 2.0 with portainer

Google Workspace Configuration for OAuth 2.0

Allows to enable SSO google workspace on portainer, limiting the access to your organisation

On Google Cloud Platform

  • Open the Google Cloud Platform: https://console.cloud.google.com
  • Open the project manager ( Drop down list next to the Google Cloud logo )
  • Click on "New Project".
    Select your organisation, Give a name to the project : "Portainer-OAuth"
require 'formula'
class PkgExtract < CurlDownloadStrategy
def stage
safe_system '/usr/bin/xar', '-xf', @tarball_path
chdir
safe_system 'mv *.pkg/Payload Payload.gz'
safe_system 'ls | grep -v Payload | xargs rm -r'
end
end
@beegal
beegal / tps.py
Last active January 26, 2024 23:40
Compute tps on an api gateway
#!/usr/bin/python
# Allows to compute the throughput of a specific api
import sys, getopt
import time
import urllib2
import thread
import threading
import sys
@beegal
beegal / mac-docker-withot-docker-destop.md
Last active January 26, 2024 09:15 — forked from juancsr/mac-docker-withot-docker-destop.md
Use docker in mac without docker-