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
| // import html2canvas from 'html2canvas'; | |
| // on button click | |
| document.querySelector("#btnShare").addEventListener("click", (e) => { | |
| // convert #preamble to canvas | |
| html2canvas(document.querySelector("#preamble"), { | |
| useCORS: true, | |
| allowTaint: true | |
| }).then(canvas => { |
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 Queue = require('bee-queue'); | |
| const options = { | |
| // isWorker: false, | |
| sendEvents: false, | |
| redis: { | |
| host: process.env.DB_HOST, | |
| port: process.env.DB_PORT, | |
| password: process.env.DB_PASS, | |
| }, |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Quick Start - Leaflet</title> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" /> |
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
| To change all the directories to 755 (-rwxr-xr-x): | |
| find . -type d -exec chmod 755 {} \; | |
| To change all the files to 644 (-rw-r--r--): | |
| find . -type f -exec chmod 644 {} \; |
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
| for dir in `ls`; do tar -cvzf ${dir}.tar.gz ${dir}; done |
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
| Problem: | |
| Pressing Tab Key used to crash Calibre. | |
| Solution: | |
| 1) sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()" | |
| 2) Try uninstalling qt-at-spi or setting an environment variable to disable ACCESSIBILITY. | |
| 3) http://calibre-ebook.com/download_linux | |
| * sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = import('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main()" -> WORKED | |
| 4) sudo add-apt-repository ppa:n-muench/calibre |
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
| From a terminal window: | |
| $ cd ~/.local/share/ | |
| To clear history: | |
| $ rm recently-used.xbel | |
| $ touch recently-used.xbel | |
| To disable history: | |
| $ sudo chattr +i recently-used.xbel |
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
| scp airtel@59.145.145.194:/home/airtel/data/airtel_archive.tar.gz . 2>&1 | |
| After entering password, press Ctrl+Z - process will be temporarily stopped. | |
| Then run this command: bg |