Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| const imageElements = document.querySelectorAll('.search-card-e-slider__img'); | |
| const companyElements = document.querySelectorAll('.search-card-e-company'); | |
| let csvContent = "data:text/csv;charset=utf-8,Image URL,Company Name,Company URL\n"; | |
| imageElements.forEach((img, index) => { | |
| const imgUrl = img.src.startsWith('//') ? 'https:' + img.src : img.src; | |
| const companyName = companyElements[index].textContent.trim(); | |
| const companyUrl = companyElements[index].href.startsWith('//') ? 'https:' + companyElements[index].href : companyElements[index].href; |
| site:*/sign-in | |
| site:*/account/login | |
| site:*/forum/ucp.php?mode=login | |
| inurl:memberlist.php?mode=viewprofile | |
| intitle:"EdgeOS" intext:"Please login" | |
| inurl:user_login.php | |
| intitle:"Web Management Login" | |
| site:*/users/login_form | |
| site:*/access/unauthenticated | |
| site:account.*.*/login |
| Explanations: | |
| cache: If you include other words in the query, Google will highlight those words within | |
| the cached document. For instance, [cache:www.google.com web] will show the cached | |
| content with the word “web” highlighted. This functionality is also accessible by | |
| clicking on the “Cached” link on Google’s main results page. The query [cache:] will | |
| show the version of the web page that Google has in its cache. For instance, | |
| [cache:www.google.com] will show Google’s cache of the Google homepage. Note there | |
| can be no space between the “cache:” and the web page url. | |
| ------------------------------------------------------------------------------------------ |
| let result = 'response json...' // api resonse ...etc | |
| let domElement = document.createElement('a') | |
| domElement.href = 'data:text/json,' + encodeURIComponent(JSON.stringify(result)) | |
| domElement.target = '_blank' | |
| domElement.download = 'response.json' | |
| domElement.click() |
| /* ------------- | |
| dump : export | |
| ------------- */ | |
| // schema + records | |
| mysqldump -u user -p database_name > database_name_`date +%Y%m%d-%H%M%S`.sql | |
| // schema | |
| mysqldump -u user -p -d database_name > database_name_`date +%Y%m%d-%H%M%S`.sql |
| // init | |
| let xhr = new XMLHttpRequest() | |
| let domain = 'https://read.amazon.com/' | |
| let items = [] | |
| let csvData = "" | |
| // function | |
| function getItemsList(paginationToken = null) { | |
| let url = domain + 'kindle-library/search?query=&libraryType=BOOKS' + ( paginationToken ? '&paginationToken=' + paginationToken : '' ) + '&sortType=recency&querySize=50' | |
| xhr.open('GET', url, false) |