https://nodejs.org/en/download/
Download Linux Binaries.
<?php | |
add_action('registered_post_type', 'make_posts_hierarchical', 99, 2); | |
/** | |
* Ensure posts post type is hierarchal and allows page attributes | |
* | |
* Initial Setup - Runs after each post type is registered | |
*/ | |
function make_posts_hierarchical($post_type, $pto) |
// If you do not want to open a popup from a user clicking a button, | |
// and your popup container is already on the page (footer?) hidden... | |
$.magnificPopup.open({ | |
items: { | |
src: $('#modal-container') | |
}, | |
type: 'inline', | |
mainClass: 'mfp-fade' | |
}); |
# Unknown collation: 'utf8mb4_unicode_520_ci' | |
sed -i'.bak' "s/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g;" file.sql | |
# COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' | |
sed -i'.bak' "s/utf8_general_ci/utf8mb4_unicode_ci/g;" file.sql |
grep processor /proc/cpuinfo |
<?php | |
// Make your key https://console.developers.google.com | |
define('YOUTUBE_API_KEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXXX'); | |
class YouTubeAPI { | |
private $keyword=""; | |
private $maxResults = 10; | |
private $order = "viewCount"; | |
private $query = ''; | |
private $data = ''; |
#!/bin/bash | |
# Run as root | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
apt-get update && \ | |
apt-get install -y nano && \ |
https://nodejs.org/en/download/
Download Linux Binaries.
var alphabetCities = { | |
init: function(regions, startLetter) { | |
this.addLetters(regions); | |
this.addLetterPicker(regions); | |
this.selectLetter(startLetter, regions)(); | |
}, | |
letters: [ | |
'a', 'b', 'c', 'd', 'e', | |
'f', 'g', 'h', 'i', 'j', |
mysqldump -u user -ppassword database_name --max-allowed-packet=500M -B --add-drop-database > dump.sql |
// ==UserScript== | |
// @name Pixlr Editor - Remove AD | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description Remove div wrapper for the AD, remove body padding right | |
// @author You | |
// @match https://pixlr.com/editor/ | |
// @grant none | |
// ==/UserScript== |