This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi
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
db.define_table('room', | |
Field('room_no'), | |
Field('category', 'list:string'), | |
Field('status', 'list:string'), | |
Field('branch', 'reference branch'), | |
format=lambda r: '%s %s' % (r.branch.address, r.room_no)) |
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
#coding: utf-8 | |
import socket | |
import random, math | |
from hashlib import sha1 | |
from hmac import new as hmac | |
generateHash = lambda(placa): hmac("shienshenlhq",placa,sha1).digest().encode('hex') | |
rLong = lambda(raio): '%.7f' % (( raio/111000.0 * math.sqrt(random.random()) ) * math.sin(2 * 3.141592654 * random.random()) + (-38.5290245)) |
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
apt-get update | |
apt-get install vim | |
apt-get install htop | |
wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh | |
chmod +x setup-web2py-ubuntu.sh | |
./setup-web2py-ubuntu.sh |
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
# Add multimedia source | |
echo "deb http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list | |
echo "deb-src http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install deb-multimedia-keyring # if this aborts, try again | |
apt-get update | |
# Go to local source directory | |
cd /usr/local/src |
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
#!/usr/bin/env python | |
# | |
# Python script to compile and install ffmpeg. | |
# | |
# part of ffcluster project. | |
# see full project at github.com/santazhang/ffcluster | |
# | |
# Author: Santa Zhang <[email protected]> | |
import os |
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
from TwitterAPI import TwitterAPI | |
import json | |
api = TwitterAPI('', '', '', '') | |
next_cursor = '-1' | |
for x in range(0, 46): | |
r = api.request('followers/list', {'screen_name':'canalarte1','include_user_entities':'true','count':'200','cursor':next_cursor}) | |
userlist = json.loads(r.text) |