Skip to content

Instantly share code, notes, and snippets.

View MaaxGr's full-sized avatar
📄
Coding

Max MaaxGr

📄
Coding
View GitHub Profile
@MaaxGr
MaaxGr / AESEncryption.kt
Created July 11, 2022 06:17
AES Encryption with Kotlin
interface AESEncryption {
fun setKey(myKey: String)
fun encrypt(strToEncrypt: String): String
fun decrypt(strToDecrypt: String): String
}
class AESEncryptionImpl: AESEncryption {
private var secretKey: SecretKeySpec? = null
@MaaxGr
MaaxGr / docker-ps.py
Last active October 29, 2024 18:49
Python Wrapper Script for "docker ps"
#!/usr/bin/python3
import os
import subprocess
import json
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKDARKGRAY = '\033[90m'
@MaaxGr
MaaxGr / resume.json
Last active February 4, 2024 20:56
resume.json
{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Max Großmann",
"label": "Senior Full Stack Developer",
"image": "https://avatars.githubusercontent.com/u/43404580",
"email": "[email protected]",
"phone": "",
Write-Host ""
Write-Host "Connecting to vsphere..."
Connect-VIServer -Server "$Env:VSPHERE_HOST" -User "$Env:VSPHERE_USER" -Password "$Env:VSPHERE_PW"
Write-Host ""
$run = $true
while ($run) {
Write-Host "Actions:"
#!/bin/bash
# Constants
MYSQLDUMP="mysqldump --defaults-extra-file='/etc/mysql/root.cnf'"
MYSQL="mysql --defaults-extra-file='/etc/mysql/root.cnf'"
# Define color codes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'