Skip to content

Instantly share code, notes, and snippets.

@TomSchober
TomSchober / openSpaceBuild.sh
Created June 3, 2020 21:01
OpenSpace Test Virtual Machine Ubuntu
# Prerequisite: Ubuntu 18.04.4 Desktop (minimal installation with VirtualBox Guest Additions)
# Dependencies
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y \
build-essential software-properties-common \
gcc-8 g++-8 cmake \
glew-utils freeglut3-dev libsoil1 \
libxrandr-dev libxinerama-dev xorg-dev libcurl4-openssl-dev libgdal-dev libxcursor-dev \
@TomSchober
TomSchober / downloadFfmpegDependencies.sh
Created December 4, 2017 21:15
Download Ffmpeg Dependencies
#!/usr/bin/env bash
apt-get --yes install mercurial
OUTPUT_DIR=downloads/ffmpeg_sources
rm -r ${OUTPUT_DIR}
mkdir -p ${OUTPUT_DIR}
cd ${OUTPUT_DIR}
@TomSchober
TomSchober / installFfmpeg.sh
Created December 4, 2017 21:12
Ffmpeg Install from Source
#!/usr/bin/env bash
# Install ffmpeg dependencies
mkdir -p /var/tmp/ffmpeg_build
apt-get --yes install \
autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev \
cmake
@TomSchober
TomSchober / branchBase.sh
Last active September 6, 2017 19:03
Git Branch Base
#!/usr/bin/env bash
branch_name=$1
branch_base_name=$2
git checkout ${branch_name}
merge_base=`git merge-base ${branch_name} ${branch_base_name}`
branch_commit_date=`git show --summary ${merge_base} --pretty=tformat:'%aI'`
echo ${branch_name} Branched off ${branch_base_name} at: ${merge_base}
echo ${branch_name} Branch Point Commit Date: ${branch_commit_date}
find /path -type d -name "node_modules" -exec rm -rf '{}' +
@TomSchober
TomSchober / ubuntuInstallVirtualBox.sh
Created December 23, 2016 20:56
Ubuntu Install VirtualBox
sudo apt remove virtualbox virtualbox-5.0 virtualbox-4.*
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt update
sudo apt install virtualbox-5.1
@TomSchober
TomSchober / InstallChrome.sh
Created December 14, 2016 15:32
Debian/Ubuntu Install Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get --yes update
sudo apt-get --yes install google-chrome-stable
@TomSchober
TomSchober / PrepareVagrant.md
Last active December 14, 2016 15:28
Prepare Vagrant Box for Packaging

####On the VM, Zero out the virtual disk

sudo dd if=/dev/zero of=/EMPTY bs=1M
sudo rm -f /EMPTY

####Clear bash history

cat /dev/null > ~/.bash_history && history -c && exit

####Package