Skip to content

Instantly share code, notes, and snippets.

View beeradmoore's full-sized avatar

Brad beeradmoore

View GitHub Profile
@beeradmoore
beeradmoore / FileHelper.cs
Created October 28, 2019 03:15 — forked from IlyaLavrov97/FileHelper.cs
Real Path Hepler class for Xamarin.Android, works for API 21+.
using Android.Content;
using Android.Database;
using Android.OS;
using Android.Provider;
using Android.Text;
using Java.IO;
using System;
using System.IO;
using System.Threading.Tasks;
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@beeradmoore
beeradmoore / install-ffmpeg-amazon-linux.sh
Last active February 7, 2017 20:36 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF