Skip to content

Instantly share code, notes, and snippets.

View fizerkhan's full-sized avatar

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

View GitHub Profile
@fizerkhan
fizerkhan / Email-verifier.js
Created October 20, 2017 09:55 — forked from augfrank/Email-verifier.js
Google Sheet script to verify email addresses automatically
/**
* A custom function that verifies an email ID
*
* @param {String} email ID
* @return {Boolean} If the email ID is active
* @customfunction
*/
function verifyEmail(email) {
// Replace this with your Hunter.io API key
@fizerkhan
fizerkhan / gist:41f9c525db5b3b16bfcb
Last active March 28, 2023 19:54
RSA Host Key has been changed.

Solution for RSA host key for <ip_address> has changed and you have requested strict checking:

Method 1: Remove keys

ssh-keygen -R <server_name>

(or)

ssh-keygen -R

@fizerkhan
fizerkhan / gist:5633503
Created May 23, 2013 08:28
Extract largest image thumbnail from url using node and cheerio
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
fizerkhan / game-art.md
Last active February 27, 2022 09:50
Free Game Art
@fizerkhan
fizerkhan / html
Created December 8, 2012 06:12
Contact Form in Google App Engine
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A form</title>
</head>
<body>
<form action="feedback" method="post">
<!-- Simple text field -->
@fizerkhan
fizerkhan / contact-form-servlet
Last active May 12, 2020 09:55
Google App Engine Servlet for Contact form
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("support@acme.com",
"Acme Support Team"));
○ → curl https://sparkshoes.com.au/login
<!DOCTYPE html>
<!--[if IE 9 ]>
<html class="ie ie9" lang="en" class="no-js"> <![endif]-->
<!--[if !(IE)]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
<title>Automox</title>
@fizerkhan
fizerkhan / dokku-node-mongo.md
Last active March 12, 2019 17:44
NodeJS and MongoDB app in Dokku with Digital Ocean

Steps:

  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"
    reboot
@fizerkhan
fizerkhan / atatus-netsuite-error.js
Created December 19, 2018 13:38
Atatus Error Reporting in NetSuite
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
fizerkhan / Install AtatusJS Agent
Last active July 14, 2018 06:10
Atatus Angular 2+ Integrations
npm install atatus-js --save