Skip to content

Instantly share code, notes, and snippets.

View itsazzad's full-sized avatar
🎯
Focusing

Sazzad Hossain (Tushar) Khan itsazzad

🎯
Focusing
View GitHub Profile
@itsazzad
itsazzad / tablefilter.js
Created June 16, 2021 20:49
TableFilter
!function webpackUniversalModuleDefinition(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(o){function webpackJsonpCallback(t){for(var e,n,r=t[0],i=t[1],s=0,a=[];s<r.length;s++)n=r[s],u[n]&&a.push(u[n][0]),u[n]=0;for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(o[e]=i[e]);for(c&&c(t);a.length;)a.shift()()}var n={},u={0:0};function __webpack_require__(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,__webpack_require__),e.l=!0,e.exports}__webpack_require__.e=function requireEnsure(i){var t=[],n=u[i];if(0!==n)if(n)t.push(n[2]);else{var e=new Promise(function(t,e){n=u[i]=[t,e]});t.push(n[2]=e);var r,s=document.createElement("script");s.charset="utf-8",s.timeout=120,__webpack_require__.nc&&s.setAttribute("nonce",__webpack_require__.nc),s.src=function jsonpScr
/*! intercom.js | https://github.com/diy/intercom.js | Apache License (v2) */
var Intercom=function(){var g=function(){};g.createInterface=function(b){return{on:function(a,c){"undefined"===typeof this[b]&&(this[b]={});this[b].hasOwnProperty(a)||(this[b][a]=[]);this[b][a].push(c)},off:function(a,c){"undefined"!==typeof this[b]&&this[b].hasOwnProperty(a)&&i.removeItem(c,this[b][a])},trigger:function(a){if("undefined"!==typeof this[b]&&this[b].hasOwnProperty(a))for(var c=Array.prototype.slice.call(arguments,1),e=0;e<this[b][a].length;e++)this[b][a][e].apply(this[b][a][e],c)}}};
var m=g.createInterface("_handlers");g.prototype._on=m.on;g.prototype._off=m.off;g.prototype._trigger=m.trigger;var n=g.createInterface("handlers");g.prototype.on=function(){n.on.apply(this,arguments);Array.prototype.unshift.call(arguments,"on");this._trigger.apply(this,arguments)};g.prototype.off=n.off;g.prototype.trigger=n.trigger;var f=window.localStorage;"undefined"===typeof f&&(f={getItem:function(){},setItem:function(){},removeItem:
@itsazzad
itsazzad / crypto-js-3.1.9-1-2.js
Last active September 8, 2020 22:57
crypto-js-3.1.9-1-2
(function(){var CryptoJS=CryptoJS||(function(Math,undefined){var create=Object.create||(function(){function F(){};return function(obj){var subtype;F.prototype=obj;subtype=new F();F.prototype=null;return subtype;};}())
var C={};var C_lib=C.lib={};var Base=C_lib.Base=(function(){return{extend:function(overrides){var subtype=create(this);if(overrides){subtype.mixIn(overrides);}
if(!subtype.hasOwnProperty('init')||this.init===subtype.init){subtype.init=function(){subtype.$super.init.apply(this,arguments);};}
subtype.init.prototype=subtype;subtype.$super=this;return subtype;},create:function(){var instance=this.extend();instance.init.apply(instance,arguments);return instance;},init:function(){},mixIn:function(properties){for(var propertyName in properties){if(properties.hasOwnProperty(propertyName)){this[propertyName]=properties[propertyName];}}
if(properties.hasOwnProperty('toString')){this.toString=properties.toString;}},clone:function(){return this.init.prototype.extend(this);}};}());var WordArray=C_lib.WordArr
@itsazzad
itsazzad / crypto-js-3.1.9-1-1.js
Last active September 8, 2020 22:57
crypto-js-3.1.9-1-1
(function(){var a=a||(function(f,h){var k=Object.create||(function(){function p(){}return function(r){var q;p.prototype=r;q=new p();p.prototype=null;return q}}());var b={};var c=b.lib={};var l=c.Base=(function(){return{extend:function(q){var p=k(this);if(q){p.mixIn(q)}if(!p.hasOwnProperty("init")||this.init===p.init){p.init=function(){p.$super.init.apply(this,arguments)}}p.init.prototype=p;p.$super=this;return p},create:function(){var p=this.extend();p.init.apply(p,arguments);return p},init:function(){},mixIn:function(q){for(var p in q){if(q.hasOwnProperty(p)){this[p]=q[p]}}if(q.hasOwnProperty("toString")){this.toString=q.toString}},clone:function(){return this.init.prototype.extend(this)}}}());var n=c.WordArray=l.extend({init:function(q,p){q=this.words=q||[];if(p!=h){this.sigBytes=p}else{this.sigBytes=q.length*4}},toString:function(p){return(p||i).stringify(this)},concat:function(v){var s=this.words;var r=v.words;var p=this.sigBytes;var u=v.sigBytes;this.clamp();if(p%4){for(var t=0;t<u;t++){var q=(r[t>>>2]>>
exports.createAuthorizationHeader=function(m,c,e,b,n,l,k,f,i){var h=exports.createSignedHeaders(e);var a=exports.createCanonicalRequest(b,n,{},e,l);var g=exports.createStringToSign(i,k,f,a);var d=exports.createSignature(c,i,k,f,g);var j=exports.createAuthorizationHeaders(i,m,k,f,h,d);return j};exports.createAuthorizationHeaders=function(d,c,e,a,f,b){return("AWS4-HMAC-SHA256 Credential="+c+"/"+exports.createCredentialScope(d,e,a)+", SignedHeaders="+f+", Signature="+b)};exports.createCanonicalRequest=function(f,d,b,e,c){var a=JSON.stringify(c);return[f.toUpperCase(),d,exports.createCanonicalQueryString(b),exports.createCanonicalHeaders(e),exports.createSignedHeaders(e),hexEncodedHash(String(a))].join("\n")};exports.createCanonicalQueryString=function(a){return Object.keys(a).sort().map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(a[b])}).join("&")};exports.createCanonicalHeaders=function(a){return Object.keys(a).sort().map(function(b){return b.toLowerCase().trim()+":"+a[b].toString().trim()+"
(function(a,b){if(typeof exports==="object"){module.exports=exports=b()}else{if(typeof define==="function"&&define.amd){define([],b)}else{a.CryptoJS=b()}}}(this,function(){var a=a||(function(h,j){var d;if(typeof window!=="undefined"&&window.crypto){d=window.crypto}if(!d&&typeof window!=="undefined"&&window.msCrypto){d=window.msCrypto}if(!d&&typeof global!=="undefined"&&global.crypto){d=global.crypto}if(!d&&typeof require==="function"){try{d=require("crypto")}catch(l){}}var b=function(){if(d){if(typeof d.getRandomValues==="function"){try{return d.getRandomValues(new Uint32Array(1))[0]}catch(s){}}if(typeof d.randomBytes==="function"){try{return d.randomBytes(4).readInt32LE()}catch(s){}}}throw new Error("Native crypto module could not be used to get secure random number.")};var o=Object.create||(function(){function s(){}return function(u){var t;s.prototype=u;t=new s();s.prototype=null;return t}}());var c={};var e=c.lib={};var n=e.Base=(function(){return{extend:function(t){var s=o(this);if(t){s.mixIn(t)}if(!s.has
@itsazzad
itsazzad / color-bids-by-number.js
Last active March 31, 2024 13:25
freelancer.com
const MAX = 352;
document.querySelectorAll("fl-list-item").forEach(item=>{
const bidsEntryData = item.querySelector(".BidEntryData");
if(bidsEntryData){
const bids=bidsEntryData.textContent.match(/\d+/)[0];
if(+bids<MAX/100||+bids>MAX/10){
item.querySelectorAll(".BitsListItemHeader.HasHoverState").forEach(bitsItem=>{bitsItem.style.backgroundColor = "blue";});
}
}
});
@itsazzad
itsazzad / InstagramMassUnfollow.js
Last active August 2, 2020 11:53
Instagram Mass Unfollow
const DELAY = 1000;
const delay = ms => new Promise(res => setTimeout(res, ms));
const list = document.querySelectorAll("body > div.RnEpo.Yx5HN div.isgrP > ul li");
for (const sub of list) {
try {
sub.querySelector("div.Igw0E.rBNOH.YBx95.ybXk5._4EzTm.soMvl > button").click();
} catch (err) {
console.error(err)
sub.querySelector("div.Pkbci > button").click();
}
@itsazzad
itsazzad / YouTubeMassUnsubscribe.js
Last active March 10, 2024 13:01
YouTube mass unsubscribe
// Go to the following link in your YouTube: https://www.youtube.com/feed/channels
// Scroll the page all the way down until you reach the very last subscribed channel in your list
const DELAY = 100;
const delay = ms => new Promise(res => setTimeout(res, ms));
const list = document.querySelectorAll("#grid-container > ytd-channel-renderer");
for (let index = 0; index < list.length; index++) {
console.log("")
version: '2.1'
services:
db:
hostname: db.magento2.docker
image: 'mariadb:10.2'
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}