In terminal.app, install ffmpeg through homebrew
brew install ffmpeg
Validate the installation:
| #!/bin/bash | |
| # updating system | |
| sudo apt update | |
| sudo apt upgrade -y | |
| # installing build tools and python | |
| sudo apt install build-essential python | |
| # installing nodejs |
In this section, we are going to show how to run a python script as a systemd service, allowing you to boot it at the start of a Linux machine and to maintain it alive.
We are going to use a very basic Telegram bot in order to test that our script will:
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| const { data } = await axios.get(url, { | |
| responseType: 'arraybuffer', | |
| headers: { | |
| 'Content-Type': 'audio/wav' | |
| } | |
| }); | |
| const blob = new Blob([data], { | |
| type: 'audio/wav' | |
| }); |