Skip to content

Instantly share code, notes, and snippets.

View mnishihan's full-sized avatar

M N Islam Shihan mnishihan

  • Dhaka, Bangladesh
View GitHub Profile
App.module("FooModule.Bar", {
startWithApp: false,
define: function() {
// Code of submodule
}
});
<?php
namespace {
die('Only to be used as an helper for your IDE');
}
namespace {
class App extends Illuminate\Support\Facades\App{
/**
* @var \Illuminate\Foundation\Application $root
*/
@mnishihan
mnishihan / stub.php
Last active December 17, 2015 11:59
Laravel 3 Migration Stub that I use. Replace existing /laravel/cli/tasks/migrate/stub.php with this file if you need it
<?php
class {{class}} {
var $connection = 'default';
/**
* Make changes to the database.
*
* @return void
<?php
/**
* Simple excel writer class with no external dependencies, drop it in and have fun
* @author Matt Nowack
* @license Unlicensed
* @version 1.0
*/
class Excel {
private $col;

Keybase proof

I hereby claim:

  • I am mnishihan on github.
  • I am mnishihan (https://keybase.io/mnishihan) on keybase.
  • I have a public key whose fingerprint is 63E2 D124 3B18 12C5 E27F C2D6 5339 10D7 F81D 71B1

To claim this, I am signing this object:

@mnishihan
mnishihan / HUAWEI_E3531.sh
Created February 4, 2019 17:19 — forked from elacheche/HUAWEI_E3531.sh
Little script to enable HUAWEI E3531 on Ubuntu
sudo apt-get update && sudo apt-get install usb-modeswitch && v=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $1 }'); p=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $2 }'); sudo usb_modeswitch -v $v -p $p -M '55534243123456780000000000000011062000000100000000000000000000'
@mnishihan
mnishihan / download-oracle-jdk.md
Last active November 20, 2023 02:50
Download Oracle JDK without login