Skip to content

Instantly share code, notes, and snippets.

View machiq's full-sized avatar

Matthew Crnich machiq

View GitHub Profile
@machiq
machiq / folder-creation-script-agency.js
Last active October 18, 2021 20:46
Frame.io API JS Script which creates folders Automatically from a Webhook, Agency Structure
// Destructure Zapier-defined variables
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData;
// Frame.io variables. To run on Zapier you must provide your API Token
const AuthHeader = {
Authorization: `Bearer ${AUTH_TOKEN_KEY}`,
'Content-Type': 'application/json'
};
const API_URL = "https://api.frame.io/v2";
@machiq
machiq / fio-comments-enrich.py
Last active July 30, 2021 19:52 — forked from kylenstone/gist:04a0ec34ff42ca5fde75e986c83ef3b5
Enriching Frame.io comments data with Zapier and Excel Online
import requests
import json
"""
This code demonstrates how to catch Frame.io comments in Zapier
to route them to another app such as Google Docs or Excel.
The following refactors could improve this code:
1. input_data (populated by Zapier) should be presumed to be a comment_id,
not an asset_id. This would simplify the code and reduce API calls.
@machiq
machiq / frameIOFolderTemplaterZapier.js
Last active October 28, 2020 22:53 — forked from kylenstone/frameIOFolderTemplaterZapier.js
Frame.io Folder Templater for Zapier Code Steps (Node 10.x+)
/**
/ This sample code demonstrates applying a Folder template to a Frame.io Project.
/ A Zapier Code Step must be configured to catch webhook events emitted by Frame.io.
/ Learn about Frame.io webhooks: https://docs.frame.io/docs/webhooks
/ Learn about using JavaScript in Zapier: https://zapier.com/help/create/code-webhooks/use-javascript-code-in-zaps
*/
// Destructure Zapier-defined variables
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData;
@machiq
machiq / ffmpeg_movie_2_png_seq
Last active July 12, 2019 17:00
Convert Movie Files into PNG Sequence
#!/bin/bash
#
# 2019-07-12 - Matt Crnich - v001 - Turn Movies into PNG Sequence
#
echo "ENTER SEARCH PATH : "
read srcFilePath
echo
echo "ENTER SEARCH EXTENSION : "
read fileExt
@machiq
machiq / AutoML_data_preparation_AIA023.ipynb
Created July 2, 2019 21:58 — forked from yufengg/AutoML_data_preparation_AIA023.ipynb
Notebook for preparing a CSV for Google Cloud AutoML Vision
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@machiq
machiq / stillImage-exportCSV-removeMeta
Last active June 26, 2019 18:00
Still Image - Export Subject MetaData to CSV and then give option to remove embedded MetaData
#!/bin/bash
#File: stillImage-exportCSV-removeMeta
#
#2019-01-11 Matt Crnich - Hacking on it
#2019-01-15 Matt Crnich - Removed find process in favor of exiftool native functionality
#2019-01-15 Matt Crnich - Adding function to remove metadata from files
#exiftool -IFD1:XResolution -IFD1:YResolution image.jpg
#Extract image resolution from EXIF IFD1 information (thumbnail image IFD).
@machiq
machiq / stillImage-remove-meta-v003.sh
Last active November 6, 2018 19:44
ExifTool remove all MetaData from JPEGs
#!/bin/bash
#File: stillImage-remove-meta-v003.sh
#
# 2018-11-02 - Matt Crnich - v001 - Use exiftool to remove still image metadata
# 2018-11-06 - Matt Crnich - v002 - quieted output
# 2018-11-06 - Matt Crnich - v003 - added awk to calculate total number of processed files
#
#
echo "enter path"
@machiq
machiq / ffmpeg-wmv-v001
Created September 6, 2018 22:37
ffmpeg make WMV
#!/bin/sh
# 2018-09-06 - Matthew Crnich - create WMV using FFMPEG
#
ffmpeg -i "input" -qscale 2 -vcodec msmpeg4 -acodec wmav2 "output.wmv"
@machiq
machiq / gsutil-cp-jpg-v001
Last active September 6, 2018 19:32
gsutil copy only jpg images
find /sourceDir -name "*.jpg" -type f | xargs ./shellScript.sh
@machiq
machiq / ffmpeg-aso-compressions-v001
Last active September 5, 2018 22:35
ffmpeg compression for aso spring
#!/bin/bash
#
# 2018-09-05 - Matt Crnich - v001 - Setup for ASO Spring Footage
#
#
### Medium Preset, Fast Decode Tune with +Faststart at 1920x1080 ###
### copy Timecode track ###
### mix down multi-track audio track into stereo mix ###
#