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 / 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 / software.sh
Created May 27, 2016
Print versions of software installed. Useful for README.txt, CHANGELOG.txt etc. Mainly for Drupal.
View software.sh
#!/usr/bin/env bash
# Print versions of installed software
# bash /scripts/software.sh >> /SOFTWARE.txt
# Print distribution info
echo -e "-----------------------------------\n"
echo -e "$(uname -a)"
echo -e "---------------------------------- \n"
# Print date created
@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 \
View rsync_drupal_files.txt
# Run this on 'From' server
rsync -avz --progress \
--exclude=styles --exclude=ctools --exclude=css --exclude=js --exclude=xmlsitemap \
-e 'ssh -i ~/.ssh/SOME_PUBLIC_KEY' USERNAME@HSTNAME:/from/dir/ /to/dir/
@theodorosploumis
theodorosploumis / dockr
Created Apr 9, 2016 — forked from nir0s/dockr
dockr - some useful docker shortcuts
View dockr
#!/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 / drupal-quick-dump.sh
Last active Mar 22, 2016 — forked from kyleskrinak/drupal-quick-dump.sh
Database dump for Drupal. Use "drupal-quick-dump <db_user> <db_host> <database_name> D8"
View drupal-quick-dump.sh
#!/bin/bash
# usage: drupal-quick-dump user host database D8 ("D8" is optional)
# remember to chmod u+x drupal-quick-dump.sh
BOLD="$(tput bold)"
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
MAG="$(tput setaf 5)"
RESET="$(tput sgr0)"
USER="$1"
View drush_commands_list.txt
// Get table of enabled modules with versions
drush pml --type=module --format=table --no-core --status=enabled --fields="name,version"
// Install Drupal site
drush site-install standard --db-url=mysql://<user>:<pass>@localhost:<port>/<database>
// Download project and add git commit messages on info.yml
drush dl <module_name> --package-handler=git_drupalorg --gitinfofile --destination=modules/contrib
@theodorosploumis
theodorosploumis / Singularitygs + Breakpoint + Compass with Gulp
Created Jan 8, 2016
Singularitygs + Breakpoint + Compass with Gulp
View Singularitygs + Breakpoint + Compass with Gulp
This is how I managed to set up Singularitygs + Breakpoint + Compass with Gulp (for Drupal theming).
Install gulp globally
"sudo npm install -g gulp"
Copy the following package.json to the root folder of your project.
{
"name": "your_project",
"version": "1.0.0",
@theodorosploumis
theodorosploumis / .gitignore
Created Oct 28, 2015
Drupal .gitignore file
View .gitignore
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
# Ignore paths that contain user-generated content.
sites/*/files
sites/*/private
# Ignore Drupal core files
/includes
/misc
You can’t perform that action at this time.