Skip to content

Instantly share code, notes, and snippets.

View varunchopra's full-sized avatar

Varun Chopra varunchopra

View GitHub Profile
Vagrant.configure("2") do |config|
config.vm.define "workstation", primary: true do |workstation|
workstation.vm.box = "generic/rhel7"
workstation.vm.hostname = "workstation.example.com"
workstation.vm.synced_folder "../Ansible", "/workspace"
workstation.vm.network "private_network", ip: "10.0.0.10"
workstation.vm.provider "virtualbox" do |vb|
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get install software-properties-common apache2
# add qbittorent ppa
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
# install qbittorent for headless servers
sudo apt-get update && sudo apt-get install qbittorrent-nox
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
apt-get -y install build-essential gcc make git libssl-dev
git clone https://github.com/chopraaa/rtmpdump-ksv.git
cd rtmpdump-ksv
patch -p0 -i Patch.diff
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
images=20
OLDIFS=$IFS
IFS=$(echo -en "\n\b")
if [ $1"x" != "x" ]; then
file=$1;
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
a=ffmpeg
b=ffmpeg-git-64bit-static.tar.xz
c=ffmpeg-git-*-64bit-static
mkdir $a
wget --no-check-certificate --directory-prefix=$a https://johnvansickle.com/ffmpeg/builds/$b