Skip to content

Instantly share code, notes, and snippets.

View markthepixel's full-sized avatar
👋
oh hi

oh hi mark markthepixel

👋
oh hi
  • USA
View GitHub Profile
@BigAlRender
BigAlRender / render-build.sh
Last active November 11, 2024 23:03
Install Chrome on Render Native Environment
#!/usr/bin/env bash
# exit on error
set -o errexit
STORAGE_DIR=/opt/render/project/.render
if [[ ! -d $STORAGE_DIR/chrome ]]; then
echo "...Downloading Chrome"
mkdir -p $STORAGE_DIR/chrome
cd $STORAGE_DIR/chrome
/*!
query-string
Parse and stringify URL query strings
https://github.com/sindresorhus/query-string
by Sindre Sorhus
MIT License
*/
(function () {
'use strict';
var queryString = {};
@Vestride
Vestride / encoding-video.md
Last active November 15, 2024 17:57
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@SanjeevMohindra
SanjeevMohindra / function.php
Created October 29, 2013 17:54
Video Embed Shortcode for YouTube with Schema Markup
// YouTube ShortCode [youtube src="" title="" duration="" thumbnail="" description=""]
function youtube_shortcode( $atts ) {
extract(shortcode_atts(array(
'src' => '',
'title' => '',
'duration' => '',
'thumbnail' => '',
'description' => ''
), $atts));
$video_tag = '<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';