Skip to content

Instantly share code, notes, and snippets.

View skmezanul's full-sized avatar

SK Mezanul Haque skmezanul

View GitHub Profile
@skmezanul
skmezanul / proxylist.hidemyass.com.scraper.js
Created May 23, 2017 15:01 — forked from squidfunk/proxylist.hidemyass.com.scraper.js
A web scraper to obtain lists of anonymous proxies for web scraping
/*
* Copyright (c) 2016 Martin Donath
*
* All rights reserved. No part of this computer program(s) may be used,
* reproduced, stored in any retrieval system, or transmitted, in any form or
* by any means, electronic, mechanical, photocopying, recording, or otherwise
* without prior written permission.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
@skmezanul
skmezanul / gist:4e11945657483f40e3e182d2cb8254b2
Created August 4, 2017 18:14 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@skmezanul
skmezanul / README.md
Created August 4, 2017 18:14 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@skmezanul
skmezanul / ps-checkout-shortcode.php
Created October 10, 2017 11:51 — forked from panoslyrakis/ps-checkout-shortcode.php
Provides a shortcode to add the Pro Sites checkout form in any page
<?php
/*
Plugin Name: Pro Sites - Checkout Shortcode
Plugin URI: https://premium.wpmudev.org/
Description: Provides a shortcode to add the Pro Sites checkout form in any page
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@skmezanul
skmezanul / youtube-dl.md
Last active December 14, 2017 15:43
Using youtube-dl to download courses from a famous online developer training site.

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my training site account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to the training site by signing up for free to Visual Studio Dev Essentials

Installation

@skmezanul
skmezanul / youtube-dl-download-training-site.md
Last active December 14, 2017 15:46 — forked from munim/youtube-dl-download-pluralsight.md
youtube-dl to download from a famous online developer training site

Download videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl \
@skmezanul
skmezanul / youtube-dl-download-videos.md
Last active January 11, 2021 22:04 — forked from ivanskodje/youtube-dl-download-pluralsight-videos.md
youtube-dl for downloading videos from a popular dev training site

Downloading Videos from the training site

Disclaimer

The training site do not permit users to download their videos.
If you are an user of the site you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

@skmezanul
skmezanul / find-base64-occurences
Created March 28, 2018 12:31 — forked from anotheremily/find-base64-occurences
hackers seem to like base64 encoding their php commands
#!/bin/bash
find . -name "*.php" -exec grep "base64" '{}' \; -print &> b64-detections.txt
find . -name "*.php" -exec grep "eval" '{}' \; -print &> eval-detections.txt
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
/* ======================================================
This script is NOT FULLY TESTED (not tested on Windows Server either)
USE AT YOUR OWN RISK - development environment Ubuntu Linux 14.04.3 LTS
The purpose of this script is for small websites and blogs
@skmezanul
skmezanul / apache_error_log_parser.sh
Created November 19, 2018 19:45 — forked from marcanuy/apache_error_log_parser.sh
Apache error log list ordered by most common errors
#!/bin/bash
sed 's^\[.*\]^^g' error.log | sed 's^\, referer: [^\n]*^^g' | sort | uniq -c | sort -n