Skip to content

Instantly share code, notes, and snippets.

View MPTG94's full-sized avatar

Mor Paz MPTG94

View GitHub Profile
@MPTG94
MPTG94 / issue-repsonse.json
Created August 27, 2023 06:23
issue-response.json
{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations,customfield_10010.requestTypePractice",
"id": "13497",
"self": "https://sample.atlassian.net/rest/api/3/issue/13497",
"key": "SAMPLE-3490",
"fields": {
"statuscategorychangedate": "2023-07-19T11:15:09.444+0300",
"issuetype": {
"self": "https://sample.atlassian.net/rest/api/3/issuetype/10001",
"id": "10001",
@MPTG94
MPTG94 / k8s-deploy.json
Created August 25, 2023 16:09
K8s-deploy.json
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"annotations": {
"deployment.kubernetes.io/revision": "1",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"commitHash\":\"b2633eae0655322b22f1637eb309ba4052ceeb74\",\"environment\":\"production-gcp-1\",\"service\":\"authorization\"},\"name\":\"authorization-service-production-gcp-1\",\"namespace\":\"port-sales-demo\"},\"spec\":{\"replicas\":1,\"revisionHistoryLimit\":3,\"selector\":{\"matchLabels\":{\"app\":\"authorization-service-production-gcp-1\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"authorization-service-production-gcp-1\"}},\"spec\":{\"containers\":[{\"image\":\"public.ecr.aws/y8q1v8m0/fastapi-sample:latest\",\"imagePullPolicy\":\"Always\",\"name\":\"authorization-service\",\"ports\":[{\"containerPort\":80}]}]}}}}\n"
},
"creationTimestamp": "2023-07-27T14:41:15Z",
@MPTG94
MPTG94 / workflow.yml
Last active May 5, 2023 17:12
Modified GitHub workflow SDLC template
name: Report SDLC to Port
on:
workflow_call:
workflow_dispatch:
push:
branches:
- master
- main
jobs:
{
"singleQuote": true
}
@MPTG94
MPTG94 / gulp.config.js
Created December 8, 2017 08:28
Config file for gulp variables
module.exports = function() {
var client = './src/client/';
var clientApp = client + 'app/';
var server = './src/server/';
var temp = './.tmp/';
var config = {
/**
* All JS paths
*/
alljs: ['./src/**/*.js', './*.js'],
@MPTG94
MPTG94 / .eslintrc
Last active December 8, 2017 08:28
Basic ESLint Configuration
{
"extends": "prettier",
"env": {
"browser": true,
"node": true
},
"plugins": ["prettier", "react"],
"rules": {
"prettier/prettier": "error",
"new-cap": 1,
@MPTG94
MPTG94 / gulpfile.js
Last active December 8, 2017 08:27
Basic Gulp Configuration
const gulp = require('gulp');
const args = require('yargs').argv;
const browserSync = require('browser-sync');
const config = require('./gulp.config')();
const del = require('del');
const $ = require('gulp-load-plugins')({
lazy: true
});
let port = process.env.PORT || config.defaultPort;
@MPTG94
MPTG94 / .editorconfig
Last active September 22, 2016 16:41
Default Configs
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8