This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i sourcemovie.mov -vcodec libx264 -b 400k -g 250 -keyint_min 24 -bf 16 -coder 1 -refs 6 -flags +loop -deblockbeta -6 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -flags2 +dct8x8+mixed_refs+wpred+bpyramid -me_method umh -subq 8 -s 640x360 -acodec libfaac -ar 44100 -ab 96k -threads 6 -f mp4 outputmovie.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header no-shadow> | |
<ion-navbar no-border-bottom> | |
<ion-buttons start> | |
<button ion-button color="light" (click)="closeModal()">Cancel</button> | |
</ion-buttons> | |
<ion-title>Media</ion-title> | |
<ion-buttons end> | |
<ion-spinner *ngIf="!mediaLoaded" color="light"></ion-spinner> | |
</ion-buttons> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# change these depending on where you want to pull from | |
# for the hs archive, the URL should be 'http://www.quizbowlpackets.com' | |
baseurl='http://collegiate.quizbowlpackets.com' | |
outdir='collegiate' | |
curl -s $baseurl | # get index page | |
grep '<SPAN class="Name">' | # extract lines containing packet links | |
sed -e 's/^.*href="//' -e 's/">/*/' -e 's/<\/a>.*$//' | # parse url and name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir local | |
mkdir node-latest-install | |
cd node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix="$(dirname "$(pwd)")/local" # up a directory and down to local. | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |