Skip to content

Instantly share code, notes, and snippets.

View s-steephan's full-sized avatar
🎯
Focusing

Steephan Selvaraj s-steephan

🎯
Focusing
  • Analog and Digital Labs
  • Coimbatore, TamilNadu, India.
View GitHub Profile
const express = require('express');
const { AsyncLocalStorage } = require('async_hooks');
const http = require('http');
const asyncLocalStorage = new AsyncLocalStorage();
const app = express();
app.use((req, res, next) => {
asyncLocalStorage.run({
seqId: req.query.seqId // Set here

To apply mask to all images

# replace mask.png with your mask file name.

for i in *.png; do convert $i  mask.png -gravity center -composite $i; done 
@s-steephan
s-steephan / comments.md
Last active November 18, 2021 12:08
important terminal comments

ffmpeg Convert Comments

for i in *.asf; do ffmpeg -i $i -bsf:v h264_mp4toannexb -c:v copy $i.mp4; done

ffmpeg -ss 00:00:00 -i NVR_ch1_main_20180712001236_20180712005603.dav.mp4 -t 00:21:00 -vcodec copy -acodec copy newfile.mp4

Partial mysql dump

mysqldump -u root -p violet --ignore-table=violet.challan --where='1 limit 100'> all.sql 
{
"ways": [
{
"wayId": 1,
"intensityRatio": 100,
"upperLeft": [
527,
90
],
"url": "/home/ravi/Programming/vehicle-detection/Samples/dav26/1.mp4",