Skip to content

Instantly share code, notes, and snippets.

View majodev's full-sized avatar

Mario Ranftl majodev

View GitHub Profile
@majodev
majodev / oci-superdelete-with-uv
Created September 10, 2025 12:28
run-oci-superdelete-with-uv
# https://github.com/AnykeyNL/OCI-SuperDelete
# prerequisite: https://github.com/astral-sh/uv and fully configured oci-cli
git clone https://github.com/AnykeyNL/OCI-SuperDelete.git
# https://github.com/AnykeyNL/OCI-SuperDelete/commit/c285991543f4e0bc00805d83a8a440d5ade4a01b
cd OCI-SuperDelete
uv init
uv add oci requests
uv run delete.py -rg REGION -c COMPARTMENT_ID
@majodev
majodev / README.md
Created September 9, 2025 18:29
OCI audit logs export

Tryout https://docs.oracle.com/en/learn/oci-audit-logs/#introduction in 2025-09-09

# Text search and replace COMPARTMENT_ID with your compartment-id

# Your oci-cli must be fully configured to run this python script!
# e.g. test getting a sample audit log on a specific day (page 0):
oci logging-search search-logs --search-query 'search "COMPARTMENT_ID/_Audit" | sort by datetime desc' --time-start 2025-08-01"T00:00:00Z" --time-end 2025-08-01"T23:59:00Z"

# Install https://github.com/astral-sh/uv
@majodev
majodev / Dockerfile
Created December 4, 2018 09:11
netdata daemonset on kubernetes
FROM netdata/netdata:latest
MAINTAINER YOUR_EMAIL
# add netdata user to root group (access volumne mounts from host)
RUN apk --no-cache add shadow
RUN usermod -a -G root netdata
ENTRYPOINT ["/usr/sbin/run.sh"]
@majodev
majodev / keybase.md
Created December 10, 2017 20:20
keybase public proof

Keybase proof

I hereby claim:

  • I am majodev on github.
  • I am mranftl (https://keybase.io/mranftl) on keybase.
  • I have a public key ASB73VpLBBV5HwAFxRepbjDjcV5yAfKofRHfyO-SBmYTYQo

To claim this, I am signing this object:

@majodev
majodev / handlemdtest.hbs.md.text
Last active August 29, 2015 14:06
Metalsmith plugin to complile handlebars files within src with current meta
<!--- filename: handlemdtest.hbs.md -->
---
title: HandlebarsCombiMarkdown
customWorld: Universe
---
This file tests if markdown and handlebars could play together in the same file.
Hallo {{customWorld}}!
@majodev
majodev / capture.js
Created July 22, 2014 17:21
Capture screenshots (png) from multiple sites with phantomjs
// How to: save as capture.js and run with "phantomjs capture.js"
// Setup by modifying URLS, PAGE_WIDTH AND PAGE_HEIGHT constants!
// Hint: set PAGE_WIDTH or PAGE_HEIGHT to 0 to capture full page!
// modified version of script at http://www.cameronjtinker.com/post/2011/09/26/Take-Screenshot-of-all-HTML-documents-in-a-folder-using-PhantomJS.aspx
var PAGE_WIDTH = 960;
var PAGE_HEIGHT = 640;
var URLS = [
"http://github.com",