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 May 23, 2024 02:55
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 / Football_Rules.md
Last active October 16, 2019 20:33
Football Rules

Κανόνες παιχνιδιού κεντρικού παίκτη (midfielder)

  1. Πρέπει ανά πάσα στιγμή να ελέγχει όλο το γήπεδο (γρήγορες ματιές) και να ξέρει που είναι όλοι οι συμπαίκτες και οι αντίπαλοι.
  2. Είναι υπεύθυνος για τον ρυθμό του παιχνιδιού και την συμμετοχή όλων των παικτών στο παιχνίδι (αλλαγές παιχνιδιού, δημιουργα υπεραριθμίας κτλ).
  3. Απλό παιχνίδι (μέγιστο 2 κοντρόλ).
  4. Καλές τοποθετήσεις στον κατάλληλο (κενό) χώρο.
  5. Οι πάσεις του πρέπει να έχουν όσο το δυνατόν καλύτερη ακρίβεια.
  6. Όταν παίρνει την μπάλα με την πλάτη να την επιστρέφει σχεδόν πάντα πίσω.
  7. Οι πάσες προς τα πίσω να είναι 100% σωστές.
  8. Όταν έχει κοντά αντίπαλο δίνει άμεσα πάσα.
@theodorosploumis
theodorosploumis / composer_commands.txt
Last active August 5, 2019 07:58
Composer commands list
composer outdated -Dm
composer prohibits vendor/package version
composer show vendor/package
composer show vendor/package -a
composer depends vendor/package -t
composer outdated -m
composer outdated
composer update vendor/package --with-dependencies --dry-run
composer require vendor/package:constraint --no-update
composer update vendor/package vendor/package vendor/package

Drupal 8.x Best Practices - Project report

1. Parameters to consider

  • Delivery under time pressure.
  • Multilingual content.
  • Accessibility Valid code (WCAG 2.0 level A).
  • Anonymous users cannot create accounts.
  • Content will be added manually.
  • There is an existing old website (redesigned project).
@theodorosploumis
theodorosploumis / devops_for_drupal.md
Created February 15, 2019 21:24
Devops for Drupal
  • Dev/Stage/Live environment
  • Software for issues (eg Jira, GitHub etc)
  • Security monitoring
  • Git precommit hooks
  • Git hosting (eg Gitlab, GitHub, Bitbucket)
  • CI (eg CircleCI)
  • Development tools (eg performance, build etc)
  • Collaboration tools (eg Slack)
  • Drupal specific hosting (Acquia, Pantheon, Amazee etc)
  • Drush custom commands
@theodorosploumis
theodorosploumis / Cretaforce_move_Drupal_site.md
Last active February 15, 2019 21:46
How to move a Drupal site from Server A to Server B

How to move a Drupal site from Server A to Server B.

  1. Create the Domain on Server B
  2. Create the Emails on Server B
  3. Create the Database on Server B
  4. Download the database from Server A using backup_migrate
  5. Rsync files from Server A to Server B using ssh. Be careful to also transfer the dotfiles (or use git if is set)
  6. Install drush on Server B (see drush-installer)
  7. Install Drupal on Server B with a clean Database
  8. Enable module backup_migrate on the new site on Server B
### Keybase proof
I hereby claim:
* I am theodorosploumis on github.
* I am theodorosploumis (https://keybase.io/theodorosploumis) on keybase.
* I have a public key whose fingerprint is 12F8 43E2 FE78 653C 6C93 B925 6F21 831E 78DB 885B
To claim this, I am signing this object:
@theodorosploumis
theodorosploumis / drupal_8_list_software.sh
Last active October 22, 2022 09:32
Get lists of software etc used on a Drupal 8.x site (modules, themes, 3rd party libraries, drupal libraries)
// Get lists of software etc used on a Drupal 8.x site
// Get drupal projects
drush pml --status="enabled"
// Get non core Drupal projects installed
drush pml --status="enabled" --no-core --format="table"
// Get php party libraries
composer show -i