Skip to content

Instantly share code, notes, and snippets.

View rosjat's full-sized avatar
🏠
Working from home

Markus Rosjat rosjat

🏠
Working from home
  • for hire
  • Bautzen, Germany
  • 12:30 (UTC +02:00)
View GitHub Profile
@rosjat
rosjat / open_ilos.ps1
Created February 27, 2023 15:52
simple way to open all tohse silly iLO Pages in a browser
# simply add as many urls as you need and your standard browser should take care of the rest
# maybe i go through the trouble to figure out how to pass user and password one day but i guess not
# since HE is just to paranoid to let anyone do anything without there proprietary c**p
$ilos = @("https://your.ilo.fqdn", "https://or.your.ilo.ip")
$ilos | foreach-object -Process {Start-Process $_}
@rosjat
rosjat / poc_trac_teams_notification.py
Last active October 20, 2021 11:51
PoC for a Trac Plugin to send Notifications to a Teams channel
from trac.core import Component, implements
from trac.ticket.api import ITicketChangeListener
from trac.wiki.model import WikiPage
import requests
import json
whook = "<enter your webhook url here>"
def create_payload(ticket_id, values):
@rosjat
rosjat / bodyfat.py
Last active August 7, 2018 07:59
bodyfat calculation
from __future__ import division
BODYFAT_K_3P_CP_M = {'k0': 1.10938,
'k1': 0.0008267,
'k2': 0.0000016,
'ka': 0.0002574, }
BODYFAT_K_3P_CP_F = {'k0': 1.0994921,
'k1': 0.0009929,
@rosjat
rosjat / setup.py
Last active January 25, 2018 11:46
Add Extention to a Python Distribution before the build
# This may help others to get started with there custom build process
#
# you find millions of post how to make a custom command and to run code
# but if you want to somewhat alter the way how extentions are build or
# not you may find yourself stuck ... like I was
from distutils.command.build import build as _build
from distutils.core import setup, Extension
foo_module = Extension(name='foo',