- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
//infix operator-precedence parser | |
//also supports a d operator - a dice roll | |
var parsePrecedence = (function () { | |
//we don't care about whitespace. well, most whitespace | |
var whitespace = { | |
' ' : true, | |
'\t' : true | |
}; |
//Writing and reading XML files with Qt - qxmlstreamwriter and qxmlstreamreader supported classes | |
void MyXMLClass::SaveXMLFile() | |
{ | |
QString filename = QFileDialog::getSaveFileName(this, | |
tr("Save Xml"), ".", | |
tr("Xml files (*.xml)")); | |
// CSS Color Names | |
// Compiled by @bobspace. | |
// | |
// A javascript object containing all of the color names listed in the CSS Spec. | |
// This used to be a big array, but the hex values are useful too, so now it's an object. | |
// If you need the names as an array use Object.keys, but you already knew that! | |
// | |
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
// Use it as you please, 'cuz you can't, like, own a color, man. |
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
17-Dec-84 19:26:34 Hack 1.0 | |
21-Jan-85 21:44:28 Hack 1.0.1 | |
01-Apr-85 22:31:25 Hack 1.0.2 | |
23-Jul-85 16:24:17 EDT Hack 1.0.3 | |
28-Jul-87 NetHack 1.3d | |
15-Aug-87 NetHack 1.4f | |
03-Dec-87 Nethack 2.2a | |
09-Apr-88 18:45:41 GMT Nethack 2.3e | |
24-Jul-89 Nethack 3.0.0 | |
03-Aug-89 Nethack 3.0.1 [Announcement][1] |
Many of us spend many hours of our days using their terminal. Plus, we all have different tastes when it comes to color schemes. That's why the ability to change the color scheme of a terminal is one of its more important featuresl. Throughout this tutorial, I'll teach you how you can change the looks of your terminal, step by step.
This tutorial is aimed at elementary OS users, but it also works for any Ubuntu user. Start by installing dconf-tools:
sudo apt-get install dconf-tools
Secondly, you need to decide which theme you're going to apply. You can find dozens of terminal color schemes online, you can even design your own using this web application. Design the color scheme, hit "Get Scheme" and choose "Terminator". You'll get a raw text file with a background color, a foreground color and a palette. Those strings define your color scheme. In this tutorial, I'll post an
. | |
##############..... ############## | |
##############......############## | |
##########..........########## | |
##########........########## | |
##########.......########## | |
##########.....##########.. | |
##########....##########..... | |
..##########..##########......... | |
....##########.#########............. |
sites | |
|__ ms.dev | |
| |__ content | |
| |__ index.php | |
| |__ wp => ../../wordpress/stable | |
| |__ wp-config.php | |
|__ one.dev | |
| |__ content | |
| |__ index.php | |
| |__ wp => ../../wordpress/stable |
<?php | |
require( 'wp-load.php' ); | |
//set_time_limit(30000); // you can set time limit, but I prefer to use command line > php fix-duplicated-posts.php | |
$query = "SELECT id,post_name, Count(*) FROM wp_posts WHERE post_type = 'post' GROUP BY post_name HAVING Count(*) > 1"; | |
$duplicated_posts = $wpdb->get_results( $query ); | |
foreach ( $duplicated_posts as $result ) { | |
$prepost = get_post($result->id); | |
$prepost->post_name = ''; |