Skip to content

Instantly share code, notes, and snippets.

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

Andrea Cervesato thekoma

🏠
Working from home
View GitHub Profile
@thekoma
thekoma / pcap philips avent.txt
Created September 12, 2022 18:07
pcap philips avent
OPTIONS rtsp://192.168.85.42/av2_0 RTSP/1.0
CSeq: 34
User-Agent:.aQ.E..d.{..FrB.=
RTSP/1.0 200 OK
CSeq: 34
Date: Mon, Sep 12 2022 15:17:41 GMT
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN
DESCRIBE rtsp://192.168.85.42/av2_0 RTSP/1.0
@thekoma
thekoma / gist:8068a82d6b4ada63021638d9b12adfe2
Last active January 20, 2021 18:28
openshift_orphaned_pod_cleaner.sh
#!/bin/bash
# This script has to run as root directly IN coreOS.
# Probably you shouldn't use it if you don't fully understand what it will do.
# Optimized for OCP from : https://github.com/kubernetes/kubernetes/issues/60987
KUBELET_HOME=/var/lib
PODS=$(journalctl --since "6 hour ago" --grep "orphaned pod" |awk -F"orphaned pod" '{print $2}'|awk '{print $1}' |sort -u |sed 's/"//g')
for podid in $PODS;
do
if [ ! -d ${KUBELET_HOME}/kubelet/pods/$podid ]; then

Inim Cloud API reverse engineered

Endpoint: https://api.inimcloud.com/?req=<HTTP ENCODED JSON>


Unregister

{
@thekoma
thekoma / wfica_install_patcher.sh
Created June 10, 2020 12:43
This script want to patch the Citrix ICA Client installation on fedora 30 31 32 . (Piece of garbage software)
#!/bin/bash
if [ $UID -gt 0 ]; then
echo You must be root
exit 99
fi
echo "Installing dependencies"
dnf install -y motif motif.i686 libXaw libXaw.i686 libidn1.34
if [ "$(rpm -qa |grep -i icaclient|wc -l )" -lt 1 ]; then

Keybase proof

I hereby claim:

  • I am koma-andrea on github.
  • I am therealkoma (https://keybase.io/therealkoma) on keybase.
  • I have a public key ASCkAQnpQ_EY4msh83JkNYJBUAeGQ3L1YrV7upigUmX2gwo

To claim this, I am signing this object:

@thekoma
thekoma / boto3_test.py
Created May 17, 2019 14:52
Ceph boto3 example
#!/usr/bin/env python
import logging
import boto3
import datetime
import botocore
import os
access_key = 'test'
secret_key = 'test'
endpoint_url = 'http://127.0.0.1:8000'
@thekoma
thekoma / out.log
Created July 7, 2017 09:33
Output terraform error
Error applying plan:
5 error(s) occurred:
* vcd_vapp_vm.elastics[2] (destroy): 1 error(s) occurred:
* vcd_vapp_vm.elastics.2: Error Undeploying vApp: &errors.errorString{s:"error undeploy vApp: API Error: 400: [ 3ac48d40-b054-417f-b1ea-9ae4241fca63 ] The entity ELK_NET is busy completing an operation."}
* vcd_vapp_vm.kibanas (destroy): 1 error(s) occurred:
2017/07/07 11:31:25 [DEBUG] plugin: /home/koma/src/terraform_go/bin/terraform-provider-powerdns: plugin process exited