Skip to content

Instantly share code, notes, and snippets.

View theodorosploumis's full-sized avatar
🏠
Working from home

Theodoros Ploumis theodorosploumis

🏠
Working from home
View GitHub Profile
@theodorosploumis
theodorosploumis / Nework_throttling_profiles.md
Last active April 4, 2024 06:59
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@theodorosploumis
theodorosploumis / requirements_matrix.md
Last active February 14, 2024 14:34
System requirements matrix support
Software PHP Composer Drush Symfony Twig Node.js Drupal
Drupal 7.x 5.4+ 1.x 6+ 2.8 - 3.x 1+ 4+
Drupal 8.x 7.0+ 1.x 8+ 3.4 - 4.x 1+ 4+
Drupal 9.x 7.3+ 2.x 10+ 4.4 - 5.x 2+ 8+
Drupal 10.x 8.0+ 2.x 10+ 5.x 2+ 12+
Open Social 10.x 7.0+ 8.8 - 9.1
Open Social 11.x 7.4 - 8.x 9.x
Open Social 12.x 8.1+ 10.2.x
NextJS 12.x
@theodorosploumis
theodorosploumis / upgrade_html5_text_format.php
Last active February 10, 2024 21:58
Drupal 10.x - Update text_format of all the wysiwyg fields in bulk (drush script)
<?php
// phpcs:ignoreFile
// Update text_format of all the wysiwyg fields.
// Exec with drush: "drush scr upgrade_html5_text_format.php"
// Change values according to your needs.
$old_format = "html";
$new_format = "html5";
$field_type = "text_long";
@theodorosploumis
theodorosploumis / dockr
Created April 9, 2016 13:08 — forked from nir0s/dockr
dockr - some useful docker shortcuts
#!/bin/bash
# add yourself to the docker group
# useradd -G docker USERNAME
# then you can enjoy this (for instance)
# dockr get logstash_container ip - to get the ip of the container
# or
# dockr stop last - to stop the last container you ran
# or
# dockr rmi none - to remove all <none> images
@theodorosploumis
theodorosploumis / install_patch.sh
Created May 15, 2023 18:39
Install specific patch version on server
#!/bin/bash -e
wget https://ftp.gnu.org/gnu/patch/patch-2.7.6.tar.gz
tar xf patch-2.7.6.tar.gz
rm patch-2.7.6.tar.gz
cd patch-2.7.6
./configure
make
mkdir ~/bin
@theodorosploumis
theodorosploumis / drupal-version.rb
Last active May 4, 2023 07:13
Get the latest stable and supported Drupal versions on the cli
#! /usr/bin/env ruby
# Get the latets stable and supported Drupal versions on the cli
require 'nokogiri'
require 'open-uri'
require 'colorize'
# Fetch and parse HTML document
doc = Nokogiri::HTML(URI.open('https://www.drupal.org/project/drupal'))
@theodorosploumis
theodorosploumis / ai_ideas.md
Last active April 1, 2023 19:14
AI ideas for Developers
  • Code reviews (eg on Pull Requests)
  • Testing (eg Cypress, Behat, PHPUnit)
  • Code debugging
  • Explain code
  • Create code documentation
  • Find code docs
  • Learn something new
  • Get code examples
  • Extend code (eg a class)
  • Validate code according to standards
@theodorosploumis
theodorosploumis / composer_patches_lenient.md
Last active March 3, 2023 14:21
List of Drupal lenient 10.x patches for common used modules.