Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
package main | |
import ( | |
iconv "github.com/djimenez/iconv-go" | |
"io/ioutil" | |
"log" | |
"net/http" |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
let
and const
statements. For the purposes of the React documentation, you can consider them equivalent to var
.class
keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this
in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav[Unit] | |
Description=consul agent | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d |
#!/bin/bash | |
# Install Prometheus Node Exporter on CentOS 6. | |
set -eu | |
set -o pipefail | |
set -x | |
REPOFILE='/etc/yum.repos.d/coprs.ibotty.prometheus-exporters.repo' | |
INSTALLED=0 |
First of all, it just seems like doing anything with Oracle is obnoxiously painful for no good reason. It's the nature of the beast I suppose. cx_oracle is a python module that allows you to connect to an Oracle Database and issue queries, inserts, updates..usual jazz.
Step 1:
sudo apt-get install build-essential unzip python-dev libaio-dev
Step 2. Click here to download the appropriate zip files required for this. You'll need:
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
var port string |
#!/bin/bash | |
# 需要替换的参数: | |
# CHAT_ID='-1001325237796' 目标群或者频道ID | |
# TOKEN="BOT TOKEN" BOT的TOKEN | |
# Cookie 中的 THOR 可以在登录了京东账号后抓包获得 | |
# 购买地区: | |
# cityId,townId,countyId 可以在"配送至" - "选择新地址",审查元素,查看对应地区的id | |
skuid=" | |
100002690344 | |
100002690350 |
import sys | |
import bencode | |
import hashlib | |
import base64 | |
import urllib | |
def make_magnet_from_file(file) : | |
with open(file,'r') as f: | |
torrent = f.read() |