Bypassing Bot Detection

Bypass captcha during web scraping Text-based Captcha Image-based Captcha Bypassing CAPTCHAs with Headless Chrome using puppeteer Solving a Geetest Slider Captcha with Puppeteer Slide Captcha Icon Captcha requests with opencv 文字点选验证码的破解方法 selenium with service provider 1 2 3 4 5 img_elem = driver.find_element(By.CSS_SELECTOR, '') img_elem.screenshot('captcha.png') # 调用打码平台,如快识别、超

Angular

QuickStart Step 1. Set up the Development Environment 1 2 $ yaourt -S nodejs npm $ npm install -g @angular/cli Step 2. Create a new project 1 $ ng new my-app Step 3: Serve the application 1 2 $ cd my-app $ ng serve --open Step 4: Edit your first Angular component 1 2 3 4 # ./src/app/app.component.ts export class AppComponent { title = 'My First Angular App!'; } 1 2 3 4 5 6 # .

React Tutorial

Tutorials Let’s go through a series of steps to create a simple React web application. We’ll start from scratch and build up a basic application. Setting Up Environment Install Node.js and npm 1 $ sudo pacman -S nodejs Managing packages with npm 1 2 $ npm install packageName # installs the package in the current directory under node_modules $ npm -g install packageName # installs the package under /usr/lib/node_modules/npm 1 2 $ npm update packageName $ npm update -g packageName 1 2 $ npm uninstall packageName $ npm -g uninstall packageName 1 2 3 $ npm list --depth=0 $ npm -g list $ npm outdated 1 $ npm audit fix --force # To address all issues (including breaking changes) 1 $ npm start # Starts the development server.

Getting start with Django

First steps Requests and responses Models and the admin site Views and templates Forms and generic views Testing Static files Customizing the admin site Advanced Tutorials: How to write reusable apps | Writing your first patch for Django The model layer Models Generally, each model maps to a single database table. 1 2 3 4 from django.db import models class Person(models.Model): name = models.CharField(max_length=30) The name of the table, myapp_person, is automatically derived from the name of the app and the model class.

How to Organize Files, Social media, Email, and More For Maximum Productivity

Declutter documents Store and backup everything External hard drive Online syncing services: (e.g. Dropbox, Box, Google Drive, iCloud) Delete files you no longer want Organize a folder system 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 documents work bio (简历) projects events conferences technology clients personal career - All career development &

reminders

practice, practice and practice today and tomorrow Daily Schedule Get up review ever learned practice coding Go to bed Daily Task SICP STL Leetcode January February March April May June memo pek2 book list Effective C++ C++ primer 算法导论 SICP CSAPP TCP/IP卷一 体系结构量化方法 Leetcode刷题

SQL Tutorial

Lexical elements Literal Values String Literals Numeric Literals Numeric literals can be represented by simple values. Date and Time Literals Characters and date literals must be enclosed within single quotes. Hexadecimal Literals Bit-Value Literals Boolean Literals NULL Values Identifiers Identifiers must start with an alphabetic character. Keywords and Reserved Words Reserved words cannot be used as identifiers unless enclosed with double quotes. Statements may be split across lines, but keywords

Materials

Linux Linux Reference Books Michael Kerrisk, The Linux Programming Interface, No Starch Press, 2010. The essential Linux system programming guide by the maintainer of the Linux man pages. Clear, authoritative, and encyclopedic. Includes file I/O, processes, signals, time, threads, shared libraries, IPC, synchronization, and sockets. A great book. Online GDB Materials Beej’s Quick Guide to GDB (based on the very handy gdb -tui mode) Two-page x86-64 GDB cheat sheet (pdf, txt) Online C and Linux Materials CS:APP3e Unix FAQ Prof.

interview question

笔试:一道英文算法题,考单链表,30分钟 两个单链表逆序存了两个非负整数,将这两个数求和,和逆序存入另一个链表 addTwoNumbers(node *p1, node *p2) 两个有序链表的合并 多线程

learning path

English 电脑/手机换成英文系统,所有软件一律调成英文界面,不要用QQ,要用QQ International,不要用微信,要用WeChat 挂代理,远离

Git cheat sheet

Create Clone an existing repository 1 $ git clone ssh://user@domain.tld/repo.git Clone an existing repository and all its sub-modules recursively 1 $ git clone --recurse-submodules ssh://user@domain.tld/repo.git Create a new local repository 1 $ git init Configuration Set the name attached to all your commits 1 $ git config [--global] user.name <name> Set the email attached to all your commits 1 $ git config [--global] user.email <email> Set colorization of command line

Introducing Regular Expressions

Table A-2. Metacharacters in regular expressions Metacharacter Name Code Point Purpose . Full Stop U+002E Match any character \ Backslash U+005C Escape a character | Vertical Bar U+007C Alternation (or) ^ Circumflex U+005E Beginning of a line anchor $ Dollar Sign U+0024 End of a line anchor ? Question Mark U+003F Zero or one quantifier * Asterisk U+002A Zero or more quantifier + Plus Sign U+002B One or more quantifier

The Art of Debugging with GDB and DDD

预备知识 调试原则 确认的基本原则:逐个确认自己认为正确的事情所对应的代码确实是正确的。 从简单的工作开始调试 使用自顶向下的方法 编写模块化,较好的

vim tutorial

vimtutor To move the cursor, press the h, j, k, l keys as indicated. :q! exits the editor, DISCARDING any changes you have made. Press x to delete the character under the cursor. Use :wq to save a file and exit. Press i to insert text. Type a to insert text AFTER the cursor. Press A to append text. Type o to open a line below the cursor and place you in Insert mode.

Bash Reference Manual

Bash Reference Manual Basic Shell Features Shell Syntax Shell Operation Quoting Escape Character A non-quoted backslash \ is the Bash escape character. It preserves the literal value of the next character that follows, with the exception of \newline. Single Quotes Enclosing characters in single quotes (') preserves the literal value of each character within the quotes. A single quote may not occur between single quotes, even when preceded by a backslash.

UNIX / Linux Short Remedial

Shell and Basic Commands A shell is a program1 that inputs Unix commands from the keyboard and relays them to the Unix system for execution. Shells typically include various shortcuts for users to use in stating their commands, and also a programming feature, in which users can make programs out of sets of their commands. There are many different shells available for Unix systems. Here we focus on two of

C++ with Mysql

Connect, create table, and insert data 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 #include <stdlib.

thinking

所以的确,如果自认为码农,那SICP不妨抛弃。然而但凡对编程这件事本身有点点更高的追求,那么过程式编程(数据为中心),函数式编程(代码为中心

Divide and Conquer, Sorting and Searching, and Randomized Algorithms

Insertion Sort Insertion Sort: Pseudocode 1 2 3 4 5 6 7 8 9 10 INSERTION-SORT(A) for j = 2 to A.length key = A[j] // Insert A[j] into the sorted sequence A[1..j-1]. i = j - 1 while i > 0 and A[j] > key A[i+1] = A[i] i = i - 1 A[i + 1] = key Insertion Sort: Complexity analysis insertion sort has a best-case running time of $$\theta{(n)}$$ (pronounced “theta of n”).