Skip to content

Instantly share code, notes, and snippets.

View OmkarKirpan's full-sized avatar

Omkar Kirpan OmkarKirpan

View GitHub Profile
OmkarKirpan /
Created May 18, 2017 18:24 — forked from worawit/
Eternalblue exploit for Windows 8/2012
from impacket import smb
from struct import pack
import os
import sys
import socket
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
OmkarKirpan / index.html
Created May 12, 2018 22:38 — forked from dugdaniels/index.html
An example of a browser-based input for Johnny-Five. Clicking the button in index.html turns on and off an LED installed on the Arduino board.
<script src=""></script>
<script src="/"></script>
$(document).ready(function() {
var socket = io.connect('http://localhost');
OmkarKirpan /
Created June 4, 2018 09:54 — forked from nickoala/
Use Python to send and receive emails

Use Python to:

  • send a plain text email
  • send an email with attachment
  • receive and filter emails according to some criteria
OmkarKirpan /
Created June 8, 2018 08:56 — forked from paulirish/
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.


Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
OmkarKirpan / gist:8b97f77f58fa1af00c2bb0dc74167f18
Created June 25, 2018 15:34 — forked from chrisjlee/gist:9299678
Translatez - translate z hack forces the browser to create a new layer and send rendering to the GPU. Helpful for items that move or animate. Source:
-webkit-transform: translatez(0);
-moz-transform: translatez(0);
-ms-transform: translatez(0);
-o-transform: translatez(0);
transform: translatez(0);
OmkarKirpan /
Created July 11, 2018 13:20 — forked from Bhavdip/
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

OmkarKirpan / country
Created September 4, 2018 07:57 — forked from psamaan/country
Countries Select Option List
<select name="Country">
<option value="" selected="selected">Select Country</option>
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
OmkarKirpan /
Created September 17, 2018 11:41 — forked from tomysmile/
Strong-PM install script for new Digital Ocean droplet Ubuntu 14.x w/ node x

install system pre-req

sudo apt-get install build-essential sqlite git

install strong-pm

sudo npm install -g strong-pm --unsafe-perm
OmkarKirpan /
Created November 26, 2018 09:45 — forked from xoseperez/
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)