Skip to content

Instantly share code, notes, and snippets.

@yaredc
yaredc / no-warnings-and-notices.php
Last active September 9, 2019 21:22
Fix all PHP notices and warnings with this one simple trick!
<?php
declare(strict_types=1);
/*
* Convert all notices and warnings to errors.
* There is no point in warnings and notices.
*/
set_error_handler(static function ($errno, $errstr, $errfile, $errline): bool {
switch ($errno) {
#!/bin/sh
TARGET='/etc/hosts'
SOURCE="$HOME/hosts"
BACKUP="$HOME/hosts.$(date +'%Y-%m-%d').bak"
#BACKUP
cp "$TARGET" "$BACKUP"
#DOWNLOAD NEW
@yaredc
yaredc / meta-tags.md
Created July 13, 2017 10:10 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>