Skip to content

Instantly share code, notes, and snippets.

View mhmohon's full-sized avatar
🎯
Focusing

Mosharrf Hossain mhmohon

🎯
Focusing
  • Apartments & Developments
  • Melbourne, Australia (Remote)
  • 20:20 (UTC +06:00)
  • LinkedIn in/mhmohon
View GitHub Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@mhmohon
mhmohon / keybase.md
Created October 6, 2020 06:43
keybase

Keybase proof

I hereby claim:

  • I am mhmohon on github.
  • I am mhmohon (https://keybase.io/mhmohon) on keybase.
  • I have a public key ASBPc9qBM0hkuyq2VBqpMGc4BJBkVIkkSIxcXeLY0wjSyQo

To claim this, I am signing this object:

@mhmohon
mhmohon / infyom.txt
Created May 17, 2020 09:53
Infyom Package text
php artisan infyom:scaffold RuleAction --fromTable --tableName=rule_actions --skip=views,menu,scaffold_requests
@mhmohon
mhmohon / crestapps.txt
Last active May 19, 2020 15:07
Change vendor file in crestapps (Crud function create from database table)
**Change view directory**
Add this code to config/laravel-code-generator.php.
'views_path' => base_path('app/Interfaces/Resources/views/admin/modules/riskmanagement/fraud/'),
vendor\crestapps\laravel-code-generator\src\Commands\Bases\ViewsCommandBase.php in this file change getDestinationPath() method.
$path = config('laravel-code-generator.views_path');
**Change route directory**
Add this code to config/laravel-code-generator.php.
'routes_path' => app_path('Domain/Admin/Modules/FraudManagement/Routes/'),
@mhmohon
mhmohon / urlprams.js
Created December 16, 2019 11:03
Get url prams
//URLSearchParams() JQuery built in function.
// e.g. http://127.0.0.1:8000/account?option=user_registration
//window.location.search will get search keyword. (?option=user_registration)
let searchParams = new URLSearchParams(window.location.search);
if(searchParams.has('option'))
{
let param = searchParams.get('option');
if(param == 'user_registration')
{
@mhmohon
mhmohon / cloudSettings
Last active May 6, 2020 08:30
VsCode Setting
{"lastUpload":"2020-05-06T08:30:25.374Z","extensionVersion":"v3.4.3"}
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Mail;
<?php
require ('core/MySqlDrive.php');
$db_con = new MySqlDrive();
session_start();
$name = "";
$phone = "";
$roll = "";
$id = "";
$update = FALSE;
<html>
<head>
</head>
<body>
<?php
require('process.php');
$db_con = new MySqlDrive();
$query = "SELECT * FROM student";