This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| username: unbound | |
| directory: /var/unbound | |
| chroot: /var/unbound | |
| pidfile: /var/run/unbound.pid | |
| use-syslog: no | |
| num-threads: 4 | |
| num-queries-per-thread: 4096 | |
| so-reuseport: yes | |
| so-rcvbuf: 4m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server time.apple.com iburst | |
| server time.windows.com iburst | |
| server ntp.aliyun.com iburst | |
| server ntp.tencent.com iburst | |
| # Step (insted of slewing) the clock if wrong by 30s or more. | |
| # 2FA using TOTP usually requires clock to be accurate within 30s. | |
| makestep 1 3 | |
| logdir /opt/local/var/log/chrony |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // details: https://developer.apple.com/documentation/uikit/creating-a-custom-container-view-controller | |
| extension UIViewController { | |
| @objc(attachToParentViewController:layout:) | |
| public func attach(toParent parent: UIViewController?, layout: (@MainActor (UIView) -> Void)? = nil) { | |
| guard let parent else { | |
| return | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| term = xterm-256color | |
| bold-is-bright = true | |
| background-opacity = 0.98 | |
| background-blur-radius = 20 | |
| font-family = "mononoki" | |
| font-size = 11 | |
| adjust-cell-height = 30% | |
| cursor-click-to-move = true | |
| theme = dark:catppuccin-mocha,light:catppuccin-latte |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| for file in `pkgutil --files com.apple.pkg.RosettaUpdateAuto` | |
| do | |
| if [ -f "$file" ]; then | |
| rm -f "$file" | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # PROVIDE: v2fly | |
| # REQUIRE: LOGIN cleanvar | |
| # KEYWORD: shutdown | |
| . /etc/rc.subr | |
| name="v2fly" | |
| rcvar="v2fly_enable" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ObjectiveC | |
| @discardableResult | |
| public func synchronized<T>(_ lock: AnyObject, closure: () -> T) -> T { | |
| let lock_ = lock | |
| objc_sync_enter(lock_) | |
| defer { objc_sync_exit(lock_) } | |
| return closure() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run the `open default settings` command | |
| // from the command palette or from `Zed` application menu. | |
| { | |
| "theme": "Rosé Pine Moon", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: system-ui; | |
| } | |
| tt, code, kbd, samp, pre { | |
| font-family: ui-monospace, 'SF Mono', monospace; | |
| } | |
| code[class*="language-"], | |
| pre[class*="language-"] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import pandas as pd | |
| csv = pd.read_csv("codes.csv", engine = 'c') | |
| csv.to_html("codes.html", index = False, justify='left') | |
NewerOlder