Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar
🎯
Focusing

Rafael T. C. Soares (A.K.A Tuelho) rafaeltuelho

🎯
Focusing
  • Red Hat Inc.
  • Frisco, TX, USA
  • 01:01 (UTC -05:00)
View GitHub Profile
@ibuziuk
ibuziuk / blogs_2024.md
Last active March 29, 2024 09:28
Eclipse Che / Dev Spaces Blog Post Schedule 2024

January

February

# used in OpenSSF EU 22 presentation:
#!/bin/sh
#set -X
#doitlive commentecho: true
### start second demo
#!/bin/sh
#set -x
# used in DevConf 22 presentation: https://www.youtube.com/watch?v=vh26wcpA1-M
#!/bin/sh
#set -X
#doitlive commentecho: true
#
# Start with a clean slate
make clean
#
# Edit the source
@r00ta
r00ta / trusty-end2end.md
Last active February 6, 2022 16:27
END 2 END TRUSTY INFRASTRUCTURE TESTING

END 2 END TRUSTY INFRASTRUCTURE TESTING

In order to run this test, you have to setup your environment with java, mvn, docker and docker-compose. Tested with

  • openjdk 11.0.6 2020-01-14
  • apache-maven-3.6.3
  • Docker version 20.10.3, build 48d30b5
  • docker-compose version 1.25.2, build 698e2846.
  1. Clone the repositories kiegroup/kogito-runtimes, kiegroup/kogito-apps and kiegroup/kogito-examples. In addition to that, checkout to the release branch: for example if the release is 1.8.x, then run
apiVersion: v1
kind: Secret
type: kubernetes.io/ssh-auth
metadata:
name: ssh-key-for-git
annotations:
tekton.dev/git-0: github.com
data:
ssh-privatekey: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcFFJQkFBS0NBUUVBbTFhcXpaS2tQM2xmUTBmcGNveTVTZ3EwMDQ2by9mMksyRTVLdXhpV3VWTitKb0pCCjNHS1p6TWJvNDRMQmxuSm1yMjZFZjUxc25hSnoyY1NRZDRmeXQ1VENyR2FjKzFXR3lhUTk2MWdoU2pHQzhBa1kKRUdqdmx2a1pveTN2MUNYSXVCL3VwS3p6MSt1bzBMOGJIc0E2RExGMndsNTBnRndBNDJmME1PcUJkeVBDcGViZgpWc0pZbWR4NE9CQmtRVkNkVkt4cXE2ZzdZWGlDaS9uaVhKVW1tODl5Q3RYKzJnUDM4RjJNVXI3c0E2Mi8xY09GCkpzREJLRGUvaUIvY1VMdGZQWmZ1S2dFaXJ3UE9ENnZBZG5EWEtvUFprWnJwWFpCb0toRjQzOWkvSzhGaUJFQ3kKVU8wQWUzbUF6L24zMkpLKzlMbUI5VlhaOFR3citONUkxMEREbVFJREFRQUJBb0lCQVFDUTYwRDcrbU83Uit0RQo1SkQ1S2lvdTFtQXV3bmdNUlA3RW4vMytJSWwxS2x5VlpvNDFJZFBraEdsKzMxemxrNk1TNWFNOVAwdTJvSGsrClg3QjdvMXdnUXV0L1ZWZjg3cVNKOSsxQVkzN2pMZCsvT215MTJvQXpNLy9rQ1pZbU1IM2FzUWU5b0JENWpzUjIKd3VOMVE5YWtRdWZObTd0S2lRclhIUU5tbzFEWEtRc3drNEFLdDJSbHhBOGV0ZDcxSmNxNitQL0dCQm8zMTJ0ZwpBcS9Cb1FMbXh4WFA2MmFPbG1Ocy9VWTJ6VHQyN
#!/bin/sh
#set -x
#doitlive commentecho: true
# Requires openssl, step (https://github.com/smallstep/cli), jq
## COSIGN or SWISS-ARMY-KNIFE TOOL
# use openssl to generate keypair
openssl ecparam -genkey -name secp384r1 > ec_private.pem
@mvl
mvl / GithubClient.gs
Last active December 30, 2021 12:13 — forked from pamelafox/GithubClient.gs
Google Apps Script for committing a file to Github Repo
/*
* GitHub Commits for Google App Script.
* Originally derived from https://gist.github.com/pamelafox/ea0474daa137f035b489bf78cc5797ea
* but now heavily modified.
* Provides functionality for much of the GitHub 'Git database' API:
* https://docs.github.com/en/rest/reference/git
*
* This allows some basic query and commit operations on a repository in GitHub without
* requiring a local git client. The functionality is currently limited to getting available
* branches, and the building blocks for constructing a commit. Since this is done via REST

Red Hat UBI OpenJDK Image

Table of Contents

Informational variables

Table 1. Table Informational variables

Name

Value

Description

@luszczynski
luszczynski / docker-push-remote-openshift.md
Last active January 3, 2020 02:38
Docker push to Openshift (from external machine)

Docker push to Openshift (from external machine)

Export some vars:

MY_USER=admin
MY_PASS=redhat@123
OCP_MASTER_URL=https://ocp-master.example.com:8443

If you are cluster-admin,