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
/** | |
* Determine whether the file loaded from PhoneGap or not | |
*/ | |
function isPhoneGap() { | |
return (window.cordova || window.PhoneGap || window.phonegap) | |
&& /^file:\/{3}[^\/]/i.test(window.location.href) | |
&& /ios|iphone|ipod|ipad|android/i.test(navigator.userAgent); | |
} | |
window.isMobileApp = !!isPhoneGap(); |
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
" Gopi's _gvimrc file https://github.com/GopinathMR | |
" This file has been modified to make it work on both Windows and Linux | |
" Github gist location : https://gist.github.com/1100054 | |
" If you find any issues or add any enhancements, please submit revised version as gist | |
"---------------------------------------------------------------------------------------------------------- | |
" 1. OS specific | |
if ($OS == 'Windows_NT') | |
" Windows specific settings |
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/sh | |
# | |
# gunicorn_sr Startup script for gunicorn for sr | |
# | |
# chkconfig: - 86 14 | |
# processname: gunicorn | |
# pidfile: | |
# description: Python application server | |
# | |
### BEGIN INIT INFO |
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
#remove all old ffmpeg | |
sudo apt-get autoremove $(dpkg -l | grep ffmpeg | awk '{print $2}' | tr '\n' ' ') | |
sudo apt-get --purge remove $(dpkg -l | grep ffmpeg | awk '{print $2}' | tr '\n' ' ') | |
sudo find / | grep -w ffmpeg | sudo xargs rm -r -f | |
#add repo | |
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install deb-multimedia-keyring # if this aborts, try again |
NewerOlder