Skip to content

Instantly share code, notes, and snippets.

View karstengresch's full-sized avatar
:octocat:
.

Karsten Gresch karstengresch

:octocat:
.
View GitHub Profile
@karstengresch
karstengresch / mkdim.py
Created August 20, 2021 13:02 — forked from esemwy/mkdim.py
Create DAZ Install Manager packages from zip or directory
#!/usr/bin/python
import uuid
import os
from zipfile import ZipFile, is_zipfile
import sys
import time
from random import randint
import argparse
import re
@karstengresch
karstengresch / devfile.yaml
Last active July 3, 2021 16:51
Quarkus Fork Getting Started devfile
apiVersion: 1.0.0
metadata:
generateName: quarkus-
projects:
- name: quarkus-quickstarts
source:
type: url
location: "https://github.com/karstengresch/quarkus-quickstarts.git"
components:
- type: chePlugin
apiVersion: v1
kind: ConfigMap
metadata:
name: fluentd-config
namespace: fluentd
labels:
app: fluentd
data:
fluentd.conf: |
@include prometheus.conf
@karstengresch
karstengresch / calibre-import-regex.txt
Created December 16, 2020 10:44
Calibre Import RegEx for Files following the naming convention (<author_last_name>, <author_first_name>)* - <title>
^(?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b)(\s*-\s*)?(?P<title>([^\-_\[\(]+))
@karstengresch
karstengresch / gist:d9e53751f717a46e972db0543f4c940f
Created August 17, 2020 14:31 — forked from 480/gist:3b41f449686a089f34edb45d00672f28
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
metadata:
name: quarkus-commandmode-u0k0p
projects:
- name: quarkus-quickstarts
source:
location: 'https://github.com/sunix/quarkus-quickstarts.git'
type: git
sparseCheckoutDir: getting-started-command-mode
branch: commandmode
attributes:
metadata:
name: user1-workspace
components:
- id: redhat/java/latest
type: chePlugin
- mountSources: true
endpoints:
- name: web-user1
port: 8080
attributes:
@karstengresch
karstengresch / ulimit.sh
Created February 14, 2020 11:28 — forked from Maarc/ulimit.sh
Bash script updating the ulimits
#!/usr/bin/env bash
# Automating https://blog.dekstroza.io/ulimit-shenanigans-on-osx-el-capitan/
echo "Updating the ulimits on OSX to be able to run RHAMT tests."
sudo bash -c 'cat >/Library/LaunchDaemons/limit.maxfiles.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
@karstengresch
karstengresch / WARNING.md
Created February 13, 2020 17:09 — forked from Ambroos/WARNING.md
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a partial SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension.

@karstengresch
karstengresch / README.md
Created February 13, 2020 17:01 — forked from nwade/README.md
Remove SentinelOne Agent - macOS High Sierra/Mojave

Warning - use at your own risk

Remove SentinelOne agent from Mac

  1. Boot into Recovery Mode by holding Cmd+R during reboot
  2. Open Terminal from top menubar
  3. Run /Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility to open Disk Utility
  4. If your startup disk is encrypted, use Disk Utility to mount it
  5. In Terminal, run chroot /Volumes/Macintosh\ HD
  6. Execute the deletion commands or script