sudo apt update
sudo apt install software-properties-common -y
I’ve tried multiple solutions to browse SqlCipher Databases and the only one that seemed to work properly was [DB Sqlite Browser](DB Browser for SQLite (sqlitebrowser.org)) with easy GUI to get into the db. but … the overall experience of that application didn’t really satisfy me!
I knew DBeaver from long time ago, and i wondered if i can use it with SQLCipher, but it was surprisingly a shock that it doesn’t work directly, but with a couple of hours of researching and trying different methods i finally came up with a way to configure it Out-of-the box to make it work!
The reason I wrote this gist was to help others who have the same issue as it seems there is no guide to show how to do so!
» sudo systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
==============================================
Edit*
/etc/wsl.conf with any editor:| { | |
| schemes: [ | |
| { | |
| "name": "One Dark Pro", | |
| "foreground": "#abb2bf", | |
| "background": "#282c34", | |
| "cursorColor": "#abb2bf", | |
| "black": "#3f4451", | |
| "red": "#e05561", | |
| "green": "#8cc265", |
編輯 %UserProfile%\.wslconfig 檔案
Command Prompt
notepad %UserProfile%\.wslconfigWindows PowerShell
| /** | |
| * https://github.com/GoogleChromeLabs/comlink/blob/master/docs/examples/06-node-example/main.mjs | |
| * https://github.com/GoogleChromeLabs/comlink/issues/476#issuecomment-642765445 | |
| * esModuleInterop to true in tsconfig.json compilerOptions. | |
| */ | |
| import { Worker } from 'worker_threads'; | |
| import * as comlink from 'comlink'; | |
| import nodeEndpoint from 'comlink/dist/umd/node-adapter'; | |
| import { cpus } from 'os'; |
| import { getRemoteAPI } from "./my_worker"; | |
| async function init() { | |
| console.time("launch"); | |
| const api = getRemoteAPI(); | |
| console.timeLog("launch"); | |
| console.time("first result"); | |
| console.timeLog("first result", await api.doMath()); | |
| console.time("second result"); | |
| console.timeLog("second result", await api.doMath()); |
| var div = document.querySelectorAll('div'), | |
| result; | |
| for (var i = 0; i < div.length; i++) { | |
| result = div[i]; | |
| result.addEventListener('click', function() { | |
| alert(this.innerHTML); | |
| }); | |
| } |