Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sazzad Hossain (Tushar) Khan itsazzad

🎯
Focusing
View GitHub Profile
@itsazzad
itsazzad / InstagramMassUnfollow.js
Last active Aug 2, 2020
Instagram Mass Unfollow
View InstagramMassUnfollow.js
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 Aug 2, 2020
YouTube mass unsubscribe
View YouTubeMassUnsubscribe.js
// 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 (const sub of list) {
await delay(DELAY);
sub.querySelector("#subscribe-button > ytd-subscribe-button-renderer > paper-button").click();
await delay(DELAY);
document.querySelector("#confirm-button > a").addEventListener('click', async event => {
View magento-docker-compose.env.yml
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}
View SOJs-by-post.js
var items = "";
document.querySelectorAll("#content .listResults .-job").forEach((item, index)=>{
items+= "\n";
item.querySelectorAll("h3 > span:first-child").forEach((tag)=>{
items+="\n@"+tag.innerText;
});
item.querySelectorAll("div > .post-tag").forEach((tag)=>{
items+="\n"+tag.innerText;
});
View Ping all AWS EC2 IPs
Ping all AWS EC2 IPs from http://ec2-reachability.amazonaws.com/
View db-engine.js
var dbe_startdate = Date.UTC(2012, 10, 01);
var dbe_data = [
{
data: [1516.560, 1488.939, 1559.332, 1567.933, 1533.395, 1560.594, 1545.860, 1514.896, 1527.639, 1544.436, 1529.611, 1583.845, 1617.192, 1468.058, 1467.794, 1500.229, 1491.799, 1514.080, 1502.739, 1500.918, 1485.117, 1470.857, 1466.908, 1471.898, 1452.127, 1459.795, 1439.161, 1439.720, 1469.086, 1446.129, 1442.097, 1466.361, 1456.724, 1453.024, 1463.374, 1466.952, 1480.946, 1497.555, 1496.084, 1476.141, 1472.012, 1467.532, 1462.024, 1449.248, 1441.528, 1427.722, 1425.565, 1417.102, 1413.008, 1404.405, 1416.724, 1403.830, 1399.498, 1401.996, 1354.314, 1351.762, 1374.877, 1367.875, 1359.090, 1348.804, 1360.052, 1341.545, 1341.941, 1303.277, 1289.607, 1289.787, 1290.416, 1311.252, 1277.787],
name: "Oracle"
},
{
data: [1273.470, 1324.673, 1313.677, 1284.783, 1295.218, 1342.454, 1352.242, 1334.944, 1305.234, 1324.826, 1305.758, 1331.338, 1254.271, 1309.291, 1296.914, 1288.389, 1290.214, 1292.669, 1309.097, 1309.554,
@itsazzad
itsazzad / 01.js
Created May 28, 2018 — forked from martinaglv/01.js
What do these functions do?
View 01.js
function whatDoesItDo(val){
return val ? 1 : 2;
}
@itsazzad
itsazzad / freelancer.com.projects.js
Last active Nov 14, 2017
freelancer.com projects
View freelancer.com.projects.js
var counter = {
ended: 0,
notEnded: 0,
};
jQuery('#project_table tbody tr').each(function () {
var started = jQuery(this).find('td.started-col small');
if (started.text().trim().toLowerCase() === 'ended') {
counter.ended++;
jQuery(this).remove();
} else {
@itsazzad
itsazzad / freelancer.com.categories.js
Last active Nov 13, 2017
freelancer.com categories
View freelancer.com.categories.js
var re = /\(([^)]+)\)/g;
var skills = {};
$('#browseCategories .Container .PageJob-category').each(function () {
$(this).find('.PageJob-browse-list li').each(function () {
var skillCount = $(this).find('a').first().html();
var result = re[Symbol.split](skillCount);
var skill = result[0].trim().replace(/ /gi, '');
var count = result[result.length - 2].trim();
if(!skills[count]){
skills[count] = [];
@itsazzad
itsazzad / XEP-0167.md
Created Jul 16, 2017
XEP-0167: Jingle RTP Sessions
View XEP-0167.md
5. Negotiating a Jingle RTP Session 11.1 Responder is Busy 11.2 Jingle Audio via RTP, Negotiated with ICE-UDP 11.3 Jingle Audio via SRTP, Negotiated with ICE-UDP 11.4 Jingle Audio and Video via RTP, Negotiated with ICE-UDP
You can’t perform that action at this time.