Skip to content

Instantly share code, notes, and snippets.

View zainulhasan's full-sized avatar
🏠
Working from home

Syed Zain Ul Hasan zainulhasan

🏠
Working from home
  • Bangkok, Thailand
View GitHub Profile
@zainulhasan
zainulhasan / jackett.md
Created February 6, 2022 17:50 — forked from wilmardo/jackett.md
Jackett add public indexers all in one go

Source: Jackett/Jackett#1576 (comment)

From the Jackett page, click the "add indexer" button so that the pop up window with the full list of indexers appears.

You'll then need to open your browser's development toolbar (in Chrome just hit F12) and go to the JavaScript Console and enter the following:

////hack to add all free indexers in Jackett
$(document).ready(function () {
	EnableAllUnconfiguredIndexersList();
@zainulhasan
zainulhasan / install_kali.sh
Last active January 19, 2021 12:06
Install kali linux on vps (Tested on Digitalocean)
#! /bin/bash
printf "Installing kali ... " >&2
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
apt-get -y update
apt-get -y --allow-unauthenticated install kali-archive-keyring
apt-get -y update
apt-get -y install kali-linux-everything
@zainulhasan
zainulhasan / get_birthday_days.php
Created August 9, 2019 12:52
Helper function to calculate renaming days in birthday. If birthday is already passed then function calculate days according to next coming year.
function get_birthday_days($birthday)
{
$cur_day = date('Y-m-d');
$cur_time_arr = explode('-', $cur_day);
$birthday_arr = explode('-', $birthday);
$days=0;
$cur_year_b_day = $cur_time_arr[0] . "-" . $birthday_arr[1] . "-" . $birthday_arr[2];
if (strtotime($cur_year_b_day) < time()) {
$cur_year_b_day = date('Y', strtotime('+1 year')) . "-" . $birthday_arr[1] . "-" . $birthday_arr[2];
/******************************
dlinkedListSorting.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
#include <stdlib.h>
using namespace std;
/******************************
DLinkedList.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
using namespace std;
/******************************
linearSearch.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
using namespace std;
int linear_search(int arr[],int n,int item){
/******************************
selectionSort.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
using namespace std;
int selection_sort(int arr[],int n){
for(int i=0;i<n;i++)
/******************************
sLinkedList.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
using namespace std;
//Node Structure
/******************************
PriorityQueue.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
#include <stdlib.h>
using namespace std;
/******************************
Dstack.cpp
Auther:Syed Zain Ul hasan
*****************************/
#include <iostream>
using namespace std;