ffmpeg -i "http://aa.com/a.m3u8" -c copy -bsf:a aac_adtstoasc "movie.mp4"
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
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"; | |
/** | |
* Encodes a positive integer to a string using a | |
* list of unique characters. | |
* | |
* @param {number} num - Positive integer | |
* @returns {string} Encoded string | |
*/ | |
function encode(num) { |
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
function getNested(obj,prop){ | |
var _prop=prop.split(".") | |
for(var i=0;i<_prop.length;i++){ | |
if(_prop[i] in obj) | |
obj=obj[_prop[i]] | |
else | |
return; | |
} | |
return obj; | |
} |
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
import sys | |
import os | |
import socket | |
import time | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.settimeout(2) | |
if "--listen" in sys.argv: | |
print "WalkieTalkie Listener Turned On.." | |
server_address = ('', 9434) |
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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed |
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum remove php-common
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
/etc/init.d/httpd restart
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
<?php | |
/** | |
* @author Koushik Seal <[email protected]> | |
* @version 1.0 | |
*/ | |
class SerializeBeautifier{ | |
/** | |
* input for beautify | |
* | |
* @var string |
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
/* | |
"dependencies": { | |
"chalk": "^1.1.3", | |
"cheerio": "^0.22.0", | |
"moment": "^2.16.0", | |
"superagent": "^2.3.0" | |
} | |
Usage: | |
node theflash [session] where session is optional, latest if not specified | |
*/ |
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
function wordMatch(s1,s2){ | |
var a1=s1.toLowerCase().split(/[^A-Za-z]/); | |
var a2=s2.toLowerCase().split(/[^A-Za-z]/); | |
for(var i=0;i<a1.length;i++) | |
if(a2.indexOf(a1[i])>=0) | |
return true; | |
return false; | |
} |
NewerOlder