Skip to content

Instantly share code, notes, and snippets.

@Cat7373
Cat7373 / ex.sh
Created January 28, 2023 01:24
Mac fix zoom
killall Dock
killall Finder
@chenzhuoyu
chenzhuoyu / Schneider SPM & SPRM Series UPS Support for Synology DSM 7.md
Last active January 4, 2023 14:00
Schneider SPM & SPRM Series UPS Support for Synology DSM 7

Schneider SPM/SPRM Series UPS Support for Synology DSM 7

Step 1: Connect your UPS and NAS with USB cable

You should see a NEW serial port (like /dev/ttyUSB0) been added to /dev. Remember that for the later steps.

If not, please refer to this GitHub repo for building and installing the driver for CH341 USB to Serial Converter chips.

Step 2: Test the connection

With full reinstall (recommended)

  1. Boot into recovery using ⌘R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

  2. Initial installation will run for approximately 1 hour, and reboot once

  3. It will then show a remaining time of about 10-15 minutes

  4. When it reboots again, be sure to press ⌘R to boot into recovery and continue with Main procedure

@luminositystudio
luminositystudio / Disable Device Enrollment Program (DEP) notification on macOS BigSur and Monterey.md
Last active August 7, 2023 19:17
Disable Device Enrollment Program (DEP) notification on macOS BigSur and Monterey

Disable Device Enrollment Program (DEP) notification on macOS BigSur and Monterey

Requirements

  1. Restart in Recovery Mode

    Restart your Mac then hold down the Command & R keys together until you're in the Recovery Mode menu

  2. Click on Utilities then select: Startup Security Utility

@rudolfratusinski
rudolfratusinski / parallels_tools_ubuntu_new_kernel_fix.md
Last active November 23, 2022 20:01
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15

Preparation

  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

@iamhunter
iamhunter / ddclient.conf
Created October 24, 2016 16:45
DDClient configuration for CloudFlare DDNS
##
## Cloudflare (cloudflare.com)
##
daemon=1800
use=web, web=ipinfo.io/ip, web-skip='IP Address'
ssl=yes
protocol=cloudflare, \
server=www.cloudflare.com, \
login=*cloudflare-email* \
password=*cloudflare-global-api-key* \
@edokeh
edokeh / index.js
Last active May 7, 2024 12:31
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \