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 / crontab_script.sh
Last active Feb 18, 2020 — forked from dcrystalj/startup.bat
Setup Cron jobs with crontab for Drupal 7.x and 8.x (also how to clear caches)
View crontab_script.sh
# Open crontab with nano
# env EDITOR=nano crontab -e
# Examples from https://crontab.guru
# 0 03 * * 1-5
# */15 * * * *
# 33 * * * *
0 03 * * 1-5 /usr/local/bin/curl "http://www.domain.com/cron.php?cron_key=vHhbh21L3NXkiF5wKb5QXg3EHCp1ODDvN5DM0gH9OzO" > /dev/null 2>&1
View Global Composer tools
composer global require maglnet/composer-require-checker
composer global require insolita/unused-scanner
composer global require --dev brainmaestro/composer-git-hooks
composer global require --dev localheinz/composer-normalize
@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",
You can’t perform that action at this time.