Search all books which the title starts with "Survival".
========================================
Use normal query
28.2 ms
Use stored procedure
| # From <http://blogs.msdn.com/b/powershell/archive/2007/06/19/get-scriptdirectory.aspx> | |
| function Get-ScriptDirectory { | |
| $Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
| Split-Path $Invocation.MyCommand.Path | |
| } | |
| $dir = Get-ScriptDirectory | |
| $cmd = $dir + '\bin\mysqladmin.exe' | |
| & $cmd -u root shutdown |
| #! /bin/bash | |
| for isBold in {0..1}; do | |
| for background in {40..47}; do | |
| for foreground in {30..37}; do | |
| colorTag='\e['$isBold';'$foreground';'$background'm' | |
| colorResetTag='\e[0m' | |
| text=$colorTag'isBold:'$isBold' foreground:'$foreground' background:'$background$colorResetTag | |
| echo -e $text | |
| done |
| tail -200 catalina.out | ack-grep --flush --passthru --color --color-match=red "^.*ERROR.*" | ack-grep --flush --passthru --color --color-match=green "^.*DEBUG.*" |
This is a guide with screenshots to get the app ID, client ID, and client secret from Amazon Seller Central.
Go to Amazon Central and log in with your credentials.
| For Gist title |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <script type="text/javascript"> | |
| let element | |
| console.log(`Registering window error`) |
Chrome has the feature to automatically add search engine when it detects an input field on websites. After using Chrome months, it often resutls a bunch of search engines stayed in the settings. And the setting page does not provide a convinient way to remove them.
The editting the Web Data as SQLite file did not seem to work anymore. Chrome seems to revert all the changes when restart.
To make it even worse, it seems that the DOM tree is not accessable from the development console on the setting page, so even a bookmarklet could not work. Neighter does Chrome provide an API to access the search engines.

