This file contains hidden or 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
import asyncio | |
import socket | |
SERVER_ADDRESS = (HOST, PORT) = '', 8888 | |
REQUEST_QUEUE_SIZE = 5 | |
http_response = b"""\ | |
HTTP/1.1 200 OK | |
Hello, World! | |
""" |
This file contains hidden or 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
// This is a go script that encodes all files with mkv extension in the current | |
// working directory. | |
// | |
// NOTE: To use this script on Windows, you must download the fontconfig file | |
// which can be found at: | |
// http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=10 | |
// | |
// | |
// Sources: | |
// http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide |
This file contains hidden or 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
import errno, os | |
from django.conf import settings | |
from django.core.files import locks | |
from django.core.files.move import file_move_safe | |
from django.core.files.storage import FileSystemStorage | |
class CustomStorage(FileSystemStorage): | |
""" | |
This storage class tries to move files instead of copy when saving via |
This file contains hidden or 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
""" | |
This python script encodes all files that have the extension mkv in the current | |
working directory. | |
Sources: | |
http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide | |
""" | |
import subprocess, os | |
#------------------------------------------------------------------------------- |