Skip to content

Instantly share code, notes, and snippets.

View IftekherSunny's full-sized avatar
🏠
Working from home

Iftekher Islam Sunny IftekherSunny

🏠
Working from home
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Class & Inheritance</title>
</head>
<body>
<script>
@IftekherSunny
IftekherSunny / readme.md
Created July 10, 2016 13:59 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@IftekherSunny
IftekherSunny / Sublime Text 3 Build 3103 License Key - CRACK
Created July 11, 2016 17:07
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@IftekherSunny
IftekherSunny / satis_github_auth.sh
Created July 14, 2016 17:42 — forked from h4cc/satis_github_auth.sh
Some notes on how to authenticate with composer/satis against github oauth, so the rate limit of 60 will be raised op to 5000. Can also be used for travis-ci.
# Create a new Token
curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations
# It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210"
#{
# "created_at": "2013-01-04T18:00:28Z",
# "app": {
# "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api",
@IftekherSunny
IftekherSunny / gist:97c50aa478d541f081e39ba3ffb6d7e8
Created July 18, 2016 11:24 — forked from adamstac/gist:7462202
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
@IftekherSunny
IftekherSunny / Cookie.js
Last active July 27, 2016 06:02
You can use this code snippet for your JWT auth system ( Dependency vuejs and vue-resource )
@IftekherSunny
IftekherSunny / subscribers-list.blade.php
Last active August 2, 2016 09:29
VueJS - Table Mixnin
@extends('layouts.default')
@section('content')
<subscribers-list inline-template>
<div class="main">
<div class="container">
<div class="row">
<div class="row">
<!-- table top -->
<div class="col-md-6">
/******************************************************************************************
*
* Headers for cors.
*
*****************************************************************************************/
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE');
header('Access-Control-Allow-Headers: Content-Type, X-Auth-Token, Origin, Authorization');
@IftekherSunny
IftekherSunny / HttpResponse.php
Last active August 9, 2016 09:37
Http response trait for the Laravel framework
<?php
trait HttpResponse
{
/**
* Response unprocessable entity.
*
* @param array $message
*
* @return \Illuminate\Http\JsonResponse
@IftekherSunny
IftekherSunny / SubscribersTest.php
Last active February 2, 2022 11:29
Laravel File Upload API Test
<?php
use Illuminate\Http\UploadedFile;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class SubscribersTest extends TestCase
{
use DatabaseMigrations, WithoutMiddleware;