Skip to content

Instantly share code, notes, and snippets.

View jmsaavedra's full-sized avatar

Joe Saavedra jmsaavedra

View GitHub Profile
@jmsaavedra
jmsaavedra / ffmpeg_install.md
Last active February 29, 2024 09:36
Install FFmpeg on a Linux Box

Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.

  • SSH into your instance and become root
@jmsaavedra
jmsaavedra / contracts...IoSingleTransferExt.sol
Created September 11, 2023 23:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: Infinite Objects
import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@manifoldxyz/creator-core-solidity/contracts/core/IERC1155CreatorCore.sol";
import "@manifoldxyz/creator-core-solidity/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol";
@jmsaavedra
jmsaavedra / .deps...npm...@manifoldxyz...creator-core-solidity...contracts...core...CreatorCore.sol
Created September 11, 2023 23:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
@jmsaavedra
jmsaavedra / ffmpeg_cmds.md
Last active May 4, 2023 14:25
Collection of ffmpeg commands

Collection of Useful ffmpeg Commands

  • optimize with faststart (for mobile web)
  • crf (quality) goes from 0 (lossless) - 50 (very poor).
ffmpeg -i input.mp4 -crf 30 -profile:v baseline -level 3.0 -movflags +faststart -an output.mp4

@jmsaavedra
jmsaavedra / installffmpeg.md
Last active August 25, 2022 07:01
Install ffmpeg with h264 OSX 10.14
@jmsaavedra
jmsaavedra / flowOrderToslack.liquid
Last active June 15, 2022 12:22
Shopify Liquid for Flow > Slack
{% assign order_num = order.name | remove: '#' %}
{% assign order_modulo = order_num | modulo:1000 %}
{% assign customer_moments_ct = order.customerJourneySummary.momentsCount %}
{% assign note_len = order.note | size %}
{% assign billingco_len = order.billingAddress.company | size %}
{% assign customer_firstvisit_refurl_len = order.customerJourneySummary.firstVisit.referrerUrl | size %}
{% assign customer_firstvisit_desc_len = order.customerJourneySummary.firstVisit.sourceDescription | size %}
{% assign customer_lastvisit_refurl_len = order.customerJourneySummary.lastVisit.referrerUrl | size %}
{% assign customer_lastvisit_desc_len = order.customerJourneySummary.lastVisit.sourceDescription | size %}
{% assign order_refurl_len = order.referrerUrl | size %}
@jmsaavedra
jmsaavedra / .gitignore
Last active June 1, 2022 10:09
gitignore template
###################################
# general ignore patterns
###################################
build/
obj/
*.o
Debug*/
Release*/
*.mode*
@jmsaavedra
jmsaavedra / ffmpeg_concat.md
Last active October 18, 2019 04:28
FFmpeg Concat Strategies
@jmsaavedra
jmsaavedra / chromium.md
Last active May 1, 2019 20:15
install chromium on raspbian jessie

install chromium on raspbian jessie

get these chromium debs (THEY ARE ALSO IN THIS FOLDER):

wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
wget https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb