Skip to content

Instantly share code, notes, and snippets.

View codiceovvio's full-sized avatar

Codice Ovvio codiceovvio

View GitHub Profile
@codiceovvio
codiceovvio / clearRAM.sh
Created July 26, 2017 23:08 — forked from pklaus/clearRAM.sh
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi
@codiceovvio
codiceovvio / Unicode table
Created May 14, 2017 14:37 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
see:
http://stackoverflow.com/questions/26860451/wordpress-move-multisite-from-server-to-localhost#answer-26860852
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noodp, noydir" />
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
<link rel="canonical" href="http://mysite.com/" />
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" />
@codiceovvio
codiceovvio / youtube-poster-frame.css
Created February 23, 2016 08:32 — forked from zigotica/youtube-poster-frame.css
Very simple method to add custom poster frame to youtube video without using youtube API. This code is also valid in browsers not supporting window.postMessage (API uses postMessage). The trick is adding the iframe in a comment. Javascript reads comment contents and saves iframe definition to a var. When JQuery (for the sake of brevity, not real…
.video { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; }
.video img { position: absolute; display: block; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; cursor: pointer; }
.video:after { content: ""; position: absolute; display: block;
background: url(play-button.png) no-repeat 0 0;
top: 45%; left: 45%; width: 46px; height: 36px; z-index: 30; cursor: pointer; }
.video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* image poster clicked, player class added using js */
.video.player img { display: none; }
.video.player:after { display: none; }
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@codiceovvio
codiceovvio / WordPress-theme-gitignore
Last active August 29, 2015 14:22
WordPress .gitignore for theme develop
# folders and files to be ignored by git
################################
# ignore different IDE's files #
################################
*.pydevproject
.project
.metadata
*.swp
*~.nib
@codiceovvio
codiceovvio / custom-widget-classes
Created May 13, 2015 12:14
WordPress custom widget classes
/**
* Add Custom Widget Classes conditionally.
*
* Adds one or more classes to the widget output
* using substr to substitute the last two characters
* in any of these registered parameters for the sidebar,
* if used: before_widget, after_widget, before_title,
* after_title. Can also be used to add custom Html.
* In this last case is enough to concatenate the output
* without using substr which will be unuseful.
@codiceovvio
codiceovvio / chrome-custom-scrollbar
Last active August 29, 2015 14:20
Customize Chrome Scrollbar Styles
/**
* Chrome browser scrollbar custom style
*/
/* The Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
@codiceovvio
codiceovvio / r-debug.php
Last active August 29, 2015 14:20 — forked from Rarst/r-debug.php
WordPress debug helpers from Rarst
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: http://www.rarst.net/
License: MIT
*/
/**