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
@mnishihan
mnishihan / download-oracle-jdk.md
Last active November 20, 2023 02:50
Download Oracle JDK without login
@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'

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:

<?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;
@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
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
*/
App.module("FooModule.Bar", {
startWithApp: false,
define: function() {
// Code of submodule
}
});
@mnishihan
mnishihan / awesome-php.md
Last active December 11, 2015 10:38 — forked from ziadoz/awesome-php.md

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

#!/usr/bin/php
<?php
error_reporting(E_ALL);
if (count($argv) <= 1) {
print("usage createMockup src_dir dst_dir images_dir\n");
print("\tsrc_dir : dir where all bmml file are\n");
print("\tdst_dir : dir where write all html files\n");
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n");
exit(1);
}