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
| wget https://www.php.net/distributions/php-7.3.16.tar.gz | |
| tar xzf php-7.3.16.tar.gz | |
| cd php-7.3.16 | |
| ./configure --prefix="/opt/php-7.3.16" \ | |
| --enable-exif \ | |
| --enable-ftp \ | |
| --enable-zip \ | |
| --with-pdo-mysql \ | |
| --with-zlib \ | |
| --with-gd \ |
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
| diff --git a/packager/hls/base/master_playlist.cc b/packager/hls/base/master_playlist.cc | |
| index 67182480e0..d6c4276385 100644 | |
| --- a/packager/hls/base/master_playlist.cc | |
| +++ b/packager/hls/base/master_playlist.cc | |
| @@ -121,7 +122,7 @@ bool MasterPlaylist::WriteMasterPlaylist(const std::string& base_url, | |
| for (const MediaPlaylist* audio_playlist : audio_playlists) { | |
| base::StringAppendF( | |
| &audio_output, | |
| - "#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=\"%s\",NAME=\"%s\",URI=\"%s\"\n", | |
| + "#EXT-X-MEDIA:TYPE=AUDIO,AUTOSELECT=YES,GROUP-ID=\"%s\",NAME=\"%s\",URI=\"%s\"\n", |
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 paramiko | |
| import os | |
| import argparse | |
| import time | |
| import socket | |
| def wait_for_connection(hosts): | |
| for host in hosts: | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| sock.settimeout(1) |
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
| #!/bin/bash | |
| response=`curl -I -L 'https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable' | tr -d '\r' | grep -i 'content-md5' | awk '{ print $2 }'` | |
| ver=`cat /var/cache/update_code` | |
| if [ $ver == $response ]; then | |
| echo "Version unchanged" | |
| exit 0 | |
| fi |
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
| #!/bin/bash | |
| DIFF=$(git diff --cached) | |
| exec < /dev/tty | |
| if echo $DIFF | grep -q "die("; then | |
| echo "Found die in your diff" | |
| read -p "Continue (y/n)?" choice | |
| case "$choice" in | |
| y|Y ) exit 0;; |
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
| # -*- coding: utf-8 -*- | |
| import os,io,codecs | |
| chars = { | |
| '\x9A' : 'š', | |
| '\xE6' : 'ć', | |
| '\xC8' : 'Č', | |
| '\xE8' : 'č', | |
| '\x9E' : 'ž', | |
| '\xF0' : 'đ', | |
| '\x8A' : 'Š', |
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
| for /r %%i in (*.flac) do ffmpeg -i "%%i" -vn -acodec aac -ar 44100 "%%i.aac" | |
| Get-ChildItem *.flac.aac | Rename-Item -NewName { $_.Name -replace '\.flac\.aac','.aac' } |
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
| diff --git a/packager/app/packager_util.cc b/packager/app/packager_util.cc | |
| index 99a54f376c..2da441ebc2 100644 | |
| --- a/packager/app/packager_util.cc | |
| +++ b/packager/app/packager_util.cc | |
| @@ -35,6 +35,9 @@ FourCC GetProtectionScheme(const std::string& protection_scheme) { | |
| return FOURCC_cbc1; | |
| } else if (protection_scheme == "cbcs") { | |
| return FOURCC_cbcs; | |
| + } else if (protection_scheme == "cbcf") { | |
| + LOG(INFO) << "cbcf detected"; |
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
| #!/bin/bash | |
| SCRIPT=$(readlink -f $0) | |
| root_dir=`dirname $SCRIPT` | |
| apt-get -q -y install yasm build-essential libass-dev nasm libtheora-dev libvorbis-dev | |
| if [ ! -f fdk-aac/built.lock ]; then | |
| git clone https://github.com/mstorsjo/fdk-aac.git |
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
| #include <malloc.h> | |
| #include <stdio.h> | |
| #ifdef DEBUG | |
| void *__malloc(size_t size, char *file, int line) { | |
| printf("malloc in file %s, line %d, size %d\n", file, line, size); | |
| return malloc(size); | |
| } |
NewerOlder