Skip to content

Instantly share code, notes, and snippets.

View drmzio's full-sized avatar

Daniel Ramirez drmzio

View GitHub Profile
@drmzio
drmzio / disable-emoji.php
Created June 19, 2018 20:00
Disables the ugly pixelated emojis that come with WordPress
<?php
function disable_wp_emoji() {
// all actions related to emojis
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
@drmzio
drmzio / README.md
Last active August 6, 2017 06:23
Finds the source of a video/image
@drmzio
drmzio / gist:499528b722d37b8ae2ee5dcc9a21c912
Last active June 29, 2017 23:03 — forked from adampiotrowski/gist:ccf6342d9308a3abd897
Install LEMP (PHP 7.0, MariaDB) on Ubuntu 16.04
# Install updates
sudo apt-get update && sudo apt-get upgrade
# Update kernel
sudo apt-get update && sudo apt-get dist-upgrade
# Install LEMP
sudo apt-get update && sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mariadb.kisiek.net//repo/10.0/ubuntu trusty main'
@drmzio
drmzio / LEMP.sh
Created June 8, 2017 02:22 — forked from hiendnguyen/LEMP.sh
CentOS 7 LEMP
# Install Nginx
sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
# Install MySQL (MariaDB)
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb
@drmzio
drmzio / Simple-HEX-color-generator.markdown
Created March 13, 2014 02:14
A Pen by Daniel Ramirez.

Simple HEX color generator

Don't know the HEX value of a certain color? Well, choose a color in the HTML5 color picker and click refresh to generate that color's HEX value!

A Pen by Daniel Ramirez on CodePen.

License.