Convert M4A or OGG audio file in to MP3 on linux
Convert OGG to MP3
ffmpeg -v 5 -y -i file.m4a -acodec libmp3lame -ac 2 -ab 192k file.mp3
Convert M4A to MP3
ffmpeg -i file.ogg file.mp3
#Or
ffmpeg -i file.{ogg,mp3}
Convert OGG to MP3
ffmpeg -v 5 -y -i file.m4a -acodec libmp3lame -ac 2 -ab 192k file.mp3
Convert M4A to MP3
ffmpeg -i file.ogg file.mp3
#Or
ffmpeg -i file.{ogg,mp3}
Local bin folders
$HOME/.local/bin (~/.local/bin)
$HOME/bin (~/bin)
Add to path manually
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
User specific environment and startup programs
dd is a basic command une in all linux distributions to copy data. You can also use this feature to test dis performance.
Juste enter the address of your share like:
smb://<IP or HOST>/<Folder>
Example:smb://192.168.0.1/DATA
smb://192.168.0.1/
Drush allow to download and install drupal core, drupal modules and drupal themes.
Note : It is recommended to use composer to manage drupal 8, modules and themes.
Download a file via SCP
File : /tmp/mysql.dump.sql
Server/Login : THE_USERNAME:PASSWORD@domain.com
Download to : . (Current directory)scp user:pass@domain.com:/tmp/mysql.dump.sql .
To force usage of a specific key, put in your ~/.ssh/config file :
Host [HOST_NAME]
Hostname [HOST_NAME]
User [USER_NAME]
Port [PORT]
IdentityFile ~/.ssh/[your_private_key]
To create a bootable USB memory on linux you have several solutions. The famous dd is the most powerful solution, but use carefully. Because a very small error may destroy all your data.
This is an example to merge 2 last commits.
1. git rebase -i HEAD~2
2. Change pick to squash the commit you want to merge
3. Save and Exit
4. git push -f origin master
date
date +%Y%m%d -s "20170430"
date +%T -s "12:00:00"