Create a directory .github/workflows
in root of. your project
Create main.yml file in that directory with following content
name: Deploy
# Trigger the workflow on push and
# pull request events on the master branch
on:
"use strict"; | |
var __importDefault = (this && this.__importDefault) || function (mod) { | |
return (mod && mod.__esModule) ? mod : { "default": mod }; | |
}; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
exports.BaseService = void 0; | |
const lodash_1 = __importDefault(require("lodash")); | |
const rxjs_1 = require("rxjs"); | |
const prismaMetaMapper_1 = require("./prismaMetaMapper"); | |
class BaseService { |
{ | |
"AF": { | |
"name": "Afghanistan", | |
"callingCode": 93, | |
"isoA2": "AF", | |
"isoA3": "AFG", | |
"isoNum": 4 | |
}, | |
"AL": { | |
"name": "Albania", |
ffmpeg -y -hwaccel cuda \ | |
-i video1.mp4 -hwaccel cuda -i video2.mp4 -hwaccel cuda -i video3.mp4 -hwaccel cuda -i video4.mp4 \ | |
-filter_complex "[0:v]scale=iw/2:ih/2[v0];[1:v]scale=iw/2:ih/2[v1];[2:v]scale=iw/2:ih/2[v2];[3:v]scale=iw/2:ih/2[v3];[v0][v1]hstack[top];[v2][v3]hstack[bottom];[top][bottom]vstack" \ | |
-c:v h264_nvenc -preset fast -b:v 5M output.mp4 |
alias watch_netstat='watch -n 1 "echo '\''Proto Recv-Q Send-Q Local Address Foreign Address State'\'' && sudo netstat -ant | grep ESTABLISHED | awk '\''\$2 > 0 || \$3 > 0'\''"' |
caddy: | |
image: caddy:2.7.4 | |
restart: always | |
volumes: | |
- caddy_data:/data | |
- ./Caddyfile:/etc/caddy/Caddyfile | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: |
// https://stackoverflow.com/questions/326679/choosing-an-attractive-linear-scale-for-a-graphs-y-axis | |
var min=89; | |
var max=173; | |
var actualHeight=1200; // 500 pixels high graph | |
var tickCount =Math.round(actualHeight/100); | |
// we want lines about every 100 pixels. | |
if(tickCount <3) tickCount =3; | |
var range=Math.abs(max-min); |
const object = { | |
"customer.firstname": "raj", | |
"customer.lastname": "sharma", | |
"kop.shak.rap": 99, | |
"kop.shak.saip": 99, | |
simon: "regular", | |
}; | |
function convertPathObjectToObject(object: any) { | |
function injectInChild(arr: any, val: any, obj: any = {}, k: any = 0) { |