Skip to content

Instantly share code, notes, and snippets.

View sayatul's full-sized avatar
👨‍💻

Atul Yadav sayatul

👨‍💻
View GitHub Profile
@sayatul
sayatul / vim-heroku.sh
Created October 25, 2019 05:49 — forked from dvdbng/vim-heroku.sh
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@sayatul
sayatul / flash_micropython_in_esp.md
Last active August 1, 2018 11:06
[Flash micropython in ESP] nodemcu, esp32

Flash micropython in ESP

esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash

ESP32

Micropython firmware for esp32 can be downloaded from here esptool.py --chip esp32 -p /dev/tty.SLAB_USBtoUART write_flash -z 0x1000 /file_path

ESP8266-12e

Micropython firmware for esp8266-12e can be downloaded from here

@sayatul
sayatul / git.md
Last active September 17, 2018 17:29
[Useful Git Commands] git
  • To delete all local branches that are already merged into the currently checked out branch: git branch -r --merged | egrep -v "(^\*|master|develop)" | sed 's/origin\///' | xargs -n 1 git push --delete origin

git branch --merged | egrep -v "(^\*|master|develop|dev)" | xargs git branch -d

@sayatul
sayatul / spoof_mac.md
Last active July 26, 2018 18:25
[Spoof MAC] tricks, kali, hacking

SpoofMAC - Spoof your MAC address

Install

  • pip install SpoofMAC
  • easy_install SpoofMAC

How to use

  • spoof-mac.py list
  • spoof-mac.py list --wifi
  • spoof-mac.py randomize wi-fi