Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am a12b on github.
  • I am 1username1 (https://keybase.io/1username1) on keybase.
  • I have a public key ASCsLJoWnnjuhT6rmy0TK0JT1TD_Q34KiWznLV_xQ3aDgAo

To claim this, I am signing this object:

@a12b
a12b / selenium-tor-proxy.py
Created October 27, 2019 15:14
Selenium Fake IP Address with Tor Network
#Install Tor Browser, open Tor Browser, run selenium with Chrome Browser and Tor Exit Node.
CHROME_GOOGLE = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = CHROME_GOOGLE
chrome_options.add_argument('--proxy-server=socks5://127.0.0.1:9150')
driver = webdriver.Chrome(DRIVER_PATH, chrome_options=chrome_options)
driver.get('https://check.torproject.org/')
@a12b
a12b / navigator.webdriver.py
Last active October 24, 2019 04:59
How detect selenium, remove navigator.webdriver flag
In browser console:
> navigator.webdriver
true
#Python change
chrome_options = webdriver.ChromeOptions()
chrome_options.add_experimental_option("excludeSwitches", ['enable-automation'])
After (in browser console):
> navigator.webdriver
@a12b
a12b / BAT token free
Created October 23, 2019 11:03
Nhận BAT miễn phí mỗi tháng
1. Cài đặt Brave trên máy tính: https://brave.com/hmx387
2. Sau khi cài đặt vào trang này đăng ký tài khoản (BAT sẽ chuyển vào trang này): https://uphold.com/
3. Nhớ KYC tài khoản Uphold mới nhận được nha (chỉ cần up 2 mặt cmnd, và chụp khuôn mặt).
4. Sau khi KYC được xác nhận.
5. Vào trang này để link tài khoản Brave với Uphold: chrome://rewards/
6. Nếu muốn lấy link ref thì vào trang này (sau khi Add Channel là có link ref): https://publishers.basicattentiontoken.org/
7. Lưu ý: Đừng gỡ app nha, sau hơn 30 ngày nó check còn tồn tại nó mới gửi BAT.
8. Có thể kiếm thêm BAT bằng cách lướt web, nó sẽ hiển thị quảng cáo (Việt Nam thì ít quảng cáo để xem nhá, t chưa thấy cái nào cả).
9. Có điện thoại thì lấy link ref mà cài vào điện thoại, và nhớ đừng gỡ app, mỗi tháng nhận 1$ - 5$ cho mỗi app ref.
@a12b
a12b / brave-rewards.md
Last active December 3, 2019 05:31
Get BAT Tokens when surf (web browser), blocks ads

Brave is a free and open-source web browser developed by Brave Software, Inc. based on the Chromium web browser. The browser blocks ads and website trackers. The company has proposed adopting a Get paid to surf business model in a future version of the browser.

Brave ref link: https://brave.com/hmx387