Skip to content

Instantly share code, notes, and snippets.

@sebsto
sebsto / gist:6af5bf3acaf25c00dd938c3bbe722cc1
Last active May 17, 2024 12:40
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@marazmiki
marazmiki / ffmpeg_runner.py
Created June 29, 2012 03:57
Runs the ffmpeg process and calculates convertation progress in real time
class FFMPegRunner(object):
"""
Usage:
runner = FFMpegRunner()
def status_handler(old, new):
print "From {0} to {1}".format(old, new)
runner.run('ffmpeg -i ...', status_handler=status_handler)