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 | |
echo 'hello world'; | |
?> |
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
Installing WP-CLI in Windows | |
WP-CLI is a tool for controlling WordPress through a console window. | |
thanks to author of this page on wensolutions.com | |
http://wensolutions.com/installing-wp-cli-in-windows/ | |
For linux : https://www.jetbrains.com/help/idea/using-the-wordpress-command-line-tool-wp-cli.html | |
Although it is said that wp-cli requires UNIX-like environment (OS X, Linux, FreeBSD, Cygwin) environment however it is still possible to install in Windows environment. |
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
cd install-directory/ | |
#wget --no-check-certificate http://www.wordpress.org/latest.tar.gz | |
#tar xfz latest.tar.gz | |
#mv wordpress/* ./ | |
#rmdir ./wordpress/ | |
#rm -f latest.tar.gz | |
wp core download | |
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 | |
$url = 'http://usr:[email protected]:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment'; | |
if ($url === unparse_url(parse_url($url))) { | |
print "YES, they match!\n"; | |
} | |
function unparse_url($parsed_url) { | |
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : ''; | |
$host = isset($parsed_url['host']) ? $parsed_url['host'] : ''; |
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 App\Console\Commands; | |
use Illuminate\Console\Command; | |
use File; | |
class MakeViewCommand extends Command | |
{ | |
/** |
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 Larautility\Gateway\Mellat; | |
use DateTime; | |
use Illuminate\Support\Facades\Input; | |
use Larautility\Gateway\Enum; | |
use SoapClient; | |
use Larautility\Gateway\PortAbstract; | |
use Larautility\Gateway\PortInterface; |
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 | |
defined('ABSPATH') or die("-1"); | |
if (!class_exists('nusoap_base')) { | |
require_once(plugin_dir_path(__FILE__) . '/lib/nusoap.php'); | |
} | |
function WPBEGPAY_ShortCode() | |
{ |
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
import { Directive } from '@angular/core'; | |
@Directive({ | |
selector: 'video' | |
}) | |
export class AutoplayVideoDirective { } |
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
FROM liararepo/node-platform | |
RUN apt-get update \ | |
# See https://crbug.com/795759 | |
&& apt-get install -yq libgconf-2-4 \ | |
# Install latest chrome dev package, which installs the necessary libs to | |
# make the bundled version of Chromium that Puppeteer installs work. | |
&& apt-get install -y wget --no-install-recommends \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ |
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
FROM liararepo/laravel-platform:frontend | |
FROM liararepo/laravel-platform:backend | |
RUN chgrp -R www-data /var/www/html/lib/vendor | |
RUN chmod -R ug+rwx /var/www/html/lib/vendor |
OlderNewer