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
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;
});
Ping all AWS EC2 IPs from http://ec2-reachability.amazonaws.com/
@itsazzad
itsazzad / db-engine.js
Last active July 1, 2018 12:33
DB Engine
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 15:54 — forked from martinaglv/01.js
What do these functions do?
function whatDoesItDo(val){
return val ? 1 : 2;
}
@itsazzad
itsazzad / XEP-0167.md
Created July 16, 2017 12:53
XEP-0167: Jingle RTP Sessions
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
@itsazzad
itsazzad / tools.csv
Last active November 2, 2016 11:30
open source optimization tools
Ranking Urls
1 https://github.com/wg/wrk
2 https://github.com/rakyll/hey
3 https://github.com/tarekziade/boom
4 https://github.com/locustio/locust
5 https://github.com/JoeDog/siege
6 https://github.com/processone/tsung
7 https://github.com/goadapp/goad
8 https://github.com/apache/jmeter
9 https://github.com/shoreditch-ops/artillery
@itsazzad
itsazzad / missing
Created October 18, 2016 03:50
Get missing serial
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);
var items=[];
$('#target tr').each(function(){
items.push($(this).find('td:first font').text().split(" ")[0].split("-")[1]);
});
var count=0;
for(var i = 0; i < items.length; i++) {
if(items[i] - items[i+1] != 1) {
console.log(items[i+1]+'-'+items[i]);
count++;
@itsazzad
itsazzad / massInsertOrUpdate.php
Created May 2, 2016 10:51 — forked from RuGa/massInsertOrUpdate.php
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows
{
"Barisal": ["Barguna", "Barisal", "Bhola", "Jhalokati", "Patuakhali", "Pirojpur"],
"Chittagong":["Bandarban","Brahmanbaria", "Chandpur", "Chittagong", "Comilla", "Cox's Bazar","Feni", "Khagrachhari","Lakshmipur", "Noakhali", "Rangamati"],
"Dhaka": ["Dhaka", "Faridpur", "Gazipur", "Gopalganj", "Kishoreganj","Madaripur", "Manikganj","Munshiganj", "Narayanganj","Narsingdi","Rajbari","Shariatpur","Tangail"],
"Khulna": ["Bagerhat", "Chuadanga", "Jessore", "Jhenaidah", "Khulna", "Kushtia", "Magura", "Meherpur", "Narail", "Satkhira"],
"Mymensingh":["Jamalpur", "Mymensingh", "Netrakona","Sherpur"],
"Rajshahi" :["Bogra", "Chapainawabganj","Joypurhat","Naogaon", "Natore", "Pabna", "Rajshahi", "Sirajganj"],
"Rangpur" :["Dinajpur", "Gaibandha", "Kurigram", "Lalmonirhat","Nilphamari", "Panchagarh", "Rangpur", "Thakurgaon"],
"Sylhet" :["Habiganj", "Moulvibazar", "Sunamganj","Sylhet"]
}
@itsazzad
itsazzad / vagrants.txt
Last active November 21, 2017 09:46
List of some good vagrant systems
180 2,582 537
Varying Vagrant Vagrants is an evolving Vagrant configuration focused on WordPress development.
https://github.com/Varying-Vagrant-Vagrants/VVV
52 550 64
:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard
https://github.com/bradp/vv
12 126 20
Dashboard for Varying Vagrant Vagrants https://github.com/Varying-Vagrant-Vagrants/VVV
https://github.com/topdown/VVV-Dashboard