Skip to content

Instantly share code, notes, and snippets.

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

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

@linyongfu2013
linyongfu2013 / getRangeMonthList.sql
Created December 16, 2021 08:09 — forked from IcedMango/getRangeMonthList.sql
sql function getRangeMonthList
CREATE FUNCTION getRangeMonthList(@beginDate VARCHAR(50), @endDate VARCHAR(50))
RETURNS @table TABLE
(
MonthList VARCHAR(20)
)
AS
BEGIN
WITH x AS
(
SELECT CAST(@beginDate AS DATE) [Month]
@linyongfu2013
linyongfu2013 / userAgent.md
Created June 22, 2018 09:29
各浏览器的UserAgent大全

webkit

userAgent.match(/WebKit\/([\d.]+)/)

android

  • 安卓通用版本: userAgent.match(/Silk-Accelerated/)
  • 安卓4.0版本,代号为ISC(冰激凌): userAgent.match(/(Android)\s4/)
  • 安卓特殊的版本kindle: userAgent.match(/(Android)\s+([\d.]+)/)

IOS