You need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license acceptYou need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license accept| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
| # this command will return instances where the child_process module is loaded. | |
| # that module is generally a good signal that the application is shelling out | |
| egrep -r --exclude-dir "node_modules" --include "*.js" --exclude "*.min.*" -e "require(\s*)\((\s*)'child_process'(\s*))" . | |
| # this command will return instances where code is dynamically executed. | |
| egrep -r --exclude-dir "node_modules" --include "*.js" --exclude "*.min.*" -e "eval(\s*)\(" . | |
| # this command will check common dangerous functions and report when strings are arguments | |
| egrep -r --exclude-dir "node_modules" --include "*.js" --exclude "*.min.*" -e "(setInterval|setTimeout|new(\s*)Function)(\s*)\((\s*)\".*\"" . |
| cd $ANDROID_BUILD_TOP/packages/apps/Music | |
| mm |
| # Boyer Moore String Search implementation in Python | |
| # Ameer Ayoub <[email protected]> | |
| # Generate the Bad Character Skip List | |
| def generateBadCharShift(term): | |
| skipList = {} | |
| for i in range(0, len(term)-1): | |
| skipList[term[i]] = len(term)-i-1 | |
| return skipList |