NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| /* | |
| How To: | |
| 1. Find your firefox profile folder : https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data | |
| 2. create a "chrome" folder if it doesn't exist | |
| 3. Paste content of this gist in a "userChrome.css" file | |
| 4. Go to about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true | |
| 5. set browser.tabs.tabmanager.enabled to false (to hide the "tab search" button) | |
| 5. Restart Firefox | |
| Don't hesitate to say if there are bugs, I only tested this for my workflow : I don't use tabs |
| import wifi | |
| import socket | |
| import ure | |
| import ubinascii | |
| import pyb | |
| import uhashlib | |
| uid = str(ubinascii.hexlify(uhashlib.sha256(pyb.unique_id()).digest()), 'ascii') | |
| HOST="irc.freenode.net" | |
| PORT=6667 |
| // This is an example of using elastic's BulkProcessor with Elasticsearch. | |
| // | |
| // See https://github.com/olivere/elastic and | |
| // and https://github.com/olivere/elastic/wiki/BulkProcessor | |
| // for more details. | |
| /* | |
| * This example illustrates a simple process that performs bulk processing | |
| * with Elasticsearch using the BulkProcessor in elastic. | |
| * |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].