- 计算机软硬件基础
- 计算机网络
- 操作系统
- 数据结构和算法
- 设计模式
- 以及其他各种你应该懂的东西
- 前端标准/规范
from sys import argv | |
from base64 import b64encode | |
from datetime import datetime | |
from Crypto.Hash import SHA, HMAC | |
def create_signature(secret_key, string): | |
""" Create the signed message from api_key and string_to_sign """ | |
string_to_sign = string.encode('utf-8') | |
hmac = HMAC.new(secret_key, string_to_sign, SHA) | |
return b64encode(hmac.hexdigest()) |
brew install ffmpeg
# maximum capability of system | |
user@ubuntu:~$ cat /proc/sys/fs/file-max | |
708444 | |
# available limit | |
user@ubuntu:~$ ulimit -n | |
1024 | |
# To increase the available limit to say 200000 | |
user@ubuntu:~$ sudo vim /etc/sysctl.conf |
# maximum capability of system | |
user@ubuntu:~$ cat /proc/sys/fs/file-max | |
708444 | |
# available limit | |
user@ubuntu:~$ ulimit -n | |
1024 | |
# To increase the available limit to say 200000 | |
user@ubuntu:~$ sudo vim /etc/sysctl.conf |