This file contains 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 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; |
This file contains 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
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 |
This file contains 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
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. | |
------------------------------------------------------------------------------------------ |
This file contains 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
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() |
This file contains 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
/* ------------- | |
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 |
This file contains 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
// 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) |