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 / HTMLToReact.tsx
Created May 12, 2022 21:26 — forked from natterstefan/HTMLToReact.tsx
html-react-parser | TypeScript solution
/**
* Works in Next.js 10.x
*/
import React from 'react'
import parse, {
domToReact,
attributesToProps,
Element,
HTMLReactParserOptions,
} from 'html-react-parser'
@theodorosploumis
theodorosploumis / english-stopwords.md
Created November 13, 2020 18:59 — forked from antska/english-stopwords.md
English stopwords

a
able
about
above
abst
accordance
according
accordingly
across
act

@theodorosploumis
theodorosploumis / greek-stopwords.md
Last active April 9, 2021 21:40 — forked from antska/greek-stopwords.md
Greek stopwords (useful for e-commerce Search indexing. Do not use it for searches inside book contents etc)

Α
ΑΔΙΑΚΟΠΑ
ΑΙ
ΑΚΟΜΑ
ΑΚΟΜΗ
ΑΚΡΙΒΩΣ
ΑΛΗΘΕΙΑ
ΑΛΗΘΙΝΑ
ΑΛΛΑ
ΑΛΛΑΧΟΥ

@DATABASE@__%Y-%m-%d_%H-%M-%S
@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 / 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 / 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",
function greeklish($string)
{
$replace_pairs = [
'Α' => 'A',
'Ά' => 'A',
'Β' => 'V',
'Γ' => 'G',
'Δ' => 'D',
'Ε' => 'E',
@theodorosploumis
theodorosploumis / Vagrantfile
Last active February 18, 2019 10:36 — forked from anthonysterling/Vagrantfile
Windows IE 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",