Skip to content

Instantly share code, notes, and snippets.


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

View GitHub Profile
fizerkhan / gist:5633503
Created May 23, 2013
Extract largest image thumbnail from url using node and cheerio
View gist:5633503
var cheerio = require('cheerio')
, Shred = require('shred')
, shred = new Shred()
, http = require('http')
, URL = require('url');
var server = http.createServer(function(request, response) {
var url, urlToDiscover;
url = URL.parse(request.url, true);
fizerkhan /
Last active Feb 27, 2022
Free Game Art
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 / 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 /
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) {