Skip to content

Instantly share code, notes, and snippets.

View rm3l's full-sized avatar

Armel Soro rm3l

View GitHub Profile
#!/bin/sh
set -o errexit
set -x
cluster_name=${1:-local-k8s-cluster}
registry_port=${2:-35000}
# create registry container unless it already exists
registry_name='local-registry.localhost'
@rm3l
rm3l / sample-devspace.yaml
Created June 6, 2023 08:13
Sample configuration for use with DevSpace
version: v2beta1
name: devspace-test
# You can either specify an exact version or a version range or even
# multiple versions.
require:
devspace: '>= 4.0, < 6.0'
# By default devspace will try to call the command 'NAME version'
# and use the regex '(v\\d+\\.\\d+\\.\\d+)' to find the version
commands:
@rm3l
rm3l / devfile-parent-springboot-mvn.yaml
Created May 25, 2023 10:21
Child Devfile using java-quarkus as parent
schemaVersion: 2.1.0
metadata:
name: java-springboot-jdk17
description: Java application using Spring Boot® and OpenJDK 17
version: 1.3.0
parent:
uri: https://registry.stage.devfile.io/devfiles/java-springboot/1.2.0
components:
- name: tools
container:
commands:
- exec:
commandLine: echo exec-1 succeeding after 5s... && sleep 5 && exit 0
component: runtime
id: exec-1
- exec:
commandLine: echo from exec-2
component: runtime
id: exec-2
- exec:
@rm3l
rm3l / proc_net_tcp_decode
Created March 3, 2023 12:13 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
FROM quay.io/phmartin/node:17
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD [ "node", "server.js" ]
@rm3l
rm3l / mock-google-services.json
Created May 12, 2022 21:11
mock-google-services.json from firebase/quickstart-android
{
"project_info": {
"project_id": "mockproject-1234",
"project_number": "123456789000",
"name": "FirebaseQuickstarts",
"firebase_url": "https://mockproject-1234.firebaseio.com"
},
"client": [
{
"client_info": {
@rm3l
rm3l / git-filter-repo-change-commit-email.sh
Created May 1, 2022 22:53
git-filter-repo - changing author and committer email in multiple commits
#!/bin/sh
# Install git-filter-repo, as suggested by git docs: https://git-scm.com/docs/git-filter-branch#_warning
git filter-repo --commit-callback '
old_email = b"[email protected]"
correct_name = b"Your Correct Name"
correct_email = b"[email protected]"
if commit.committer_email == old_email :
diff --git a/tests/helper/helper_dev.go b/tests/helper/helper_dev.go
index 00cd1c08c..54aed03cd 100644
--- a/tests/helper/helper_dev.go
+++ b/tests/helper/helper_dev.go
@@ -1,10 +1,16 @@
package helper
import (
+ "fmt"
+ "os/exec"
schemaVersion: 2.0.0
metadata:
name: java-quarkus
version: 1.1.0
website: https://quarkus.io
displayName: Quarkus Java
description: Quarkus with Java
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
tags: ['Java', 'Quarkus']
projectType: 'quarkus'