Skip to content

Instantly share code, notes, and snippets.

View identiq's full-sized avatar

Alexandre Rodriguez identiq

View GitHub Profile
@identiq
identiq / keybase.md
Created September 24, 2016 13:13
keybase.md

Keybase proof

I hereby claim:

  • I am identiq on github.
  • I am identiq (https://keybase.io/identiq) on keybase.
  • I have a public key whose fingerprint is B474 B621 5BF7 3E8F 3BC9 6C2D D6FA FAD9 608E F538

To claim this, I am signing this object:

@identiq
identiq / Gif.js
Created November 25, 2018 17:37
Video preview generation (like giphy) with FFMPEG (ffmpeg-fluent) on node Serverless Lambda
const config = require('../config.json');
const fs = require('fs');
const _ = require('lodash');
const path = require('path');
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);
const AWS = require('aws-sdk');
const s3 = new AWS.S3({
@identiq
identiq / stream.ts
Created October 19, 2023 15:03
node:stream/promises
import dayjs from 'dayjs'
import { parse } from 'csv-parse'
import { fecs, type Company, type Fec } from './schema'
import { type Readable, Transform } from 'node:stream'
import { stringify } from 'csv-stringify'
import { drz, sqlClient } from './drizzle'
import { and, eq, sql } from 'drizzle-orm'
import { pipeline } from 'node:stream/promises'
import { GetObjectCommand } from '@aws-sdk/client-s3'
import { s3 } from '~/services/s3/s3.server'