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 / gist:32c1592659b23812837af2c9344e72c0
Created Aug 19, 2016 — forked from prairiehippo/gist:3238902
Drupal API settings for Chrome Search Engine
View gist:32c1592659b23812837af2c9344e72c0

Want to search the Drupal API directly using the Chrome Omnibox?

Right click on the omnibox in chrome (URL box) and select "Edit Search Engines".

You very likely already have a Drupal API search engine entry in the table, but if not, scroll to the bottom and add a new entry with the following items.

@theodorosploumis
theodorosploumis / 00_ReadMe.md
Created Jun 8, 2016 — forked from mohamed-el-habib/00_ReadMe.md
drupal fpm with nginx and mysql
View 00_ReadMe.md

Usage

git clone git://github.com/fd57d8aa59b1574ee7728edf128814d3.git docker-drupal-fpm
cd docker-drupal-fpm
mkdir -p /usr/local/share/dockervolumes/drupal # if you change this folder please update the run.sh
chmod +x run.sh && ./run.sh up
@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"
@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",
View greeklish.php
function greeklish($string)
{
$replace_pairs = [
'Α' => 'A',
'Ά' => 'A',
'Β' => 'V',
'Γ' => 'G',
'Δ' => 'D',
'Ε' => 'E',
@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",
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
@theodorosploumis
theodorosploumis / Drupal Undefined index Issue
Last active Aug 29, 2015
How to fix the error: "Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name()..."
View Drupal Undefined index Issue
// Standard profile
UPDATE `mydatabese`.`system` SET `status` = '1' WHERE `system`.`filename` = 'profiles/standard/standard.profile';
// Minimal profile
UPDATE `mydatabese`.`system` SET `status` = '1' WHERE `system`.`filename` = 'profiles/minimal/minimal.profile';
You can’t perform that action at this time.