Skip to content

Instantly share code, notes, and snippets.

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

Jeeva whoisjeeva

🏠
Working from home
View GitHub Profile
@whoisjeeva
whoisjeeva / add.js
Last active June 18, 2022 03:48
Floating Point Addition in JavaScript
/* helper method */
const __addDecs = (dec1, dec2) => {
let rem = 0
let out = []
for (let i = dec1.length-1; i >= 0; i--) {
let sum = (parseInt(dec1[i]) + parseInt(dec2[i]) + rem).toString()
if (sum.length > 1) {
out.push(sum[sum.length - 1])
rem = parseInt(sum[0])
@whoisjeeva
whoisjeeva / recon.sh
Created January 20, 2021 15:28
Simple HTTP recon scanner script
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: ./recon.sh <IP>"
exit 1
fi
printf "\n----- NMAP -----\n\n" > results
@whoisjeeva
whoisjeeva / socks5.py
Created January 15, 2021 11:47
Socks5 proxy server in Python
import socket
import threading
import select
SOCKS_VERSION = 5
class Proxy:
@whoisjeeva
whoisjeeva / box-shadow.html
Last active August 29, 2015 14:26 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;