Skip to content

Instantly share code, notes, and snippets.

View mohan-m-u's full-sized avatar
👁️
focusing...

mohan-m-u

👁️
focusing...
View GitHub Profile
@AnirudhKonduru
AnirudhKonduru / results_scraper.py
Last active January 8, 2020 11:35
Fetches multiple results from the RVCE results page.
#!/usr/bin/env python3
import requests as rq
from bs4 import BeautifulSoup as BS
import time
import sys
students_list = []
results_form_url="http://results.rvce.edu.in/"
@paduc
paduc / immutableMerge.js
Last active April 3, 2025 08:26
Immutable merge for multiple objects (using lodash)
var _ = require('lodash');
function immutableMerge(){
if(arguments.length === 0) return {};
if(arguments.length === 1) return arguments[0];
if(arguments.length === 2) {
return _.merge(_.cloneDeep(arguments[0]), arguments[1]);
}
else{
return immutableMerge(_.first(arguments), immutableMerge(_.rest(arguments)));
@lenciel
lenciel / Useful netcat examples on Linux.md
Last active February 16, 2024 04:12
Useful netcat examples on Linux

Often referred to as the "swiss army of knife" for TCP/IP networking, [Netcat][1] is an extremely versatile Linux utility that allows you to do anything under the sun using TCP/UDP sockets. It is one of the most favorite tools for system admins when they need to do networking related troubleshooting and experimentation.

In this tutorial, I am sharing a few useful netcat examples, although the sky is the limit when it comes to possible netcat use cases. If you are using netcat regularly, feel free to share your use case.

Note that when you are binding to well-known ports (0-1023) with nc, you need root privilege. Otherwise, run nc as a normal user.

1. Test if a particular TCP port of a remote host is open.

$ nc -vn 192.168.233.208 5000