Skip to content

Instantly share code, notes, and snippets.

View saber13812002's full-sized avatar
💭
stackoverflow+codegrepper.com

Saber tabatabaee yazdi saber13812002

💭
stackoverflow+codegrepper.com
View GitHub Profile
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Permission as PermissionModel;
use App\PermissionRole;
use Illuminate\Support\Facades\Config;
class Permission extends Command
@saber13812002
saber13812002 / xampp_php7_xdebug.md
Created February 16, 2020 17:42 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
@saber13812002
saber13812002 / README.md
Created February 8, 2020 15:18 — forked from manzoorwanijk/README.md
Google Script to bypass the blockage of Telegram Bot API from by webhost

WPTelegram Google Script

You can use this script to bypass the bans on Telegram API by different hosts. Simply send the request to this script instead of the Telegram Bot API after deploying it as a web app and allowing anonymous access.

Params

It accepts bot GET and POST requests with the following params

name type Description
<?php
//set up pods::find parameters to limit to 5 items
$param = array(
'limit' => 5,
);
//create pods object
$pods = pods('pod_name', $params );
//check that total values (given limit) returned is greater than zero
if ( $pods->total() > 0 ) {
@saber13812002
saber13812002 / example.php
Created November 24, 2019 09:28 — forked from mhemrg/example.php
Liara
if( ! app()->runningInConsole()) {
// Your code...
}
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
@saber13812002
saber13812002 / Dockerfile
Created July 11, 2019 16:36 — forked from mhemrg/Dockerfile
Nodejs + puppeteer + docker
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' \
@saber13812002
saber13812002 / 1. autoplay-video.directive.ts
Created July 9, 2019 23:18 — forked from Bengejd/1. autoplay-video.directive.ts
Ionic - Auto play/pause videos on scroll.
import { Directive } from '@angular/core';
@Directive({
selector: 'video'
})
export class AutoplayVideoDirective { }
@saber13812002
saber13812002 / bankmellat plugin connect to banktest.ir
Created June 13, 2019 12:00
bankmellat wp plugin connect to banktest.ir
<?php
defined('ABSPATH') or die("-1");
if (!class_exists('nusoap_base')) {
require_once(plugin_dir_path(__FILE__) . '/lib/nusoap.php');
}
function WPBEGPAY_ShortCode()
{
@saber13812002
saber13812002 / mellat.php
Created June 7, 2019 15:44
Laravel when add larabook/gateway (Mellat gateway), but I get below error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl' :
<?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;