Stolen from mbostok and improved upon
node cloneAllGists.js username token [outputDir]
| // Install the latest Xcode, with the Command Line Tools. | |
| // Install Homebrew | |
| // Install aircrack-ng: | |
| brew install aircrack-ng | |
| // Create the following symlink: | |
| sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport | |
| // Figure out which channel you need to sniff: | |
| sudo airport -s |
| ->Setting processData to false lets you prevent jQuery from automatically transforming the data into a query string. | |
| And Setting the contentType to false is imperative. | |
| Refference link: https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects | |
| //01// File Upload using FormData Object in Javascript | |
| Syntax: | |
| var formData = new FormData(); // Currently empty | |
| formData.append(name, value); // custom text field where key/value pair | |
| formData.append(name, value, filename); // Custom file uploading |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| # get total requests by status code | |
| awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | |
| # get top requesters by IP | |
| awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | awk -v OFS='\t' '{"host " $2 | getline ip; print $0, ip}' | |
| # get top requesters by user agent | |
| awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | |
| # get top requests by URL |
| // Node 8+ | |
| // -------------------------------------------------------------- | |
| // No external dependencies | |
| const { promisify } = require('util'); | |
| const { resolve } = require('path'); | |
| const fs = require('fs'); | |
| const readdir = promisify(fs.readdir); | |
| const stat = promisify(fs.stat); |
When you create a npm package, remember it might be used in a browser or a server, or even a command line utility… For each package you create, please pay attention at what it will be used for:
Gain adb root.
$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"
Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.
| @media only screen and (min-width: 768px) { | |
| .app-mail #app-navigation { | |
| min-width: 250px !important; | |
| } | |
| #mail-new-message-fixed, #app-navigation-accounts, .app-mail #app #app-navigation #app-settings #app-settings-header, .app-mail #app #app-navigation #app-settings #app-settings-content { | |
| width: 300px !important; | |
| } | |
| .app-mail #app-content { | |
| height: calc(100vh - 50px); | |
| display: flex; |