Skip to content

Instantly share code, notes, and snippets.

View noam-goldface's full-sized avatar

Noam Goldface noam-goldface

  • WSC Sports
  • Israel
View GitHub Profile
@noam-goldface
noam-goldface / keda-values.yaml
Last active August 30, 2025 14:52
YAML file valuse example for WSC Sports KEDA Helm chart
- deploymentName: prod-deployment
maxReplicaCount: 100
minReplicaCount: 1
triggers:
- type: queue
name: name
length: 5
- type: sql
database: db
targetValue: 1
@noam-goldface
noam-goldface / server.js
Created December 29, 2017 18:27
Render entire EJS views directory with Express.js
import express from 'express';
import fs from 'fs';
const server = express();
server.set('view engine', 'ejs');
function filesToRender(dir){
function fileSubstring(file, dir){
return file.substring(0, file.length - 4).replace(dir,'')
body {
font: 14px "Century Gothic", Futura, sans-serif;
margin: 20px;
}
ol, ul {
padding-left: 30px;
}
.board-row:after {