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 / drupal_rsync.sh
Last active December 28, 2015 14:18
Push all files from local to remote server recursively
// Push all (*) files from local to remote server recursively
rsync -rave * USER@SERVER:~/PATH_ON_REMOTE
@theodorosploumis
theodorosploumis / ansible_commands.txt
Last active May 5, 2022 15:32
Simple Ansible ad-hoc commands for Shared Hosting
// Inventory name is "hosts"
// Example of inventory
[group]
SERVER_NAME ansible_connection=ssh ansible_ssh_user=SSH_USER ansible_python_interpreter=PATH_TO_REMOTE
_PYTHON
// List hosts
ansible -i hosts all --list-hosts
// Show info for each host
ansible -i hosts all -m setup
@theodorosploumis
theodorosploumis / Singularitygs + Breakpoint + Compass with Gulp
Created January 8, 2016 23:28
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 / drupal-quick-dump.sh
Last active March 22, 2016 13:21 — forked from kyleskrinak/drupal-quick-dump.sh
Database dump for Drupal. Use "drupal-quick-dump <db_user> <db_host> <database_name> D8"
#!/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"
@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_php.sh
Last active November 29, 2019 11:05
Install php7 with useful extension on Ubuntu xenial 16.10
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 / software.sh
Created May 27, 2016 00:41
Print versions of software installed. Useful for README.txt, CHANGELOG.txt etc. Mainly for Drupal.
#!/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 / gizra_task_pricing.md
Last active August 17, 2022 10:02
The Gizra way pricing method

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 / 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
### 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: