Skip to content

Instantly share code, notes, and snippets.

View razhangwei's full-sized avatar

Wei Zhang razhangwei

  • Facebook
  • Bay Area
View GitHub Profile
@razhangwei
razhangwei / ha.md
Last active May 6, 2024 21:20
#TrueNAS Home Assistant
@razhangwei
razhangwei / smb.md
Last active May 6, 2024 04:33
#TrueNAS filesharing with smb
  1. Enable SMB service.
  2. Create group
  3. Create user
    • give sudo permission.
  4. Sharing -> SMB: add particular dataset
    • Purppose: default share parameters.
  5. Edit fileshare ACL
  • Apply user; apply group; apply recurrsively.
@razhangwei
razhangwei / wireguard.md
Last active May 6, 2024 03:38
#TrueNAS WireGuard #VPN
  1. Install wg-easy
  2. Configuration
    • hostname: the one from DDNS service.
    • password
    • Device name: the internet name from dahsboard -> network.
    • Client DNS Server
    • Web Port: 51821
    • Port for Client Configuration (UDP Port): 51820
    • Host Network: check
  3. Port forward on router
@razhangwei
razhangwei / apps.md
Created May 5, 2024 19:52
#TrueNAS Troubleshooting Docker Apps
After updating to version 23.10.2, if you encounter the issue described:
Navigate to the "Applications" tab in the settings.
Select "Unset pool".
Once you've done that, observe where it says "Initializing Apps Service"; it should stop.
Next, reselect the pool where your applications are located.
Now, observe that "Initializing Apps Service" should work correctly.
@razhangwei
razhangwei / xfinity.md
Last active March 10, 2024 18:20
Xfinity WiFi
  1. In the Notification center, there will be one about signing. Click and open the browser, enter the logins, you are good to go.
@razhangwei
razhangwei / Stremio
Created March 10, 2024 18:13
Stremio
# Stremio + Torrentio + Real Debrid
1. https://www.reddit.com/r/StremioAddons/comments/15agu2p/stremio_torrentio_debrid_a_howto_guide/
@razhangwei
razhangwei / self_control.md
Created January 18, 2024 04:53
SelfControl App

How to run it with command line:

# blocking for one hour; system password is still needed.
/Applications/SelfControl.app/Contents/MacOS/selfcontrol-cli start --blocklist ~/Dropbox\ \(Personal\)/Configurations/SelfControl/blocklist.selfcontrol --enddate $(date -u -v+1H +"%Y-%m-%dT%H:%M:%SZ")
@razhangwei
razhangwei / eudic.md
Last active January 16, 2024 05:52
Eudic

Install third-party dictionaries.

  1. Download Mdict files from https://mdx.mdict.org/.

    • mdx file is for dictionary itself.
    • mdd file is for pronounciation, which is usually optional.
  2. Import to app using WiFi transfer.

@razhangwei
razhangwei / codespaces.md
Created December 7, 2023 05:21
Codespaces #Github #VScode
  • Open a github repository: from github page.