--flat-playlist Do not extract the videos of a playlist,
only list them
--live-from-start Download livestreams from the start.
Currently only supported for YouTube
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
| services: | |
| mtproto-proxy: | |
| image: telegrammessenger/proxy:latest | |
| container_name: mtproto-proxy | |
| restart: always | |
| ports: | |
| - "10000:443" | |
| volumes: | |
| - proxy-config:/data |
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
| # Add Docker's official GPG key: | |
| sudo apt update | |
| sudo apt install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| # Add the repository to Apt sources: | |
| sudo tee /etc/apt/sources.list.d/docker.sources <<EOF | |
| Types: deb |
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
| # docker-compose.yml | |
| services: | |
| mtproto-proxy: | |
| image: telegrammessenger/proxy | |
| container_name: mtproto-proxy | |
| restart: always | |
| ports: | |
| - "10000:443" | |
| volumes: |
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
| version: "3.9" | |
| services: | |
| mtproto: | |
| container_name: mtproto-proxy | |
| image: seriyps/mtproto-proxy:latest | |
| ports: | |
| - "10000:10000" | |
| env_file: | |
| - ./.env |
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 'dart:convert'; | |
| import 'dart:core'; | |
| import 'dart:io'; | |
| class MySocket { | |
| final int port = 5000; | |
| final String host = "10.0.2.2"; | |
| final String data; | |
| MySocket(this.data); |
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
| async function getData(url) { | |
| const headers = {} // Add headers here | |
| const init = { | |
| method: 'GET', | |
| headers: new Headers(headers), | |
| } | |
| const response = await fetch(url, init); | |
| if (response.ok) { | |
| return await response.json(); | |
| } |
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
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.chooseVideo = this.chooseVideo.bind(this); | |
| } | |
| chooseVideo(newVideo) { | |
| this.setState({ | |
| // Change something | |
| }); |
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
| from django import forms | |
| class NameForm(forms.Form): | |
| your_name = forms.CharField(label='Your name', max_length=100) |
NewerOlder