php --version
php -m -c
php -S localhost:8888
| // ==UserScript== | |
| // @name GitLab - Add Board Link | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://gitlab.com/*/projetos | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com | |
| // @grant none | |
| // ==/UserScript== |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Listen for XDebug", | |
| "type": "php", | |
| "request": "launch", | |
| "port": 9000 | |
| } | |
| ] |
| <?php | |
| /** | |
| * Remove dashboard widgets. | |
| */ | |
| function remove_dashboard_widgets() { | |
| remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); | |
| remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); | |
| remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); | |
| remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); | |
| remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); |
| <?php | |
| /** | |
| * Create media from path. | |
| * | |
| * @param string $file_path | |
| */ | |
| function create_media_from_path( $file_path, $post_id = 0 ) { | |
| // Requires | |
| require_once( ABSPATH . 'wp-admin/includes/admin.php' ); | |
| require_once( ABSPATH . 'wp-admin/includes/image.php' ); |
| fetch(ajax_url, { | |
| method: 'POST', | |
| credentials: 'same-origin', | |
| headers: new Headers({'Content-Type': 'application/x-www-form-urlencoded'}), | |
| body: 'action=zget_profile_user' | |
| }) | |
| .then((resp) => resp.json()) | |
| .then(function(data) { | |
| if(data.status == "success"){ | |
| _this.setState({loaded:true,user:data.user}); |
| <?php | |
| /* | |
| Plugin Name: Install Commands | |
| Plugin URI: | |
| Description: Copy command to install plugins trough WP-CLI or Composer. | |
| Author: Allyson Souza | |
| Version: 1.0 | |
| Author URI: https://hastedesign.com.br | |
| Text Domain: install-commands | |
| Domain Path: /languages |
| import React from "react"; | |
| import "./_about.scss"; | |
| import { FormattedMessage, useIntl } from "gatsby-plugin-intl" | |
| import AboutEN from "./about.en.mdx" | |
| import AboutPT from "./about.pt.mdx" | |
| import AboutES from "./about.es.mdx" | |
| export default function Header() { | |
| const intl = useIntl() |
| <?xml version="1.0" encoding="utf-8"?> | |
| <packages> | |
| <package id="cmder" /> | |
| <package id="nodejs" /> | |
| <package id="git" /> | |
| <package id="composer" /> | |
| <package id="sourcetree" /> | |
| <package id="slack" /> | |
| <package id="gifcam" /> | |
| <package id="paint.net" /> |
| <?php | |
| /** | |
| * Automatically sets the post thumbnail. | |
| * | |
| * Use: | |
| * add_action( 'the_post', 'haste_starter_autoset_featured' ); | |
| * add_action( 'save_post', 'haste_starter_autoset_featured' ); | |
| * add_action( 'draft_to_publish', 'haste_starter_autoset_featured' ); | |
| * add_action( 'new_to_publish', 'haste_starter_autoset_featured' ); | |
| * add_action( 'pending_to_publish', 'haste_starter_autoset_featured' ); |