initial commit

This commit is contained in:
Lostecho
2024-09-02 11:53:36 +08:00
commit cbac0ab8dd
565 changed files with 17862 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
/logseq/bak/**
/logseq/.recycle/**
.stignore
/.idea/

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Lostecho
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

1
README.md Normal file
View File

@@ -0,0 +1 @@
# logseq

BIN
assets/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

View File

@@ -0,0 +1 @@
{:highlights [], :extra {:page 1}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View File

@@ -0,0 +1,166 @@
{:highlights [{:id #uuid "64f49004-fadc-4973-85ee-a71d9d513180",
:page 181,
:position {:bounding {:x1 298.5498962402344,
:y1 850.8000183105469,
:x2 480.39093017578125,
:y2 873.2000122070312,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 298.5498962402344,
:y1 850.8000183105469,
:x2 480.39093017578125,
:y2 873.2000122070312,
:width 734.9999999999999,
:height 1110}),
:page 181},
:content {:text " Stop Multitaskin"},
:properties {:color "yellow"}}
{:id #uuid "64f49028-1411-47c9-9b89-e54c80794161",
:page 183,
:position {:bounding {:x1 0,
:y1 -3.1999969482421875,
:x2 483.7294006347656,
:y2 777.5500183105469,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 0,
:y1 -3.1999969482421875,
:x2 0,
:y2 19.20000457763672,
:width 734.9999999999999,
:height 1110}
{:x1 0,
:y1 0,
:x2 0,
:y2 0,
:width 734.9999999999999,
:height 1110}
{:x1 264.8040466308594,
:y1 755.1499938964844,
:x2 483.7294006347656,
:y2 777.5500183105469,
:width 734.9999999999999,
:height 1110}),
:page 183},
:content {:text "Choose JOMO over FOMO"},
:properties {:color "yellow"}}
{:id #uuid "64f4903d-4904-4373-a066-bd21c9a2665c",
:page 188,
:position {:bounding {:x1 219.11924743652344,
:y1 392.6499938964844,
:x2 552.1365814208984,
:y2 415.0500183105469,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 219.11924743652344,
:y1 392.6499938964844,
:x2 552.1365814208984,
:y2 415.0500183105469,
:width 734.9999999999999,
:height 1110}),
:page 188},
:content {:text "Manage Your Social Identity Car"},
:properties {:color "yellow"}}
{:id #uuid "64f49055-d659-4647-9d6b-cf9eceab4e24",
:page 190,
:position {:bounding {:x1 288.79736328125,
:y1 730.9750366210938,
:x2 483.1675720214844,
:y2 753.3750305175781,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 288.79736328125,
:y1 730.9750366210938,
:x2 483.1675720214844,
:y2 753.3750305175781,
:width 734.9999999999999,
:height 1110}),
:page 190},
:content {:text "Think before You P"},
:properties {:color "yellow"}}
{:id #uuid "64f49063-dcf2-4a8b-b973-3ff07b25122c",
:page 193,
:position {:bounding {:x1 243.85398864746094,
:y1 295.9750061035156,
:x2 513.9772186279297,
:y2 318.3750305175781,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 243.85398864746094,
:y1 295.9750061035156,
:x2 513.9772186279297,
:y2 318.3750305175781,
:width 734.9999999999999,
:height 1110}),
:page 193},
:content {:text " Prioritize Strong Social"},
:properties {:color "yellow"}}
{:id #uuid "64f49092-c30c-4c5e-9e59-7933a09a23ef",
:page 197,
:position {:bounding {:x1 174.8625030517578,
:y1 851.8125,
:x2 597.7054595947266,
:y2 874.2124938964844,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 174.8625030517578,
:y1 851.8125,
:x2 597.7054595947266,
:y2 874.2124938964844,
:width 734.9999999999999,
:height 1110}),
:page 197},
:content {:text "Dont Fall for Compulsion Loops and Cl"},
:properties {:color "yellow"}}
{:id #uuid "64f490a3-0dd6-4041-999e-0a00119da169",
:page 202,
:position {:bounding {:x1 275.66998291015625,
:y1 344.3125,
:x2 491.7809753417969,
:y2 366.7125244140625,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 275.66998291015625,
:y1 344.3125,
:x2 491.7809753417969,
:y2 366.7125244140625,
:width 734.9999999999999,
:height 1110}),
:page 202},
:content {:text "Choose Paper over Pi"},
:properties {:color "yellow"}}
{:id #uuid "64f490ae-34ac-4295-8c12-9324e346012d",
:page 204,
:position {:bounding {:x1 244.2624969482422,
:y1 682.6500091552734,
:x2 513.4514617919922,
:y2 705.0500030517578,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 244.2624969482422,
:y1 682.6500091552734,
:x2 513.4514617919922,
:y2 705.0500030517578,
:width 734.9999999999999,
:height 1110}),
:page 204},
:content {:text "Dont Bring Technology t"},
:properties {:color "yellow"}}
{:id #uuid "64f490c5-f51b-411e-aab5-27a046da2090",
:page 213,
:position {:bounding {:x1 303.2818298339844,
:y1 585.9750137329102,
:x2 461.36376953125,
:y2 608.3750076293945,
:width 734.9999999999999,
:height 1110},
:rects ({:x1 303.2818298339844,
:y1 585.9750137329102,
:x2 461.36376953125,
:y2 608.3750076293945,
:width 734.9999999999999,
:height 1110}),
:page 213},
:content {:text " Take a Real Br"},
:properties {:color "yellow"}}],
:extra {:page 181}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

View File

@@ -0,0 +1,54 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name chatxxyyzz.lofe www.chatxxyyzz.life;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
ssl_client_certificate /etc/ssl/cloudflare.crt;
ssl_verify_client on;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
# intermediate configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
add_header Strict-Transport-Security "max-age=63072000" always;
server_name chatxxyyzz.life www.chatxxyyzz.life;
root /var/www/chatxxyyzz.life/html;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
location /pixel {
if ($http_upgrade != "websocket") {
return 404;
}
proxy_redirect off;
proxy_pass http://127.0.0.1:1234;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

View File

@@ -0,0 +1,48 @@
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "7966c347-b5f5-46a0-b999-ef2d76e1836a",
"alterId": 0
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings":{
"path":"/pixel"
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@@ -0,0 +1,83 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}

View File

@@ -0,0 +1 @@
{:highlights [], :extra {:page 1}}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

34
clean.py Normal file
View File

@@ -0,0 +1,34 @@
import os
import shutil
assets_dir = './assets'
journal_dir = './journals'
pages_dir = './pages'
to_delete_dir = './to_delete'
if not os.path.exists(to_delete_dir):
os.makedirs(to_delete_dir)
assets_files = os.listdir(assets_dir)
referenced_files = []
for dirname in [journal_dir, pages_dir]:
for filename in os.listdir(dirname):
if filename.endswith('.md'):
# 打开 .md 文件
with open(os.path.join(dirname, filename),encoding="utf-8") as f:
# 遍历文件中的每一行
for line in f:
# 遍历 assets 目录中的所有文件
for asset in assets_files:
# 如果这一行包含了 assets 目录中的某个文件的名称,则将这个文件的名称加入到 referenced_files 列表中
if asset in line:
referenced_files.append(asset)
for asset in assets_files:
if asset not in referenced_files and not asset.endswith(".edn"):
print(asset)
shutil.move(os.path.join(assets_dir, asset), to_delete_dir)

421
config.edn Normal file
View File

@@ -0,0 +1,421 @@
{:meta/version 1
;; Set the preferred format.
;; Available options:
;; - Markdown (default)
;; - Org
;; :preferred-format "Markdown"
;; Set the preferred workflow style.
;; Available options:
;; - :now for NOW/LATER style (default)
;; - :todo for TODO/DOING style
:preferred-workflow :now
;; Exclude directories/files.
;; Example usage:
;; :hidden ["/archived" "/test.md" "../assets/archived"]
:hidden []
;; Define the default journal page template.
;; Enter the template name between the quotes.
:default-templates
{:journals ""}
;; Set a custom date format for the journal page title.
;; Default value: "MMM do, yyyy"
;; e.g., "Jan 19th, 2038"
;; Example usage e.g., "Tue 19th, Jan 2038"
;; :journal/page-title-format "EEE do, MMM yyyy"
;; Specify the journal filename format using a valid date format string.
;; !Warning:
;; This configuration is not retroactive and affects only new journals.
;; To show old journal files in the app, manually rename the files in the
;; journal directory to match the new format.
;; Default value: "yyyy_MM_dd"
;; :journal/file-name-format "yyyy_MM_dd"
;; Enable tooltip preview on hover.
;; Default value: true
:ui/enable-tooltip? true
;; Display brackets [[]] around page references.
;; Default value: true
;; :ui/show-brackets? true
;; Display all lines of a block when referencing ((block)).
;; Default value: false
:ui/show-full-blocks? false
;; Automatically expand block references when zooming in.
;; Default value: true
:ui/auto-expand-block-refs? true
;; Enable Block timestamps.
;; Default value: false
:feature/enable-block-timestamps? false
;; Disable accent marks when searching.
;; After changing this setting, rebuild the search index by pressing (^C ^S).
;; Default value: true
:feature/enable-search-remove-accents? true
;; Enable journals.
;; Default value: true
;; :feature/enable-journals? true
;; Enable flashcards.
;; Default value: true
;; :feature/enable-flashcards? true
;; Enable whiteboards.
;; Default value: true
;; :feature/enable-whiteboards? true
;; Disable the journal's built-in 'Scheduled tasks and deadlines' query.
;; Default value: false
;; :feature/disable-scheduled-and-deadline-query? false
;; Specify the number of days displayed in the future for
;; the 'scheduled tasks and deadlines' query.
;; Example usage:
;; Display all scheduled and deadline blocks for the next 14 days:
;; :scheduled/future-days 14
;; Default value: 7
;; :scheduled/future-days 7
;; Specify the first day of the week.
;; Available options:
;; - integer from 0 to 6 (Monday to Sunday)
;; Default value: 6 (Sunday)
:start-of-week 6
;; Specify a custom CSS import.
;; This option takes precedence over the local `logseq/custom.css` file.
;; Example usage:
;; :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
;; Specify a custom JS import.
;; This option takes precedence over the local `logseq/custom.js` file.
;; Example usage:
;; :custom-js-url "https://cdn.logseq.com/custom.js"
;; Set a custom Arweave gateway
;; Default gateway: https://arweave.net
;; :arweave/gateway "https://arweave.net"
;; Set bullet indentation when exporting
;; Available options:
;; - `:eight-spaces` as eight spaces
;; - `:four-spaces` as four spaces
;; - `:two-spaces` as two spaces
;; - `:tab` as a tab character (default)
;; :export/bullet-indentation :tab
;; Publish all pages within the Graph
;; Regardless of whether individual pages have been marked as public.
;; Default value: false
;; :publishing/all-pages-public? false
;; Define the default home page and sidebar status.
;; If unspecified, the journal page will be loaded on startup and the right sidebar will stay hidden.
;; The `:page` value represents the name of the page displayed at startup.
;; Available options for `:sidebar` are:
;; - "Contents" to display the Contents page in the right sidebar.
;; - A specific page name to display in the right sidebar.
;; - An array of multiple pages, e.g., ["Contents" "Page A" "Page B"].
;; If `:sidebar` remains unset, the right sidebar will stay hidden.
;; Examples:
;; 1. Set "Changelog" as the home page and display "Contents" in the right sidebar:
;; :default-home {:page "Changelog", :sidebar "Contents"}
;; 2. Set "Jun 3rd, 2021" as the home page without the right sidebar:
;; :default-home {:page "Jun 3rd, 2021"}
;; 3. Set "home" as the home page and display multiple pages in the right sidebar:
;; :default-home {:page "home", :sidebar ["Page A" "Page B"]}
;; Set the default location for storing notes.
;; Default value: "pages"
;; :pages-directory "pages"
;; Set the default location for storing journals.
;; Default value: "journals"
;; :journals-directory "journals"
;; Set the default location for storing whiteboards.
;; Default value: "whiteboards"
;; :whiteboards-directory "whiteboards"
;; Enabling this option converts
;; [[Grant Ideas]] to [[file:./grant_ideas.org][Grant Ideas]] for org-mode.
;; For more information, visit https://github.com/logseq/logseq/issues/672
;; :org-mode/insert-file-link? false
;; Configure custom shortcuts.
;; Syntax:
;; 1. + indicates simultaneous key presses, e.g., `Ctrl+Shift+a`.
;; 2. A space between keys represents key chords, e.g., `t s` means
;; pressing `t` followed by `s`.
;; 3. mod refers to `Ctrl` for Windows/Linux and `Command` for Mac.
;; 4. Use false to disable a specific shortcut.
;; 5. You can define multiple bindings for a single action, e.g., ["ctrl+j" "down"].
;; The full list of configurable shortcuts is available at:
;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
;; Example:
;; :shortcuts
;; {:editor/new-block "enter"
;; :editor/new-line "shift+enter"
;; :editor/insert-link "mod+shift+k"
;; :editor/highlight false
;; :ui/toggle-settings "t s"
;; :editor/up ["ctrl+k" "up"]
;; :editor/down ["ctrl+j" "down"]
;; :editor/left ["ctrl+h" "left"]
;; :editor/right ["ctrl+l" "right"]}
:shortcuts {}
;; Configure the behavior of pressing Enter in document mode.
;; if set to true, pressing Enter will create a new block.
;; Default value: false
:shortcut/doc-mode-enter-for-new-block? false
;; Block content larger than `block/content-max-length` will not be searchable
;; or editable for performance.
;; Default value: 10000
:block/content-max-length 10000
;; Display command documentation on hover.
;; Default value: true
:ui/show-command-doc? true
;; Display empty bullet points.
;; Default value: false
:ui/show-empty-bullets? false
;; Pre-defined :view function to use with advanced queries.
:query/views
{:pprint
(fn [r] [:pre.code (pprint r)])}
;; Advanced queries `:result-transform` function.
;; Transform the query result before displaying it.
:query/result-transforms
{:sort-by-priority
(fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
;; The following queries will be displayed at the bottom of today's journal page.
;; The "NOW" query returns tasks with "NOW" or "DOING" status.
;; The "NEXT" query returns tasks with "NOW", "LATER", or "TODO" status.
:default-queries
{:journals
[{:title "🔨 NOW"
:query [:find (pull ?h [*])
:in $ ?start ?today
:where
[?h :block/marker ?marker]
[(contains? #{"NOW" "DOING"} ?marker)]
[?h :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(>= ?d ?start)]
[(<= ?d ?today)]]
:inputs [:14d :today]
:result-transform (fn [result]
(sort-by (fn [h]
(get h :block/priority "Z")) result))
:group-by-page? false
:collapsed? false}
{:title "📅 NEXT"
:query [:find (pull ?h [*])
:in $ ?start ?next
:where
[?h :block/marker ?marker]
[(contains? #{"NOW" "LATER" "TODO"} ?marker)]
[?h :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(> ?d ?start)]
[(< ?d ?next)]]
:inputs [:today :7d-after]
:group-by-page? false
:collapsed? false}]}
;; Add custom commands to the command palette
;; Example usage:
;; :commands
;; [
;; ["js" "Javascript"]
;; ["md" "Markdown"]
;; ]
:commands []
;; Enable collapsing blocks with titles but no children.
;; By default, only blocks with children can be collapsed.
;; Setting `:outliner/block-title-collapse-enabled?` to true allows collapsing
;; blocks with titles (multiple lines) and content. For example:
;; - block title
;; block content
;; Default value: false
:outliner/block-title-collapse-enabled? false
;; Macros replace texts and will make you more productive.
;; Example usage:
;; Change the :macros value below to:
;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
;; input "{{poem red,blue}}"
;; becomes
;; Rose is red, violet's blue. Life's ordered: Org assists you.
:macros {}
;; Configure the default expansion level for linked references.
;; For example, consider the following block hierarchy:
;; - a [[page]] (level 1)
;; - b (level 2)
;; - c (level 3)
;; - d (level 4)
;;
;; With the default value of level 2, block b will be collapsed.
;; If the level's value is set to 3, block c will be collapsed.
;; Default value: 2
:ref/default-open-blocks-level 2
;; Configure the threshold for linked references before collapsing.
;; Default value: 100
:ref/linked-references-collapsed-threshold 50
;; Graph view configuration.
;; Example usage:
;; :graph/settings
;; {:orphan-pages? true ; Default value: true
;; :builtin-pages? false ; Default value: false
;; :excluded-pages? false ; Default value: false
;; :journal? false} ; Default value: false
;; Graph view configuration.
;; Example usage:
;; :graph/forcesettings
;; {:link-dist 180 ; Default value: 180
;; :charge-strength -600 ; Default value: -600
;; :charge-range 600} ; Default value: 600
;; Favorites to list on the left sidebar
:favorites []
;; Set flashcards interval.
;; Expected value:
;; - Float between 0 and 1
;; higher values result in faster changes to the next review interval.
;; Default value: 0.5
;; :srs/learning-fraction 0.5
;; Set the initial interval after the first successful review of a card.
;; Default value: 4
;; :srs/initial-interval 4
;; Hide specific block properties.
;; Example usage:
;; :block-hidden-properties #{:public :icon}
;; Create a page for all properties.
;; Default value: true
:property-pages/enabled? true
;; Properties to exclude from having property pages
;; Example usage:
;; :property-pages/excludelist #{:duration :author}
;; By default, property value separated by commas will not be treated as
;; page references. You can add properties to enable it.
;; Example usage:
;; :property/separated-by-commas #{:alias :tags}
;; Properties that are ignored when parsing property values for references
;; Example usage:
;; :ignored-page-references-keywords #{:author :website}
;; logbook configuration.
;; :logbook/settings
;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
;; :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
;; :enabled-in-timestamped-blocks false ;don't display logbook at all
;; }
;; Mobile photo upload configuration.
;; :mobile/photo
;; {:allow-editing? true
;; :quality 80}
;; Mobile features options
;; Gestures
;; Example usage:
;; :mobile
;; {:gestures/disabled-in-block-with-tags ["kanban"]}
;; Extra CodeMirror options
;; See https://codemirror.net/5/doc/manual.html#config for possible options
;; Example usage:
;; :editor/extra-codemirror-options
;; {:lineWrapping false ; Default value: false
;; :lineNumbers true ; Default value: true
;; :readOnly false} ; Default value: false
;; Enable logical outdenting
;; Default value: false
;; :editor/logical-outdenting? false
;; Prefer pasting the file when text and a file are in the clipboard.
;; Default value: false
;; :editor/preferred-pasting-file? false
;; Quick capture templates for receiving content from other apps.
;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
;; by receiving content from other apps. Note: the {} cannot be omitted.
;; - {time}: capture time
;; - {date}: capture date using current date format, use `[[{date}]]` to get a page reference
;; - {text}: text that users selected before sharing.
;; - {url}: URL or assets path for media files stored in Logseq.
;; You can also reorder them or use only one or two of them in the template.
;; You can also insert or format any text in the template, as shown in the following examples.
;; :quick-capture-templates
;; {:text "[[quick capture]] **{time}**: {text} from {url}"
;; :media "[[quick capture]] **{time}**: {url}"}
;; Quick capture options.
;; - insert-today? Insert the capture at the end of today's journal page (boolean).
;; - redirect-page? Redirect to the quick capture page after capturing (boolean).
;; - default-page The default page to capture to if insert-today? is false (string).
;; :quick-capture-options
;; {:insert-today? false ;; Default value: true
;; :redirect-page? false ;; Default value: false
;; :default-page "quick capture"} ;; Default page: "quick capture"
;; File sync options
;; Ignore these files when syncing, regexp is supported.
;; :file-sync/ignore-files []
;; Configure the Enter key behavior for
;; context-aware editing with DWIM (Do What I Mean).
;; context-aware Enter key behavior implies that pressing Enter will
;; have different outcomes based on the context.
;; For instance, pressing Enter within a list generates a new list item,
;; whereas pressing Enter in a block reference opens the referenced block.
;; :dwim/settings
;; {:admonition&src? true ;; Default value: true
;; :markup? false ;; Default value: false
;; :block-ref? true ;; Default value: true
;; :page-ref? true ;; Default value: true
;; :properties? true ;; Default value: true
;; :list? false} ;; Default value: false
;; Configure the escaping method for special characters in page titles.
;; Warning:
;; This is a dangerous operation. To modify the setting,
;; access the 'Filename format' setting and follow the instructions.
;; Otherwise, You may need to manually rename all affected files and
;; re-index them on all clients after synchronization.
;; Incorrect handling may result in messy page titles.
;; Available options:
;; - :triple-lowbar (default)
;; ;use triple underscore `___` for slash `/` in page title
;; ;use Percent-encoding for other invalid characters
:file/name-format :triple-lowbar}

View File

@@ -0,0 +1,215 @@
{
"type": "excalidraw",
"version": 2,
"source": "file://",
"elements": [
{
"type": "rectangle",
"version": 212,
"versionNonce": 189355138,
"isDeleted": false,
"id": "dWmet8QIJL9sGQp4nayNk",
"fillStyle": "hachure",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"angle": 0,
"x": 76,
"y": 67,
"strokeColor": "#000000",
"backgroundColor": "transparent",
"width": 411,
"height": 341,
"seed": 2140713922,
"groupIds": [],
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1690850349200,
"link": null,
"locked": false
},
{
"type": "line",
"version": 128,
"versionNonce": 671460510,
"isDeleted": false,
"id": "Hz-OqsOqavvp_MEmAw9oM",
"fillStyle": "hachure",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"angle": 0,
"x": 75,
"y": 178,
"strokeColor": "#000000",
"backgroundColor": "transparent",
"width": 412,
"height": 0,
"seed": 1766504834,
"groupIds": [],
"frameId": null,
"roundness": {
"type": 2
},
"boundElements": [],
"updated": 1690850349200,
"link": null,
"locked": false,
"startBinding": null,
"endBinding": null,
"lastCommittedPoint": null,
"startArrowhead": null,
"endArrowhead": null,
"points": [
[
0,
0
],
[
412,
0
]
]
},
{
"type": "line",
"version": 71,
"versionNonce": 99578946,
"isDeleted": false,
"id": "WD15Zk6i7NkJmfbXJ4Pmg",
"fillStyle": "hachure",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"angle": 0,
"x": 74,
"y": 298,
"strokeColor": "#000000",
"backgroundColor": "transparent",
"width": 414,
"height": 0,
"seed": 1604346462,
"groupIds": [],
"frameId": null,
"roundness": {
"type": 2
},
"boundElements": [],
"updated": 1690850349200,
"link": null,
"locked": false,
"startBinding": null,
"endBinding": null,
"lastCommittedPoint": null,
"startArrowhead": null,
"endArrowhead": null,
"points": [
[
0,
0
],
[
414,
0
]
]
},
{
"type": "line",
"version": 54,
"versionNonce": 706898142,
"isDeleted": false,
"id": "bA_duLAZVdhCfS9MZpn75",
"fillStyle": "hachure",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"angle": 0,
"x": 220,
"y": 65,
"strokeColor": "#000000",
"backgroundColor": "transparent",
"width": 0,
"height": 340,
"seed": 849272350,
"groupIds": [],
"frameId": null,
"roundness": {
"type": 2
},
"boundElements": [],
"updated": 1690850349200,
"link": null,
"locked": false,
"startBinding": null,
"endBinding": null,
"lastCommittedPoint": null,
"startArrowhead": null,
"endArrowhead": null,
"points": [
[
0,
0
],
[
0,
340
]
]
},
{
"type": "line",
"version": 79,
"versionNonce": 1234846530,
"isDeleted": false,
"id": "dtbO5E_Tdx-jLnWekdS0l",
"fillStyle": "hachure",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"angle": 0,
"x": 353.24037880850324,
"y": 64.6731814469419,
"strokeColor": "#000000",
"backgroundColor": "transparent",
"width": 0,
"height": 341.85996429709047,
"seed": 3476254,
"groupIds": [],
"frameId": null,
"roundness": {
"type": 2
},
"boundElements": [],
"updated": 1690850349201,
"link": null,
"locked": false,
"startBinding": null,
"endBinding": null,
"lastCommittedPoint": null,
"startArrowhead": null,
"endArrowhead": null,
"points": [
[
0,
0
],
[
0,
341.85996429709047
]
]
}
],
"appState": {
"gridSize": null,
"viewBackgroundColor": "#FFF"
},
"files": {}
}

View File

@@ -0,0 +1,10 @@
{
"type": "excalidraw",
"version": 2,
"source": "https://logseq.com",
"elements": [],
"appState": {
"viewBackgroundColor": "#FFF",
"gridSize": null
}
}

18
journals/2023_02_26.md Normal file
View File

@@ -0,0 +1,18 @@
- ChromeOS Linux Software
- Obsidian
- Logseq
- Visual Studio Code
- QQ
- Wechat
- VIM
- Emacs
- Okular
- Discover
- Okular
- Deepin Terminal
- Kate
- Xmind
- neofetch
- [[daily clean routine]]
- [[cat repeat routine]]
- [[文件命名方案]]

17
journals/2023_02_27.md Normal file
View File

@@ -0,0 +1,17 @@
- 早晨要做第的事及其顺序
- 1. 蒸早餐 7:05
2. 上厕所 7:25
3. 洗脸 7:28
4. 刷牙 7:30
5. 装早餐 7:32
6. 换衣服 7:34
7. 梳头发 7:35
8. 整理包 7:36
9. 带手机及外套 7:37
10. 穿鞋 7:38
11. 出门 7:39
- 优化方案
collapsed:: true
- 晚上准备衣服袜子鞋子
- 在厕所洗脸刷牙
- 提前5分钟起床

1
journals/2023_02_28.md Normal file
View File

@@ -0,0 +1 @@
- [[如何减少焦虑]]

16
journals/2023_03_02.md Normal file
View File

@@ -0,0 +1,16 @@
- 年度重要的事情
- DONE [[准备提亲]]
:LOGBOOK:
CLOCK: [2023-05-25 Thu 17:24:36]--[2023-05-25 Thu 17:24:37] => 00:00:01
CLOCK: [2023-05-25 Thu 17:24:38]
:END:
- DONE [[准备求婚]]
SCHEDULED: <2023-06-24 Sat>
- DONE [[领结婚证]]
SCHEDULED: <2023-10-01 Sun 14:30>
- TODO [[准备结婚]]
SCHEDULED: <2024-01-01 Mon>
:LOGBOOK:
CLOCK: [2023-05-25 Thu 17:23:42]--[2023-05-25 Thu 17:23:43] => 00:00:01
CLOCK: [2023-05-25 Thu 17:23:46]--[2023-05-25 Thu 17:23:47] => 00:00:01
:END:

21
journals/2023_03_06.md Normal file
View File

@@ -0,0 +1,21 @@
- 日常学习流调整
- 目标
- 减少手机使用时间
- 不被手机吸引
- 资讯
- 加入稍后读统一阅读
- 通勤时间
- ~~学习多邻国~~
- 听定投课堂同时记笔记
- 看电子书
- 阅读
- 微信读书(epub document)
- playbook(epub document)
- adobe acrobat(pdf document)
- 短视频
- 无特殊情况一律不看
- 播客
- 洗澡
- 洗衣服
- 洗碗
- [[现阶段需要重点掌握的知识]]

1
journals/2023_03_17.md Normal file
View File

@@ -0,0 +1 @@
- [[原则]]

53
journals/2023_03_18.md Normal file
View File

@@ -0,0 +1,53 @@
- [[相约七年后]]
- chatgpt-web #chatgpt
- 地址
- [Chanzhaoyu/chatgpt-web: 用 Express 和 Vue3 搭建的 ChatGPT 演示网页 (github.com)](https://github.com/Chanzhaoyu/chatgpt-web)
- [chenzhaoyu94/chatgpt-web - Docker Image | Docker Hub](https://hub.docker.com/r/chenzhaoyu94/chatgpt-web)
- docker命令
- ```bash
docker run --name chatgpt-web-local-network -d -p 3002:3002 --env OPENAI_API_KEY=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 --env SOCKS_PROXY_HOST=192.168.31.40 --env SOCKS_PROXY_PORT=7891 --restart=always chenzhaoyu94/chatgpt-web
```
- alist #linux
- address
- https://alist.nn.ci/zh/
- https://hub.docker.com/r/xhofe/alist-aria2
- docker command
- ```bash
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist-aria2:latest
```
- password
- ```bash
docker exec -it alist ./alist admin
```
- Fcitx5 #ChromeOS
- 配置中文
- ```bash
sudo dpkg-reconfigure locales
```
- 安装中文字体
- ```bash
sudo apt install ttf-wqy-zenhei
```
- 安装fcitx5
- ```bash
sudo apt install --no-install-recommends fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-module-xorg kde-config-fcitx5 im-config
sudo apt install fcitx5-material-color fcitx5-rime
```
- 初始化
- ```bash
im-config
fcitx5-configtool
```
- 编辑 /etc/environment 并添加以下几行,然后重新登录[1]
- ```bash
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus
```
- 跑步机3200m #运动
- 乐刻健身房
- 预期难度:中等
- 感觉:稍稍累
-

13
journals/2023_03_19.md Normal file
View File

@@ -0,0 +1,13 @@
- 下载bilibili视频
- ```bash
# 安装
pip install you-get
# 查看格式信息
you-get --playlist -i https://www.bilibili.com/video/BV1EW411u7th/
# 批量 --playlist cookie cookie-editor导出Netscape格式
you-get --playlist --cookies=C:\Users\75254\cookie.txt --format=flv https://www.bilibili.com/video/BV1EW411u7th/
```
- 跑步机5x400m #运动
- 乐刻健身房
- 预期难度:中等
- 感觉:稍稍累

12
journals/2023_03_24.md Normal file
View File

@@ -0,0 +1,12 @@
- [[面试准备]]
- Crash Course study skills #学习
- Episode 1 : Taking Notes
- Episode 2 : Reading Assignments
- Episode 3 : Memory
- Episode 4 : Planning & Organization
- Episode 5 : Focus & Concentration
- Episode 6 : Procrastination
- Episode 7 : Studying for Exams
- Episode 8 : Test Anxiety
- Episode 9 : Papers & Essays
- Episode 10 : Exercise & Learning

12
journals/2023_03_25.md Normal file
View File

@@ -0,0 +1,12 @@
- dpkg install weixin error #linux
- https://askubuntu.com/questions/1241362/fix-package-post-installation-script-subprocess-returned-error-exit-status-10-fo
- ```zsh
sudo rm /var/lib/dpkg/info/libpaper1*
sudo dpkg --configure -D 777 libpaper1
sudo apt -f install
```
- ```zsh
sudo apt autoremove weixin
sudo dpkg -i weixin
```
- [[Java8实战]]

28
journals/2023_03_26.md Normal file
View File

@@ -0,0 +1,28 @@
- 解压7z文件 #linux
- ```zsh
sudo add-apt-repository universe
sudo apt update
sudo apt install p7zip-full p7zip-rar
# 解压
7z x myfiles.7z -r -o./
# 压缩
7z a -t7z -r myfiles.7z myfile/*
```
- 安装wps字体 #linux
- ```zsh
# 创建字体目录
mkdir /usr/share/fonts/wps_symbol_fonts/
# 复制字体
cp *.ttf /usr/share/fonts/wps_symbol_fonts/
cp *.TTF /usr/share/fonts/wps_symbol_fonts/
cp *.otf /usr/share/fonts/wps_symbol_fonts/
cp simsun.ttc /usr/share/fonts/wps_symbol_fonts/
# 权限及缓存
cd /usr/share/fonts/
chmod 755 wps_symbol_fonts/
cd /usr/share/fonts/wps_symbol_fonts/
chmod 644 *
mkfontscale
mkfontdir
fc-cache
```

4
journals/2023_03_31.md Normal file
View File

@@ -0,0 +1,4 @@
- fatal: .git/index: index file smaller than expected #git
git Index文件损坏
- 删除`.git/index`
- `git reset`

14
journals/2023_04_02.md Normal file
View File

@@ -0,0 +1,14 @@
- 安装zsh #linux
- ```zsh
yay -S zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cd ~/.oh-my-zsh/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions
vim ~/.zshrc
# plugins=( git sudo zsh-syntax-highlighting zsh-autosuggestions history-substring-search )
# DISABLE_UPDATE_PROMPT=true to .zshrc
omz update
```
- ((64844eb4-e9d1-4d00-9a5c-7227c805b39a))

17
journals/2023_04_06.md Normal file
View File

@@ -0,0 +1,17 @@
- sshd启动报错 #linux
- ```bash
$ wsl.exe--distribution Arch --user root --exec sh -c "which sshd"
/usr/sbin/sshd
$ wsl.exe--distribution Arch --user root --exec /usr/sbin/sshd -dD
debug1: sshd version OpenSSH_9.3 OpenSSL 3.0.8 7 Feb 2023
debug1: Unable to load host key: /etc/ssh/ssh_host_rsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
```
- 解决
- ```zsh
ssh-keygen -A
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
```

1
journals/2023_04_09.md Normal file
View File

@@ -0,0 +1 @@
- [[arch linux install]]

12
journals/2023_04_10.md Normal file
View File

@@ -0,0 +1,12 @@
- wsl更改默认用户 #linux
- ```
Arch.exe config --default-user 用户
```
- arch初始化密钥环 #linux
- ```
[user@PC-NAME]$ sudo pacman-key --init
[user@PC-NAME]$ sudo pacman-key --populate
[user@PC-NAME]$ sudo pacman -Syy archlinux-keyring
```

6
journals/2023_05_08.md Normal file
View File

@@ -0,0 +1,6 @@
- 合理的买菜顺序 #健康 #饮食
- ![20230508-095516.jpg](../assets/20230508-095516_1683511238127_0.jpg){:height 653, :width 494}
- 重要且紧急
- 水果蔬菜`深色蔬果`
- 营养需求大,能量配额少
- [[zsh配置文件]]

37
journals/2023_05_24.md Normal file
View File

@@ -0,0 +1,37 @@
- Launching the AppImage file
- > anytype for example
- move to /opt/bin/Anytype.AppImage
- change its permission `chmod u+x`
- Within the .AppImage directory create a temp directory and cd into it
- ````zsh
mkdir temp && cd temp
```
- Umpack the .AppImage
- ```zsh
../Anytype.AppImage --appimage-extract`
```
- Copy the icon to /usr/share/icons
- ```zsh
sudo cp ./squashfs-root/usr/share/icons/hicolor/0x0/apps/anytype2.png /usr/share/icons/Anytype.png
```
- Create /usr/share/applications/anytype.desktop(change the parameters to your linking)
- ```zsh
sudo vim /usr/share/applications/anytype.desktop
################################################
[Desktop Entry]
Name=Anytype
Comment=Digital brain
Exec=/opt/bin/Anytype.AppImage %U
Icon=/usr/share/icons/Anytype.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;
Name[en_US]=Anytype
```
- Delete the temp folder
- :LOGBOOK:
CLOCK: [2023-05-25 Thu 17:38:08]
CLOCK: [2023-05-25 Thu 17:38:09]--[2023-05-25 Thu 17:38:49] => 00:00:40
CLOCK: [2023-05-25 Thu 17:38:50]
:END:

229
journals/2023_05_25.md Normal file
View File

@@ -0,0 +1,229 @@
- 关于找工作排优先级 #工作
- |   | 生活 | 工作 |
| ---- | ---- | ---- |
| 决定作用 | 城市 | 工作内容 |
|| 工作自由度 | 职业前景 |
| 影响作用 | 薪水 | 行业 |
||| 职位 |
||| 薪水 |
- 暂时待在哪里生活是我当前所希望的?
深圳。
最影响我工作幸福感的因素是什么?
自由度。
我有计划在通过下一份工作飞黄腾达吗?
没有,打工怎么可能飞黄腾达……
- 工作自由度>城市 > 工作内容 = 薪水 > 职业前景 > 行业 > 职位
- Windows快速切换代理 #windows
- [ElectricRCAircraftGuy/Windows_Proxy_Toggler: A clickable icon on your Windows desktop to toggle your proxy on and off. (github.com)](https://github.com/ElectricRCAircraftGuy/Windows_Proxy_Toggler)
- change [toggle_proxy_on_off.vbs](https://github.com/ElectricRCAircraftGuy/Windows_Proxy_Toggler/blob/main/toggle_proxy_on_off.vbs)
- ``` vbscript
' This file is part of Windows_Proxy_Toggler: https://github.com/ElectricRCAircraftGuy/Windows_Proxy_Toggler
'
' Toggle your Proxy on and off via a clickable desktop shortcut/icon
' By Gabriel Staples, June 2017
' www.ElectricRCAircraftGuy.com
' See the README at the link above.
Option Explicit
'Variables & Constants:
Dim ProxySettings_path, VbsScript_filename, Desktop_path
VbsScript_filename = "toggle_proxy_on_off.vbs"
'sec; change this value to set how long the message box displays when you toggle the proxy setting
Const MESSAGE_BOX_TIMEOUT = 1
Const PROXY_OFF = 0
Dim WSHShell, proxyEnableVal, username
Set WSHShell = WScript.CreateObject("WScript.Shell")
'get the username string for use in path names, since trying to use the "%USERNAME%" variable
'directly in path names throws an error
username = WSHShell.ExpandEnvironmentStrings("%USERNAME%")
ProxySettings_path = createobject("Scripting.FileSystemObject").GetFolder(".").Path
Desktop_path = WSHShell.SpecialFolders("Desktop")
'Determine current proxy setting and toggle to opposite setting
proxyEnableVal = wshshell.regread("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable")
If proxyEnableVal = PROXY_OFF Then
TurnProxyOn
Else
TurnProxyOff
End If
'Subroutine to Toggle Proxy Setting to ON
Sub TurnProxyOn
'turn proxy on via a registry entry
WSHShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"
'create/update desktop shortcut
CreateOrUpdateDesktopShortcut("on")
'notify user via an auto-timed popup box
WSHShell.Popup "Internet proxy is now ON", MESSAGE_BOX_TIMEOUT, "Proxy Settings"
End Sub
'Subroutine to Toggle Proxy Setting to OFF
Sub TurnProxyOff
'turn proxy off via a registry entry
WSHShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"
'create/update desktop shortcut
CreateOrUpdateDesktopShortcut("off")
'notify user via an auto-timed popup box
WSHShell.Popup "Internet proxy is now OFF", MESSAGE_BOX_TIMEOUT, "Proxy Settings"
End Sub
'Subroutine to create or update a shortcut on the desktop
Sub CreateOrUpdateDesktopShortcut(onOrOff)
'create a shortcut
Dim shortcut, iconStr
Set shortcut = WSHShell.CreateShortcut(Desktop_path + "\Proxy On-Off.lnk")
'Set the target path (target file) to run when the shortcut is clicked
shortcut.TargetPath = ProxySettings_path + "\" + VbsScript_filename
'Set the working directory. This is necessary in case you ever make this shortcut call a batch
'(.bat) file, for instance, which in turn calls a .vbs script. In order to know where the .vbs
'script file/command is located, the shortcut must be operating in the working directory where
'the .vbs scripts are located. Otherwise, calls to the .vbs scripts from a .bat file this
'shortcut points to, for instance, won't work since their directories are not in the Windows
'%PATH% variable, and you'll get an error which states: "'name_of_vbs_script_file' is not
'recognized as an internal or external command, operable program or batch file."
shortcut.WorkingDirectory = ProxySettings_path
'Set the icon to associate with this shortcut
If onOrOff = "on" Then
iconStr = "on.ico"
ElseIf onOrOff = "off" Then
iconStr = "off.ico"
End If
shortcut.IconLocation = ProxySettings_path + "\icons\" + iconStr
'Save the shortcut
shortcut.Save
End Sub
```
- wsl 启用Systemd #linux
- ```zsh
echo -e "[boot]\nsystemd=true" | sudo tee -a /etc/wsl.conf
```
- 备份windows #windows
- 安装软件
- winget export
- ```shell
winget export -o backpack.json
无法从任何源获得已安装的程序包: Anytype 0.31.0
无法从任何源获得已安装的程序包: Energy Star X
无法从任何源获得已安装的程序包: Rufus
无法从任何源获得已安装的程序包: Motrix 1.8.19
无法从任何源获得已安装的程序包: Simplenote
无法从任何源获得已安装的程序包: TranslucentTB
无法从任何源获得已安装的程序包: Twinkle Tray
导出的包需要安装许可协议: Visual Studio Community 2022
无法从任何源获得已安装的程序包: WSATools
无法从任何源获得已安装的程序包: PDF Reader - View, Edit, Annotate
无法从任何源获得已安装的程序包: AFFiNE-canary
无法从任何源获得已安装的程序包: 英特尔® 显卡控制中心
无法从任何源获得已安装的程序包: Intel® NUC Software Studio
无法从任何源获得已安装的程序包: ThunderboltTM 控制中心
无法从任何源获得已安装的程序包: Ubuntu (Preview)
无法从任何源获得已安装的程序包: Filelight
导出的包需要安装许可协议: WPS Office (11.1.0.14309)
无法从任何源获得已安装的程序包: Microsoft Edge Update
无法从任何源获得已安装的程序包: Cortana
无法从任何源获得已安装的程序包: AV1 Video Extension
无法从任何源获得已安装的程序包: OpenCLTM 和 OpenGL® 兼容包
无法从任何源获得已安装的程序包: 应用安装程序
无法从任何源获得已安装的程序包: 游戏服务
无法从任何源获得已安装的程序包: 获取帮助
无法从任何源获得已安装的程序包: HEIF Image Extensions
无法从任何源获得已安装的程序包: 来自设备制造商的 HEVC 视频扩展
无法从任何源获得已安装的程序包: HEVC 视频扩展
无法从任何源获得已安装的程序包: English (United States) Local Experience Pack
无法从任何源获得已安装的程序包: 中文(简体)本地体验包
无法从任何源获得已安装的程序包: MPEG-2 视频扩展
无法从任何源获得已安装的程序包: Microsoft Edge
无法从任何源获得已安装的程序包: OneDrive
无法从任何源获得已安装的程序包: 画图
无法从任何源获得已安装的程序包: Microsoft 人脉
无法从任何源获得已安装的程序包: PowerToys ImageResizer Context Menu
无法从任何源获得已安装的程序包: PowerToys PowerRename Context Menu
无法从任何源获得已安装的程序包: Raw Image Extension
无法从任何源获得已安装的程序包: 截图工具
无法从任何源获得已安装的程序包: Windows 安全中心
无法从任何源获得已安装的程序包: Microsoft Store 体验主机
无法从任何源获得已安装的程序包: Sysinternals Suite
无法从任何源获得已安装的程序包: VP9 Video Extensions
无法从任何源获得已安装的程序包: Web 媒体扩展
无法从任何源获得已安装的程序包: Webp Image Extensions
无法从任何源获得已安装的程序包: Microsoft 照片
无法从任何源获得已安装的程序包: Windows 闹钟和时钟
无法从任何源获得已安装的程序包: Windows 计算器
无法从任何源获得已安装的程序包: Windows 相机
无法从任何源获得已安装的程序包: 反馈中心
无法从任何源获得已安装的程序包: Windows 地图
无法从任何源获得已安装的程序包: Windows 记事本
无法从任何源获得已安装的程序包: Windows 录音机
无法从任何源获得已安装的程序包: Microsoft Store
无法从任何源获得已安装的程序包: Windows Package Manager Source (winget)
无法从任何源获得已安装的程序包: Xbox Game Bar Plugin
无法从任何源获得已安装的程序包: Xbox Identity Provider
无法从任何源获得已安装的程序包: Xbox Game Speech Window
无法从任何源获得已安装的程序包: 手机连接
无法从任何源获得已安装的程序包: Windows 媒体播放器
无法从任何源获得已安装的程序包: 电影和电视
无法从任何源获得已安装的程序包: Windows Subsystem for AndroidTM
无法从任何源获得已安装的程序包: 适用于 Linux 的 Windows 子系统
无法从任何源获得已安装的程序包: Microsoft Teams
无法从任何源获得已安装的程序包: Windows Web Experience Pack
无法从任何源获得已安装的程序包: Python 3.11
无法从任何源获得已安装的程序包: Tencent QQMail Plugin
无法从任何源获得已安装的程序包: RaiDrive
无法从任何源获得已安装的程序包: Realtek Audio Control
无法从任何源获得已安装的程序包: SakuraFrp 启动器
无法从任何源获得已安装的程序包: Virtual Cottage
无法从任何源获得已安装的程序包: Wallpaper Engine:壁纸引擎
无法从任何源获得已安装的程序包: Cron 1.113.0
无法从任何源获得已安装的程序包: 亚马逊应用商店
无法从任何源获得已安装的程序包: 酷安
无法从任何源获得已安装的程序包: Neo Store
无法从任何源获得已安装的程序包: 微信读书
无法从任何源获得已安装的程序包: Visual Studio 生成工具 2022 (2)
无法从任何源获得已安装的程序包: 邮件和日历
无法从任何源获得已安装的程序包: 微信读书
无法从任何源获得已安装的程序包: ArchWSL
无法从任何源获得已安装的程序包: 英特尔(R) 无线 Bluetooth(R)
无法从任何源获得已安装的程序包: iCloud Outlook
无法从任何源获得已安装的程序包: Microsoft GameInput
无法从任何源获得已安装的程序包: vs_CoreEditorFonts
无法从任何源获得已安装的程序包: Intel(R) Computing Improvement Program
无法从任何源获得已安装的程序包: Windows Subsystem for Linux WSLg Preview
无法从任何源获得已安装的程序包: Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.36.32532
无法从任何源获得已安装的程序包: iPod Support
无法从任何源获得已安装的程序包: Bonjour
无法从任何源获得已安装的程序包: Realtek Card Reader
无法从任何源获得已安装的程序包: Microsoft Visual Studio Installer
无法从任何源获得已安装的程序包: Windows SDK AddOn
无法从任何源获得已安装的程序包: Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.36.32532
无法从任何源获得已安装的程序包: Microsoft .NET Framework 4.8.1 Targeting Pack
无法从任何源获得已安装的程序包: Intel(R) Serial IO
无法从任何源获得已安装的程序包: Microsoft .NET SDK 7.0.202 (x64) from Visual Studio
无法从任何源获得已安装的程序包: Microsoft .NET Framework 4.8.1 SDK
无法从任何源获得已安装的程序包: ITE CIR version 5.5.2.1
无法从任何源获得已安装的程序包: Apple Mobile Device Support
无法从任何源获得已安装的程序包: Cubox
无法从任何源获得已安装的程序包: Realtek Audio Driver
无法从任何源获得已安装的程序包: Windows Subsystem for Linux Update
无法从任何源获得已安装的程序包: SSD Utility
```
- wsl
- arch wsl
- wsa
- WSATool
- 饮食建议 #饮食
- 1. 饮食多样化,以植物性食物为主,不要添加化学物质
- 2. 质疑科学,不要相信快速、单一的解决方案
- 3. 不要被食品标签或市场营销愚弄
- 4. 要明白你在食物方面不是普通人
- 5. 不要恪守食物的成规:要多样化和勇于尝试
- 6. 尝试对吃饭的时间加以控制,尝试偶尔不吃早餐或正餐
- 7. 食用真正的食物,而不是补充剂
- 8. 避免食用含有超过10种添加成分的精加工食品
- 9. 多食用可以改善肠道微生物多样性的食物
- 10. 降低常规的血糖和血脂峰值
- 11. 减少肉类和鱼类的消费,核实其可持续性
- 12. 教育自己及下一代真正的食物的重要性
- [[我们为什么要睡觉]]

18
journals/2023_05_26.md Normal file
View File

@@ -0,0 +1,18 @@
- ffmpeg提取视频音频 #视频编辑 #ffmpeg
id:: 665c19a5-1025-4888-805a-b0db7cfd13f6
- ```bash
ffmpeg -i sample.mp4 -q:a 0 -map a sample.mp3
ffmpeg -i input.mp4 -vn -c:a copy output.aac
```
- whisper #AI
- 安装
```bash
pip install -U openai-whisper
winget install ffmpeg
pip install torch torchvision torchaudio
pip install setuptools-rust
```
- 使用
```bash
whisper .\test.mp3 --language Chinese --model large
```

6
journals/2023_05_27.md Normal file
View File

@@ -0,0 +1,6 @@
- 制作一个网页音频录制工具 #plan
- 网页音频录制功能
- 转文字
- 制作个人笔记软件 #plan
- obsidian改造
- MD模板

26
journals/2023_05_28.md Normal file
View File

@@ -0,0 +1,26 @@
- [[the craft of selfteaching]]
- [[囚徒健身]]
- # 成为overman #定投课堂
id:: 64af5451-66eb-4f17-b155-cfbeacfd7514
- https://xuexi-courses.firesbox.com/?utm_source=share#/7000102069/courses/7591
- spacex发射星舰爆炸
- 钢铁侠
- 幻想中的人superman
- muskdavinci
- overman
- 依然是人,突破了绝大数人不可以到达的极限
- 世间常有
- 只要一个正常人能够认真阅读100本好书就能成为
- 要求很低,但是绝大多数人做不到
- 买书,都读,不存在买了不读的书
- 只有一种方法,精读
- 聪明其实没啥用再聪明也比不过认真阅读100本书的人
- 再聪明靠自己琢磨局限太大
- 读论文,研究人员有顶级认知,顶级资源,多年成果
- AI社会学经济学资源差距智商无法弥补
- 政治力量的核心要素《政治秩序的起源》
- 暴力 --> 体力
- 智力
- 魅力
- 读书获得的认知 --> 人类精英留下的精华
- [[精读100本书]]

42
journals/2023_05_29.md Normal file
View File

@@ -0,0 +1,42 @@
- [[苏州杭州旅游]]
- briss #pdf编辑
- [Releases · mbaeuerle/Briss-2.0 (github.com)](https://github.com/mbaeuerle/Briss-2.0)\
- 分割pdf裁剪空白
- **briss**
添加pdf --> preview --> crop
- **mupdf**
`mutool poster -x 2 input.pdf output.pdf`
- pdftk #pdf编辑
- 合并pdf
- `sudo pacman -S pdftk`
- `pdftk *.pdf cat output merged.pdf`
- OCRmyPDF #pdf编辑
- OCR转换pdf文件
- `sudo pacman -S ocrmypdf tesseract-data-chi_sim tesseract-data-chi_tra tesseract-data-eng`
- ocrmypdf -l chi_sim+eng input.pdf output.pdf
- ImageMagick #pdf编辑
- 模拟扫描pdf
- `convert -density 150 input.pdf -colorspace gray +noise Gaussian -rotate -0.5 -depth 2 scanned.pdf`
- [Make a pdf look scanned using ImageMagick (github.com)](https://gist.github.com/andyrbell/25c8632e15d17c83a54602f6acde2724?permalink_comment_id=3206269)
- Ghostscript #pdf编辑
- 压缩pdf
- `sudo pacman -S ghostscript`
- `gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf`
- `sDEVICE=pdfwrite`设置输出设备为pdfwrite即写入到一个PDF文件你可以在终端中输入`gs -h` 查看所有支持的输出设备);
- `-dCompatibilityLevel=1.4` 设置输出 [PDF 版本](https://sspai.com/post/47092) 1.4
- `-dNOPAUSE` 参数表示页与页之间不暂停;
- `-dQUIET` 参数表示抑制标准输出中的注释信息;
- `-dBATCH`参数使Ghostscript在处理命令行上指定的所有文件后退出
- `-dPDFSETTINGS=/ebook`参数控制输出的PDF适用于电子书`/ebook`其分辨率限制在150 DPI这也是影响压缩比率的主要参数。其他一些[可选项](https://sspai.com/link?target=https%3A%2F%2Faskubuntu.com%2Fa%2F256449)包括:
- `/screen`:类似于 [Acrobat Distiller](https://sspai.com/link?target=https%3A%2F%2Fhelpx.adobe.com%2Facrobat%2Fusing%2Fcreating-pdfs-acrobat-distiller.html) (X版本之前)中的Screen Optimized设置分辨率为72 DPI
- `/printer`类似于Acrobat Distiller中的Print Optimized设置分辨率为300 DPI
- `/prepress`类似于Acrobat Distiller中的Prepress Optimized设置分辨率为300 DPI。
- `ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf`
- [ryanhanwu/How-To-Ask-Questions-The-Smart-Way: 本文原文由知名 Hacker Eric S. Raymond 所撰寫,教你如何正確的提出技術問題並獲得你滿意的答案。 (github.com)](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/tree/main)
- fast-syntax-highlighting #zsh配置文件
id:: 64844eb4-e9d1-4d00-9a5c-7227c805b39a
- ```
git clone https://github.com/z-shell/F-Sy-H.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
```
- add `F-Sy-H` to plugin list in `.zshrc` file

1
journals/2023_06_10.md Normal file
View File

@@ -0,0 +1 @@
- [[ADHD]] #注意力

1
journals/2023_06_12.md Normal file
View File

@@ -0,0 +1 @@
- [[什么是积极心理学]] #积极心理学

Some files were not shown because too many files have changed in this diff Show More