Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Shell

By editor , 8 March, 2021

Convert M4A, OGG or OPUS audio file in to MP3 on linux

Tags

  • Shell
  • Linux
  • Audio

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}

By editor , 21 January, 2021

Linux local and common bin folders (environnement path)

Tags

  • Linux
  • Shell

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

By editor , 23 April, 2020

Test disk read write speed on linux CLI

Tags

  • Linux
  • Shell

Test Disk Write Performance With dd Command

dd is a basic command une in all linux distributions to copy data. You can also use this feature to test dis performance.

By editor , 11 May, 2018

Mount SAMBA NFS share folder on linux

Tags

  • Shell
  • Linux

Access to a SAMBA file share from a file explorer

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/

By editor , 26 January, 2018

Install drupal 8, modules and themes from Drush.

Tags

  • Drupal 8
  • Drush
  • Shell
  • Linux

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.

By editor , 25 January, 2018

FTP & SCP from Linux terminal

Tags

  • Server
  • Shell
  • Linux

 

By editor , 2 January, 2018

SSH force usage of a specific key

Tags

  • Git
  • Linux
  • Shell

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]

 

By editor , 28 November, 2017

Create Bootable USB key from ISO on Linux

Tags

  • Linux
  • Utility
  • Shell

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.

By editor , 5 September, 2017

Merge two git commits into one

Tags

  • Shell
  • Git

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

By editor , 26 June, 2017

Date on Linux Shell / Bash command line

Tags

  • Linux
  • Shell

Print / Check Date from command line

date

Set date from the command line

date +%Y%m%d -s "20170430"

Set time from the command line

date +%T -s "12:00:00"

Pagination

  • 1
  • Next page
Shell

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer