Files
logseq/journals/2023_05_25.md

13 KiB

  • 关于找工作排优先级 #工作
    •   生活 工作
      决定作用 城市 工作内容
      工作自由度 职业前景
      影响作用 薪水 行业
      职位
      薪水
    • 暂时待在哪里生活是我当前所希望的? 深圳。 最影响我工作幸福感的因素是什么? 自由度。 我有计划在通过下一份工作飞黄腾达吗? 没有,打工怎么可能飞黄腾达……
    • 工作自由度>城市 > 工作内容 = 薪水 > 职业前景 > 行业 > 职位
  • Windows快速切换代理 #windows
    • ElectricRCAircraftGuy/Windows_Proxy_Toggler: A clickable icon on your Windows desktop to toggle your proxy on and off. (github.com)
    • change toggle_proxy_on_off.vbs
      • ' 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
    • echo -e "[boot]\nsystemd=true" | sudo tee -a /etc/wsl.conf
      
  • 备份windows #windows
    • 安装软件
      • winget export
        • 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. 饮食多样化,以植物性食物为主,不要添加化学物质
      1. 质疑科学,不要相信快速、单一的解决方案
      1. 不要被食品标签或市场营销愚弄
      1. 要明白你在食物方面不是普通人
      1. 不要恪守食物的成规:要多样化和勇于尝试
      1. 尝试对吃饭的时间加以控制,尝试偶尔不吃早餐或正餐
      1. 食用真正的食物,而不是补充剂
      1. 避免食用含有超过10种添加成分的精加工食品
      1. 多食用可以改善肠道微生物多样性的食物
      1. 降低常规的血糖和血脂峰值
      1. 减少肉类和鱼类的消费,核实其可持续性
      1. 教育自己及下一代真正的食物的重要性
  • 我们为什么要睡觉