Skip to content

Instantly share code, notes, and snippets.

View immanuelpotter's full-sized avatar

Immanuel Potter immanuelpotter

View GitHub Profile
@sadikay
sadikay / video-to-gif.bash
Last active February 14, 2019 21:34
.mov to .gif - Convert quick time player videos to gif format on macOs command line.
brew install ffmpeg
brew cask install x-quartz #dependency for gifsicle, only required for mountain-lion and above
open /usr/local/Cellar/x-quartz/2.7.4/XQuartz.pkg # runs the XQuartz installer
brew install gifsicle
ffmpeg -i ~/Desktop/in1080.mov -s 920x540 -pix_fmt rgb24 -r 18 -f gif - | gifsicle --optimize=3 --delay=3 > ~/Desktop/out.gif
@unfunco
unfunco / better-ide-suggestions-serverless-typescript.md
Last active April 30, 2023 18:11
Improved IntelliSense for Serverless and TypeScript

Improved IntelliSense for Serverless and TypeScript

The aws-nodejs-typescript template provided by the [Serverless Framework] scaffolds Lambda functions in such a way that it's difficult for an IDE to infer types correctly. For example, the following code defines a Lambda function as a plain object literal, this is what is generated when creating a new service.

import { handlerPath } from '@libs/handler-resolver'