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
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
@ahmadhasankhan
ahmadhasankhan / ImageMagick-6.7.7-10.md
Last active Nov 29, 2019
Install ImageMagick 6.7.7-10 on Unix using binary
View ImageMagick-6.7.7-10.md

Remove imagemagick

sudo apt-get --purge remove imagemagick
sudo apt autoremove

Install Required package:

sudo apt-get install build-essential 
sudo apt-get install checkinstall
@rogden
rogden / FractalMapLoader.php
Last active Apr 8, 2018
Using Fractal with Handlebars PHP
View FractalMapLoader.php
<?php
use Handlebars\Loader;
class FractalMapLoader implements Loader {
/**
* An array of @handle => component path mappings
* @var array
*/
@SahAssar
SahAssar / css-var-polyfill.js
Last active Apr 30, 2018 — forked from stramel/css-var-polyfill.js
CSS Variable Polyfill
View css-var-polyfill.js
/*
TODO:
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns
*/
var cssVarPoly = {
init: function() {
if (window.CSS && window.CSS.supports && window.CSS.supports('(--foo: red)')) {
return;
}
cssVarPoly.ratifiedVars = {};
@justjanne
justjanne / Price Breakdown.md
Last active Dec 5, 2019 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
View Price Breakdown.md

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
View css-var-polyfill.js
/*
TODO:
X Maybe account for defaults: color: var(--header-color, blue);
- Verify cross domain working or not (it is working from dropbox)
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns
- Need to test on a more complex CSS file
- Option to save parsed file in local/session storage so there isn't a delay on additional page loads. Could only do it for links (with URLs to use as keys) and style blocks with IDs of some sort
- Need to test more complex values like rgba(255,0,0,0.5); and something with !important
- Try multiple links
- Local links
@ModulesUnraveled
ModulesUnraveled / drushrc.php
Last active May 14, 2017
Useful Drush shell-aliases for Drupal 8 development.
View drushrc.php
<?php
/**
* These aliases (while working) are NO LONGER MAINTAINED.
*
* Development has moved to a full github repo here:
* https://github.com/ModulesUnraveled/Drush-Shell-Aliases
*
* I'm doing this to make it more easy to include them in your Drupal 8 projects.
View drupal-8-preprocess.theme
use Drupal\node\NodeInterface;
use Drupal\Core\Template\Attribute;
use Drupal\Core\Url;
/**
* Implements hook_preprocess_page() for page.html.twig.
*/
function THEME_preprocess_page(&$vars) {
// Add sitename and slogan to page.
$vars['site_name'] = \Drupal::config('system.site')->get('name');
@mohamed-el-habib
mohamed-el-habib / 00_ReadMe.md
Last active Feb 4, 2019
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
@chrisfree
chrisfree / drupal-8-drush-deployment.sh
Created Jan 8, 2016
Example Drupal 8 Deployment with Drush
View drupal-8-drush-deployment.sh
#!/bin/bash
echo ""
echo "Switching to project docroot."
cd /var/www/chromatichq.com/docroot
echo ""
echo "Pulling down the latest code."
git pull origin master
echo ""
echo "Clearing drush caches."
You can’t perform that action at this time.