Skip to content

Instantly share code, notes, and snippets.

🔐
Remote employee forever!

Theodoros Ploumis theodorosploumis

🔐
Remote employee forever!
Block or report user

Report or block theodorosploumis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@theodorosploumis
theodorosploumis / install_php.sh
Last active Nov 29, 2019
Install php7 with useful extension on Ubuntu xenial 16.10
View install_php.sh
sudo apt-get purge php5-common -y
#sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y
sudo apt-get install -y \
php \
libapache2-mod-php \
php-fpm \
php-mysql \
php-memcached \
php-pear \
@theodorosploumis
theodorosploumis / Install_Phpstorm.sh
Last active Nov 3, 2019
Update phpstorm on Ubuntu linux.
View Install_Phpstorm.sh
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# IMPORTANT. Run with sudo!
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
# For stable releases try: https://data.services.jetbrains.com/products/download?code=PS&platform=linux
echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
read url
# Download file from url
View Football_Rules.md

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

  1. Πρέπει ανά πάσα στιγμή να ελέγχει όλο το γήπεδο (γρήγορες ματιές) και να ξέρει που είναι όλοι οι συμπαίκτες και οι αντίπαλοι.
  2. Είναι υπεύθυνος για τον ρυθμό του παιχνιδιού και την συμμετοχή όλων των παικτών στο παιχνίδι (αλλαγές παιχνιδιού, δημιουργα υπεραριθμίας κτλ).
  3. Απλό παιχνίδι (μέγιστο 2 κοντρόλ).
  4. Καλές τοποθετήσεις στον κατάλληλο (κενό) χώρο.
  5. Οι πάσεις του πρέπει να έχουν όσο το δυνατόν καλύτερη ακρίβεια.
  6. Όταν παίρνει την μπάλα με την πλάτη να την επιστρέφει σχεδόν πάντα πίσω.
  7. Οι πάσες προς τα πίσω να είναι 100% σωστές.
  8. Όταν έχει κοντά αντίπαλο δίνει άμεσα πάσα.
View composer_commands.txt
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
@theodorosploumis
theodorosploumis / drupal_8_list_software.sh
Last active Apr 13, 2019
Get lists of software etc used on a Drupal 8.x site (modules, themes, 3rd party libraries, drupal libraries)
View drupal_8_list_software.sh
// 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
@theodorosploumis
theodorosploumis / gizra_task_pricing.md
Last active Apr 10, 2019
The Gizra way pricing method
View gizra_task_pricing.md

Basic rules

A simple pricing estimation method to avoid cost and time pitfalls. See more at http://www.gizra.com/content/budget-goggles/.

  • Everyone should understand the "pricing" table (simple naming etc)
  • Split the project to undestandable taks
  • Set max of 12hr for a task (more hr cannot be accurate)
  • Setup a human language for the tasks
  • Create group of tasks with a visible result (eg a webpage, a complete functionality etc)
  • Write zero prices for almost zero time tasks (eg a Drupal login)
  • With Drupal we can split tasks and estimate time is easier because of the architecture of the CMS (menu, entities, fields etc)
@theodorosploumis
theodorosploumis / Vagrantfile
Last active Feb 18, 2019 — forked from anthonysterling/Vagrantfile
Windows IE Vagrantfile
View Vagrantfile
# Usage: IE={box} vagrant up
#
# Eg. IE=XPIE6 vagrant up
boxes = {
"XPIE6" => "http://aka.ms/vagrant-xp-ie6",
"XPIE8" => "http://aka.ms/vagrant-xp-ie8",
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7",
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8",
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9",
@theodorosploumis
theodorosploumis / Cretaforce_move_Drupal_site.md
Last active Feb 15, 2019
How to move a Drupal site from Server A to Server B
View Cretaforce_move_Drupal_site.md

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
View devops_for_drupal.md
  • 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 / drupal8_compose.md
Last active Feb 15, 2019
Drupal 8.x with Composer, example of step commands
You can’t perform that action at this time.