Skip to content

Instantly share code, notes, and snippets.

@jiajunngjj
jiajunngjj / starship.toml
Created July 21, 2022 04:13 — forked from ryo-ARAKI/starship.toml
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
[[battery.display]]
threshold = 30
style = "bold red"
//installation in k8s
kubectl create namespace argocd
//deploy manifest
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
//patch to type LoadBalancer
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
//retreive password
@jiajunngjj
jiajunngjj / quick-ref-jekyll-markdown.md
Created August 12, 2020 11:26 — forked from roachhd/quick-ref-jekyll-markdown.md
Jekyll Markdown Quick Reference

#Jekyll Markdown Quick Reference

####Write in simply awesome markdown

layout: post
title: Markdown Style Guide
---
Sample BuildConfig Pipeline
kind: "BuildConfig"
apiVersion: build.openshift.io/v1
metadata:
name: "pipeline-demo"
spec:
triggers:
- github:
secret: 5Mlic4Le
type: GitHub
Sample BuildConfig Pipeline
kind: "BuildConfig"
apiVersion: build.openshift.io/v1
metadata:
name: "pipeline-demo"
spec:
triggers:
- github:
secret: 5Mlic4Le
type: GitHub
oc create secret docker-registry <secret_name> --docker-server=registry.redhat.io --docker-username=<username> --docker-password=<password>
oc create -f <file_name>.yaml
oc secrets link default <secret_name> --for=pull
oc secrets link builder <secret_name> --for=pull
mvn io.quarkus:quarkus-maven-plugin:1.4.2.Final:create \
-DprojectGroupId=my-groupId \
-DprojectArtifactId=my-artifactId \
-DprojectVersion=my-version \
-DclassName="org.my.group.MyResource"
@jiajunngjj
jiajunngjj / mvn-fuse-project-create-cmd
Created April 22, 2020 06:49
Create a Fuse project skeleton using the following Maven command
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
-DarchetypeCatalog=https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-740017-redhat-00003/archetypes-catalog-2.2.0.fuse-740017-redhat-00003-archetype-catalog.xml \
-DarchetypeGroupId=org.jboss.fuse.fis.archetypes \
-DarchetypeArtifactId=spring-boot-camel-xml-archetype \
-DarchetypeVersion=2.2.0.fuse-740017-redhat-00003
@jiajunngjj
jiajunngjj / install-configure-maven.md
Last active February 6, 2020 16:52
Install and configure maven on RHEL 7

Install and Configure Maven

yum -y install java-1.8.0-openjdk-devel
wget https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xzf apache-maven-3.6.3-bin.tar.gz
mv apache-maven-3.6.3 /opt/maven

cat << EOF >> /etc/profile.d/maven.sh
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64
@jiajunngjj
jiajunngjj / openshift-cheatsheet.md
Created February 4, 2020 06:24 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa