Skip to content

Instantly share code, notes, and snippets.

View rarmatei's full-sized avatar
🐔

Rares Matei rarmatei

🐔
  • Nrwl.io
  • Glasgow, UK
View GitHub Profile
name: "NxCloud Git Checkout step"
description: "Clone a repository at the current commit inside an NxCloud workflow"
runs:
using: ubuntu
steps:
- name: Run some command in bash
run: echo "from inside actions file"
apiVersion: v1
kind: Secret
metadata:
name: nx-cloud-k8s-secret
type: Opaque
stringData:
ADMIN_PASSWORD: your-admin-password
GITHUB_AUTH_CLIENT_ID: ''
GITHUB_AUTH_CLIENT_SECRET: ''
nxCloudAppURL: 'https://local.nx.app'
global:
imageRepository: 'nxprivatecloud'
imageTag: '2306.01.2.patch1'
secret:
name: 'nx-cloud-k8s-secret'
adminPassword: 'ADMIN_PASSWORD'
# githubAuthClientId: 'GITHUB_AUTH_CLIENT_ID'
image:
tag: 'latest'
nxCloudAppURL: 'https://your-domain-nx-cloud.com'
ingress:
skip: true
secret:
name: 'nx-cloud-k8s-secret'
@rarmatei
rarmatei / ingress-ami.yml
Last active May 26, 2023 10:58
ingress-ami.yml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nx-cloud-ingress
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
labels:
app: nx-cloud
spec:
rules:
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
},
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 11,
sourceType: "module",

What is the value result in these code snippets

// 1
var writerAge = 10
var result = writerAge + 5
// 2
var writer1 = 10
@rarmatei
rarmatei / dom-ajax.md
Created April 25, 2019 22:58
Dom ajax quiz

DOM & AJAX rite of passage

outline:

Explain in detail using plain English what's happening in the code below:

var myButton = document.querySelector('#myButton');

  function alertSomething() {

alert("Something");

class Library {
titles!: string[];
address: string = "1 Duck Lane";
isPublic: boolean;
constructor() {
this.isPublic = true;
}
}