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 , 13 June, 2016

.bashrc File - Configure bash aliases functions commands... on Linux Unix and MacOSX

Tags

  • Linux
  • Shell

The .bashrc file is a script that is executed whenever a new terminal session is started in interactive mode. It is just the shortcut to the commands allows the user to launch any command or group of commands.

By editor , 11 June, 2016

Images processing using ImageMagick (convert)

Tags

  • Shell
  • Linux
  • Images

Crop images using convert (ImageMagick)

Example (Single file):
convert input.jpg -crop 1300x950+312+72 crop.jpg
convert input.jpg -crop 1300x950-100-50 crop.jpg

By editor , 10 June, 2016

Git - Ignore Files, Directories, Permissions

Tags

  • Shell
  • Server
  • Git

1 Ignore files And Folders using .gitignore Files (Include and/or Exclude)

Create the gitignore file at the top of your repository,i f it's not already exist

By editor , 2 June, 2016

Drupal Console

Tags

  • Drupal 8
  • Server
  • Shell

 

Drupal Console is the new CLI for Drupal. Drupal Console is a tool to generate boilerplate code, interact and debug Drupal. From the ground up, it has been built to utilize the same modern PHP practices which were introduced in Drupal 8.

By editor , 20 April, 2016

Show & Set Date and Time by Command Prompt on Linux

Tags

  • Shell
  • Linux

To show the Date / Time on Linux

date

To show the hardware Clock (RTC) on Linux

hwclock -r
OR
hwclock --show
OR show time in UTC (Coordinated Universal Time)
hwclock --show --utc

By editor , 4 April, 2016

SSL self signed / Override certificate check

Tags

  • Linux
  • Shell
  • PHP
  • SSL/TLS

On linux (wget)

wget --no-check-certificate https://yourdomain.com
wget --no-check-certificate https://name:pass@yourdomain.com

On Apache PHP

By editor , 16 February, 2016

Create and Apply Patches using GIT DIFF and APPLY

Tags

  • Shell
  • Git

Create Patch:
git diff PATH/TO/SOURCE.php > PATH/SAVE_patch.diff

Apply patch
git apply PATH/SAVE_patch.diff

By editor , 3 February, 2016

Make Correction on a git

Tags

  • Shell
  • Git
  • Server

1. Remove Files

Step 1. Switch to your branch
Strp 2. Remove files using -rm command
Ex :  git rm -r sites/all/modules/stage_file_proxy
Step 3. Add this file to the .gitignore

By editor , 30 January, 2016

Mysql Database Backup / Restore Syntax

Tags

  • Server
  • Shell
  • Database

Syatax (Usually used)
mysqldump --host=IP-OR-HOST --user=USERNAME --password=PASSWORD database_name > database_name.sql
mysqldump -h IP-OR-HOST -u USERNAME -pPASSWORD database_name > database_name.sql

By editor , 28 January, 2016

Git - Include and Exclude by .gitignore

Tags

  • Git
  • Server
  • Shell

Ignore files and folders using .gitignore

Example 1. Ignore (Exclude) a simple file or a folder
sites/default/settings.php
sites/*/files

Pagination

  • Previous page
  • 3
  • 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