Skip to content

Instantly share code, notes, and snippets.

@steven2358
steven2358 / ffmpeg.md
Last active May 10, 2024 20:57
FFmpeg cheat sheet
@shortjared
shortjared / nginx.conf
Last active June 19, 2023 18:29
AWS API Gateway Nginx Reverse Proxy
# NOTE
#
#
# Use sed on the instance up to replace the INSTANCE_ID and DNS_RESOLVER with the following commands
#
####################################################################################################
# Fetch the private IP for resolving DNS dynamically in nginx
# We also need to escape the `.` from it for usage in later sed
#
# DNS_RESOLVER=`grep nameserver /etc/resolv.conf | cut -d " " -f2 | sed 's/\./\\./g'`
@RomkeVdMeulen
RomkeVdMeulen / by_marker.d.ts
Last active March 21, 2018 13:08
Add a `by.marker` locator to Protractor to match elements marked with an "e2e" attribute
import {Locator} from "protractor/built/locators";
declare module "protractor/built/locators" {
export interface ProtractorBy {
marker(marker: string, parentElement?: Node): Locator;
}
}
@clouddueling
clouddueling / AccountRole.js
Created June 14, 2014 17:33
Through association with SailsJS. Make sure all references to models are lowercase because that is how they're stored.
module.exports = {
tableName: 'account_roles',
attributes: {
account_id: 'integer',
name: 'string',
description: 'text',
deleted: 'boolean',