Skip to content

Instantly share code, notes, and snippets.

@grateful-dev
grateful-dev / TL-WN722N_monitormode.sh
Last active March 29, 2022 20:35 — forked from lewixlabs/TL-WN722N_monitormode.sh
How to enable monitor mode for TP-LINK TL-WN722N V2/V3/Vx
# Credits: https://www.hackster.io/thatiotguy/enable-monitor-mode-in-tp-link-tl-wn722n-v2-v3-128fc6
# Tested on Kali Linux 2020.3
# Commands used to Setup the Adapter from aircrack repository
sudo apt update
sudo apt install bc -y
sudo rmmod r8188eu.ko
git clone https://github.com/aircrack-ng/rtl8188eus
cd rtl8188eus
sudo -i
echo "blacklist r8188eu" > "/etc/modprobe.d/realtek.conf"
@grateful-dev
grateful-dev / config
Created February 3, 2022 17:59 — forked from taoy/config
vcxsrv + i3 on WSL/WSL2 Debian
# .config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
@grateful-dev
grateful-dev / css-text-glitch-effect-clip-path-mix-blend-mode.markdown
Created January 2, 2022 22:10
CSS text glitch effect (clip-path & mix-blend-mode)

Keybase proof

I hereby claim:

  • I am grateful-dev on github.
  • I am gratefuldev (https://keybase.io/gratefuldev) on keybase.
  • I have a public key ASA-Vjmixr5UdUL438nml_JD-9CZpqm5BZB_jGKXpz8ZBwo

To claim this, I am signing this object:

@grateful-dev
grateful-dev / set_aws_profile.zsh
Created April 25, 2021 01:19
tiny aws cli zsh helpers
function set_aws_profile {
export AWS_PROFILE=$1
}
function _set_aws_profile {
set -A aws_profiles $(cat ~/.aws/config | grep "^\[" | cut -d "[" -f2 | cut -d "]" -f1)
compadd $aws_profiles
}
compdef _set_aws_profile set_aws_profile
@grateful-dev
grateful-dev / .zshrc-up_down_arrows_local_history.sh
Created August 16, 2019 18:44
zsh - set up/down arrows to show only local history
# Set up/down arrows to use local history
bindkey "${key[Up]}" up-line-or-local-history
bindkey "${key[Down]}" down-line-or-local-history
up-line-or-local-history() {
zle set-local-history 1
zle up-line-or-history
zle set-local-history 0
}
zle -N up-line-or-local-history