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

Tutorials - Other

By editor , 25 January, 2018

FTP & SCP from Linux terminal

Tags

  • Server
  • Shell
  • Linux

 

By editor , 23 January, 2018

JavaScript useful tips and examples

Tags

  • JavaScript
  • Code

Get HTTP Header information From JavaScript

Note : It's not possible to read the current headers. You could make another request to the same URL and read its headers, but there is no guarantee that the headers are exactly equal to the current.

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 , 15 December, 2017

Test website load using AB (ApacheBench)

Tags

  • WebService
  • Server
  • Linux
  • Utility

The apache benchmark tool is very basic, and while it will give you a solid idea of some performance.

Some parameters:

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 , 13 October, 2017

PHP Tips for easy development

Tags

  • PHP
  • Code

Generate a random key.

$random_key = str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); // 62 characters
$random_key = substr($random_key, 0, 10); // 10 characters

 

By editor , 29 September, 2017

Git Usage 2 - Cherry-pick, Rebase

Tags

  • Git

Cherry pick

Example:

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 nuwantha , 24 July, 2017

CSS Fluid Width Video

Tags

  • CSS
  • Theming

Example :

By editor , 24 July, 2017

Install Xdebug with NginX Server

Tags

  • Debug
  • IDE

Install Xdebug php

sudo apt install php-xdebug

Configure Xdebug

Example:
sudo gedit /etc/php/5.6/mods-available/xdebug.ini

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page

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