Skip to content

Instantly share code, notes, and snippets.

View farhadnowzari's full-sized avatar
💪
Planning/Improving ...,

Farhad Nowzari farhadnowzari

💪
Planning/Improving ...,
View GitHub Profile
image: mcr.microsoft.com/dotnet/sdk:6.0
variables:
PACKAGE_VERSION: 1.0.0
IMAGE_TAG: saga-service:$PACKAGE_VERSION
stages:
- build
- publish
@farhadnowzari
farhadnowzari / runner-config.yml
Created July 30, 2023 14:41
The config to apply into gitlab-runner helm chart
gitlabUrl: <the-path-to-gitlab>
runnerRegistrationToken: <runner-token>
rbac:
create: true
runners:
config: |
[[runners]]
name = "Kubernetes Runner"
[runners.kubernetes]
image = "ubuntu:20.04"
global:
email:
from: <your-email>
reply_to: <your-email>
smtp:
address: <mail-server-address>
authentication: login
enabled: true
password:
key: password
<?xml version="1.0" encoding="UTF-8"?>
<bpm-platform xmlns="http://www.camunda.org/schema/1.0/BpmPlatform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.camunda.org/schema/1.0/BpmPlatform http://www.camunda.org/schema/1.0/BpmPlatform ">
<job-executor>
<job-acquisition name= "default">
<properties>
<property name= "maxWait">500</property>
<property name= "waitTimeInMillis">1000</property>
</properties>
<?xml version="1.0" encoding="UTF-8"?>
<bpm-platform xmlns="http://www.camunda.org/schema/1.0/BpmPlatform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.camunda.org/schema/1.0/BpmPlatform http://www.camunda.org/schema/1.0/BpmPlatform ">
<job-executor>
<job-acquisition name= "default">
<properties>
<property name= "maxWait">500</property>
<property name= "waitTimeInMillis">1000</property>
</properties>
apiVersion: v1
kind: PersistentVolume
metadata:
name: pgsql-pv-yt
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
apiVersion: kubegres.reactive-tech.io/v1
kind: Kubegres
metadata:
name: pgsql
namespace: postgres
spec:
replicas: 1
image: postgres:14.1
database:
schema: 'https://countries.trevorblades.com/'
extensions:
languageService:
cacheSchemaFileForLookup: true
@farhadnowzari
farhadnowzari / .js
Created March 28, 2023 07:44
HelloWorldIntentHandler
const HelloWorldIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'HelloWorldIntent';
},
handle(handlerInput) {
const speakOutput = 'Hello World!';
return handlerInput.responseBuilder
.speak(speakOutput)