Skip to content

Instantly share code, notes, and snippets.

View compliment's full-sized avatar

nish compliment

View GitHub Profile
/* Basic C implementation of "wc -w" */
#include <ctype.h>
#include <stdio.h>
int exitstatus = 0;
void wc(char *filename) {
FILE *fp;
int ch;
@compliment
compliment / taboola-block.txt
Created November 8, 2019 23:09
Taboola blocklist.
0.0.0.0 imprlatbmp.taboola.com
0.0.0.0 api-s2s.taboola.com
0.0.0.0 wf.taboola.com
0.0.0.0 convlatbmp.taboola.com
0.0.0.0 15.taboola.com
0.0.0.0 vidstat.taboola.com
# Block Taboola ads
127.0.0.1 popup.taboola.com
127.0.0.1 www.popup.taboola.com
127.0.0.1 taboola.com
@compliment
compliment / url-list.lists
Created May 12, 2018 10:57
Tons of ads serving domains
##StevenBlack's list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
##MalwareDomains
https://mirror1.malwaredomains.com/files/justdomains
##Cameleon
http://sysctl.org/cameleon/hosts
##Zeustracker
This file has been truncated, but you can view the full file.
# Homepage: http://1hosts.cf
# Updated: 05 Mar 2018
# Blocked: 61,577 domains
# Size: 1.59 MB
# ------------------------------------------------------------------------
# Please forward any issues related to this file by email:
# badmojr@gmail.com
# CREDITS:-
admob.biz
admob.co.kr
admob.co.nz
admob.co.uk
admob.com
admob.de
admob.dk
admob.es
admob.fi
admob.fr
// HTTP-to-HTTPS redirector script
//
// WARNING: Enable *only* sites and pages you *know* work the same
// with or without SSL! Failure to comply *will* cause b0rkage.
// (Okay, if you know what you're doing, you also know this isn't
// necessarily true, but then this warning isn't for you anyway.)
//
// ==UserScript==
// @name HTTP-to-HTTPS redirector
// @namespace http://freso.dk/
#!/bin/bash
var=$(wget -O - "$1" | \
grep -o '<a id="downloadb" class="btn btn-default recover" target="_blank" href=['"'"'"][^"'"'"']*['"'"'"]')
if [[ "$1" == "https://www.2giga.link/"* ]];then
echo -e "Downloading"
aria2c -x 16 "$var"
else
echo -e "${PP}Wrong link${NC}"
#!/bin/bash
PP='\033[0;33m'
NC='\033[0m' # No Color
var=$(QT_QPA_PLATFORM=offscreen phantomjs "openload.js" $1)
if [[ "$1" == "https://openload.co/"* ]];then
aria2c -x 16 "$var"
else
echo -e "${PP}Wrong link${NC}"
fi
// C++ program to print DFS traversal for a given given graph
#include<iostream>
#include <list>
using namespace std;
class Graph
{
int V; // No. of vertices
list<int> *adj; // Pointer to an array containing adjacency lists
void DFSUtil(int v, bool visited[]); // A function used by DFS
// Program to print BFS traversal from a given source vertex. BFS(int s)
// traverses vertices reachable from s.
#include<iostream>
#include <list>
using namespace std;
// This class represents a directed graph using adjacency list representation
class Graph
{