Skip to content

Instantly share code, notes, and snippets.

@RobertYim
RobertYim / ACL4SSR_Node_List_Only.ini
Created April 27, 2024 01:10
ACL4SSR_Node_List_Only.ini
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则
;去广告:支持
;自动测速:支持
;微软分流:不支持
;苹果分流:不支持
;增强中国IP段:不支持
;增强国外GFW:不支持
@RobertYim
RobertYim / DEPSteps.md
Created April 19, 2024 14:51 — forked from c22dev/DEPSteps.md
Remove MDM & DEP from an Apple Sillicon Mac (Sonoma)

How to make an MDM Mac shine like it's brand new ?

Works, as of 14/04/2024, on macOS 14.4.1 and lower (prob higher but idk)

This was made for Apple Sillicon Macs.

Restore Process

You need another Mac for this.

If you don't have one and have recovery locked, it's not possible.

@RobertYim
RobertYim / 赠我一座黄金城 - 押沙龙
Last active June 26, 2021 04:07
赠我一座黄金城 天涯-押沙龙
八十年代初的时候,大家过的很清苦。没什么好吃的,也没什么好看的。白天看老师们带着菜色的橘子皮老脸,晚上搬凳子到邻居家看赵忠祥老师的《动物世界》。一天天就这么过去,也没觉得有什么不对头的地方。
老师告诉我们说,我们生活的很幸福。外国的小朋友就没我们这么幸运。他们在垃圾箱里翻东西吃,光着脚在街上卖火柴,非常可怜。我想:全世界这么多人,我怎么就这么幸运,出生在中国呢?
而且老师说,以后的生活会更好,我们会进入共产主义社会。到时候一切都是按需分配,想吃芝麻酱就分芝麻酱,想吃烧鸡就分烧鸡。老师流着口水在台上讲,我们流着口水在台下听。我又想:我又不那么幸运了。我要是再晚生些年就好了,一出生就能随便吃烧鸡。
当时流行一套书,叫《小灵通漫游未来》,书里面说,2000年的时候,实现了四个现代化,家里都使唤机器人,还能坐宇宙飞船飞往太空,住在火星别墅里。我有时候记不清四个现代化是在2000年实现,还是20000年。有一次觉得是20000年,用减法一减,发现离现在有一万多年,心头非常悲伤,觉得自己是挺不到那时候了。后来发现是2000年,离今天只有十几年,感觉就像在路上捡了一个大钱包。
这就是我对未来的憧憬。
我相信,今天非常美好。未来会更加美好。
我们还学过一首歌:“我们的祖国像花园,花园里花朵真鲜艳。和暖的阳光照耀着我们,每个人的脸上都笑开颜”。小学的时候常唱这歌。和我一起唱的小朋友们,后来有的去了外国,有的成家立业,有的在花园里走路时被打劫害死了,有的酗酒吸毒,还有的在坐牢。当年他们都唱过这首歌,和我一起。
那时,和暖的阳光照在我们脸上,我们相信现在,更相信未来。
我们相信成人为我们杜撰的黄金世界。
@RobertYim
RobertYim / set-up-chromium-keys.md
Created July 22, 2020 15:29 — forked from cvan/set-up-chromium-keys.md
Launch Chromium with API Keys on Mac OS X and Windows

Sometimes you need to use API Keys to use things like the Speech API. And then you Google a bit and follow all the instructions. But the Chromium Project's API Keys page does a not-so-great of explaining how to do this, so I will.

  1. Download Chromium.
  2. You'll notice a yellow disclaimer message appear as a doorhanger: Google API Keys are missing. Some functionality of Chromium will be disabled. Learn More.
  3. Clicking on that link takes you to the confusing API Keys docs page.
  4. If you aren't already, subscribe to the chromium-dev@chromium.org mailing list. (You can just subscribe to the list and choose to not receive any mail. FYI: the Chromium project restricts the APIs to those subscribed to that group - that is, Chromium devs.)
  5. Make sur
Boot to ISO
/Volumes/"Image Volume/Install macOS High Sierra.app"/Contents/Resources/startosinstall --volume the_target_volume --converttoapfs NO --agreetolicense --applicationpath /Volumes/"Image Volume/Install macOS High Sierra.app"
Change the_target_volume as appropriate for the actual name you decided to use for your macOS target volume. Hopefully it is obvious that the target volume must already be formatted as HFS+J.
https://www.tonymacx86.com/threads/guide-avoid-apfs-conversion-on-high-sierra-update-or-fresh-install.232855/
hdiutil create -srcdevice /dev/diskXsY -format ULFO /Volumes/ExternalDriveName/YourImageName.dmg
In the above, diskXsY is obtained from diskutil list when you find the APFS container disk or HFS disk identifier.
Then, use:
asr imagescan --source /Volumes/ExternalDriveName/YourImageName.dmg
After that runs, you can then connect the external drive to the new MBP, use its internet recovery and terminal and do:
@RobertYim
RobertYim / Create macOS Recovery Partition.sh
Last active August 31, 2018 17:39 — forked from davidjb/recovery.sh
Create macOS Sierra Recovery Partition Without Reinstalling
# Specify where to configure Recovery partition, or a disk image larger then 5GB
TARGET="/Volumes/Macintosh HD"
# Path to your macOS installer
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
# Remaining paths ahead are dependant on OS version
# This *should* support 10.9 and above but is only tested on 10.12
# Download the Recovery Disk image, as of version 10.13.6
curl -C - -O http://swcdn.apple.com/content/downloads/29/03/091-94326/45lbgwa82gbgt7zbgeqlaurw2t9zxl8ku7/RecoveryHDMetaDmg.pkg
@RobertYim
RobertYim / create-iso.sh
Last active January 13, 2019 09:47 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@RobertYim
RobertYim / highsierra_bootable.sh
Last active August 4, 2018 04:38 — forked from agentsim/highsierra_bootable.sh
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@RobertYim
RobertYim / nipponcolors.txt
Created June 16, 2018 16:01
All colors from nipponcolors.com
#DC9FB4 撫子,NADESHIKO
#E16B8C 紅梅,KOHBAI
#8E354A 蘇芳,SUOH
#F8C3CD 退紅,TAIKOH
#F4A7B9 一斥染,IKKONZOME
#64363C 桑染,KUWAZOME
#F596AA 桃,MOMO
#B5495B 苺,ICHIGO
#E87A90 薄紅,USUBENI
#D05A6E 今様,IMAYOH