Skip to content

Instantly share code, notes, and snippets.

Abdus Samad Azad thisisabdus

Block or report user

Report or block thisisabdus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thisisabdus
thisisabdus / secure-email-static-site.html
Created Nov 7, 2019
Sending Encrypted Emails from Front-End/Static Sites
View secure-email-static-site.html
<html>
<body>
<form action="">
<input
type="email"
id="email"
name="email"
placeholder="mail@abdus.xyz"
/>
<br />
View keybase.md

Keybase proof

I hereby claim:

  • I am thisisabdus on github.
  • I am thisisabdus (https://keybase.io/thisisabdus) on keybase.
  • I have a public key ASB_kPwE-z_xjwIZDSBLGdmLBJfhKYUpuSm6EM6qRD4CMwo

To claim this, I am signing this object:

@thisisabdus
thisisabdus / mode.js
Created Aug 3, 2019
get the most frequent element from an array. In other words, mode of an array
View mode.js
/**
* Getting the most frequent element from an array
*/
function mode(array = []) {
// check if it is an array and have atleast a single element
if (!Array.isArray(array)) {
throw new Error(`Please provide an array as argument`);
}
View dl-gh-pub-repo.js
const fetch = require('node-fetch')
const { execSync } = require('child_process')
async function getRepoURLs(user) {
let gh_data = await fetch(`https://api.github.com/users/${user}/repos`)
gh_data = await gh_data.json()
return gh_data
}
async function main() {
@thisisabdus
thisisabdus / share.html
Created Mar 18, 2019
Jekyll Site Social Share Buttons
View share.html
<div id="share">
<a
href="https://www.facebook.com/sharer/sharer.php?u={{
page.url | absolute_url
}}"
target="_blank"
><i style="color: #44609c" class="fab fa-facebook-f"></i
></a>
<a
href="http://www.reddit.com/submit?url={{
@thisisabdus
thisisabdus / mp4toGIF.sh
Last active Dec 9, 2018
this script accept a mp4 file path as an arg and convert it to GIF and stores in the same dir
View mp4toGIF.sh
#!/bin/bash
if [ ! -d ./frames ]
then
mkdir frames
fi
ffmpeg -i $1 -r 20 'frames/frame-%03d.jpg'
cd frames
convert -delay 5 -loop 0 *.jpg $1.gif
@thisisabdus
thisisabdus / linkedin-auto-invite.js
Last active Sep 3, 2019
Simple script for sending mass invite on linkedin #automation #auto-invite
View linkedin-auto-invite.js
// ++++++++++++++++++++++++++++++++++++++++++++++++++++
// script for sending auto invite to people in linkedin
// ++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Simple script for sending mass invite on linkedin
// NOTE: This will send invite to the profiles available in your 'RECOMANDATION' tab
//
//
//
// HOW TO
View manifest.json
{
"short_name": "Abdus",
"name": "Abdus",
"icon": [
{
"src": "/pwa/img/icons-192.png",
"type": "image/png",
"sizes": "192x192"
},
{
View findPhrase.js
// function for validating parameter
const validateParam = (param2validate) => {
if (!param2validate) return false;
if (param2validate.length === 0) return false;
if (typeof param2validate != 'string') return false;
};
const searchPhrase = (phrase, data) => {
if (validateParam(phrase) === false){
You can’t perform that action at this time.