- curl, usb-modeswitch, grep, awk, sudo (not necessary, last step can fail safely)
- balong_flash in $PATH ( https://github.com/forth32/balongflash.git )
- atinout in $PATH ( https://github.com/beralt/atinout.git will work fine )
- 2 files we flash (core sw update version 22.x, WebUI installer), we use these (you can probably use different balong-compatible):
- core sw: "E3372sUpdate_22.298.03.02.965.BIN" / "E3372sUpdate_22.298.03.02.965.exe"
- webui: "Update_WEBUI_17.100.06.00.03_Hilink_V7R2_9x25_CPIO.exe"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "0": 48, | |
| "1": 49, | |
| "2": 50, | |
| "3": 51, | |
| "4": 52, | |
| "5": 53, | |
| "6": 54, | |
| "7": 55, | |
| "8": 56, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generateTypes(obj, name) { | |
| const parsed = Object.keys(obj).reduce((str, key) => { | |
| let type = Array.isArray(obj[key]) ? typeof obj[key][0] : typeof obj[key]; | |
| if (type === 'object') { | |
| type = key.charAt(0).toUpperCase() + key.slice(1, key.length - 1); | |
| } | |
| type = type === 'undefined' ? 'any' : type; | |
| type = isArray ? type + '[]' : type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const canIRun = navigator.mediaDevices.getDisplayMedia | |
| const takeScreenShot = async () => { | |
| const stream = await navigator.mediaDevices.getDisplayMedia({ | |
| video: { mediaSource: 'screen' }, | |
| }) | |
| // get correct video track | |
| const track = stream.getVideoTracks()[0] | |
| // init Image Capture and not Video stream | |
| const imageCapture = new ImageCapture(track) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "timezones": [ | |
| "America/Aruba" | |
| ], | |
| "latlng": [ | |
| 12.5, | |
| -69.96666666 | |
| ], | |
| "name": "Aruba", |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
querymutation
Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.gnu.org/licenses/gpl-3.0.en.html | |
| GNU GENERAL PUBLIC LICENSE v3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # keydown data from the web | |
| # http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes | |
| map = | |
| backspace: 8 | |
| tab: 9 | |
| enter: 13 | |
| shift: 16 | |
| ctrl: 17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- This is SQL query to extract AddressBook info from respective sqlite3 file from iOS backup. | |
| -- It has been tested only on my own backup, so, if anything is wrong, fork, edit, and stuff. | |
| -- | |
| -- # parse-manifest.py from http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup | |
| -- | |
| -- $ python ../parse-manifest.py | grep AddressBook.sqlitedb | |
| -- -rw-r--r-- 000001f5 000001f5 1654784 1312812502 1312812502 1287387943 (31bb7ba8914766d4ba40d6dfb6113c8b614be442)HomeDomain::Library/AddressBook/AddressBook.sqlitedb | |
| -- | |
| -- $ sqlite3 31bb7ba8914766d4ba40d6dfb6113c8b614be442 |