Skip to content

Instantly share code, notes, and snippets.


Fizer Khan (பைசர் கான்) fizerkhan

View GitHub Profile
fizerkhan / contact-form-servlet
Last active May 12, 2020
Google App Engine Servlet for Contact form
View contact-form-servlet
String name = req.getParameter("name");
String email = req.getParameter("email");
String message = req.getParameter("message");
// Create Mail message
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("",
"Acme Support Team"));
View html
○ → curl
<!DOCTYPE html>
<!--[if IE 9 ]>
<html class="ie ie9" lang="en" class="no-js"> <![endif]-->
<!--[if !(IE)]><!-->
<html lang="en" class="no-js">
fizerkhan /
Last active Mar 12, 2019
NodeJS and MongoDB app in Dokku with Digital Ocean


  1. Create Digital Ocean Droplet with Dokku v0.3.16 on 14.04 image

  2. Login into the droplet and Update local settings.

    sh -c "echo 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale"
fizerkhan / atatus-netsuite-error.js
Created Dec 19, 2018
Atatus Error Reporting in NetSuite
View atatus-netsuite-error.js
require(["N/https"], function(https) {
function sendErrorPayload(apikey, error, options) {
if (!apikey) {
throw new Error("API Key is missing!")
if (!error || !error.stack) {
throw new Error("Invalid error!")
fizerkhan / Install AtatusJS Agent
Last active Jul 14, 2018
Atatus Angular 2+ Integrations
View Install AtatusJS Agent
npm install atatus-js --save
fizerkhan / html
Created Dec 8, 2012
Contact Form in Google App Engine
View html
<!DOCTYPE html>
<meta charset="utf-8">
<title>A form</title>
<form action="feedback" method="post">
<!-- Simple text field -->
fizerkhan /
Last active Jun 7, 2018
Indian Income Tax questions
  1. What to write in the ITR-V form at I further declare that I am making this return in my capacity as ----------?

Answer: In case you have used e-filing (either directly through NSDL or through Skorydov etc), you may leave it blank. If this was filed by any other CA, then he/she has to fill their name and designation.

fizerkhan / cluster.js
Created Jan 17, 2018
Node Cluster with Atatus APM
View cluster.js
var cluster = require('cluster');
if (cluster.isMaster) {
// Count the machine's CPUs
var cpuCount = require('os').cpus().length;
// Create a worker for each CPU
for (var i = 0; i < cpuCount; i += 1) {
fizerkhan / Dockerfile
Last active Feb 20, 2018
Docker Compose build is not working
View Dockerfile
FROM node:0.10
CMD [ "npm", "start", "#custom" ]
fizerkhan / AtatusExceptionHandler.php
Last active Feb 8, 2018
Atatus Exception Handler for Lumen Framework
View AtatusExceptionHandler.php
// app/Exceptions/AtatusExceptionHandler.php
namespace App\Exceptions;
use Exception;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;