Skip to content

Instantly share code, notes, and snippets.

View LanYunDev's full-sized avatar

LanYunDev

View GitHub Profile
@LanYunDev
LanYunDev / README.md
Created October 31, 2024 12:16 — forked from DewaldDeJager/README.md
Easy GitHub workflow for keeping a fork in sync with upstream

Sync Fork

This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml.

It runs daily to sync the default branch and can be triggered manually for any branch.

@LanYunDev
LanYunDev / Launchctl_Unload-10.14.sh
Created October 29, 2024 01:35 — forked from sentient06/Launchctl_Unload-10.14.sh
A Quick Little Script to Force Disable Certain LaunchDaemons in macOS
#!/bin/bash
# I have managed to map out some undesirable daemons and agents. Most of these
# can be disabled without too much consequence.
## Daemons
# com.apple.analyticsd - Anonymized application analytics daemon
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon
# com.apple.backupd - Apple TimeMachine service
@LanYunDev
LanYunDev / cleanup.sh
Created October 29, 2024 00:59 — forked from sycomix/cleanup.sh
fixes crap os err macos
This is a copy from another gist
https://raw.githubusercontent.com/Wyvern/macos/master/macOS
does crash crapos err macos 11 atr this time i am testing and fixing as i go.
so far fixes apps that wont bloody install
(thanks apple for telling me what i can and can't run on my GD machine that cost as much as a used car)
@LanYunDev
LanYunDev / setup_webdav.md
Last active September 25, 2024 02:51 — forked from namuan/setup_webdav.md
Setting up WebDAV server on Mac

Make sure that Mac Firewall allows incoming connection

cd <dir>
# Start WebDAV server
sudo wfsctl start
# Check status
sudo wfsctl status
# Share current directory
sudo wfsctl share $PWD
@LanYunDev
LanYunDev / sysctl.conf
Last active October 28, 2024 09:47 — forked from voluntas/sysctl.conf
安全🔐 高性能 的 Sysctl 配置
### 内核调整 ###
# 增加文件句柄和索引节点缓存的大小
fs.file-max = 2097152
# 减少交换
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 25
@LanYunDev
LanYunDev / .Cloud.md
Created August 17, 2022 03:17 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合