1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| # | |
| # This is a yaml version of the stubby configuration file (it replaces the | |
| # json based stubby.conf file used in earlier versions of getdns/stubby). | |
| # | |
| # For more information see | |
| # https://dnsprivacy.org/wiki/display/DP/Configuring+Stubby | |
| # | |
| # This format does not fully support all yaml features - the restrictions are: | |
| # - the outer-most data structure must be a yaml mapping | |
| # - mapping keys must be yaml scalars |
| 1) Install cloudflared using homebrew: | |
| brew install cloudflare/cloudflare/cloudflared | |
| 2) Create /usr/local/etc/cloudflared/config.yaml, with the following content | |
| proxy-dns: true | |
| proxy-dns-upstream: | |
| - https://1.1.1.1/dns-query | |
| - https://1.0.0.1/dns-query |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
| import pprint | |
| import inspect | |
| pp = pprint.PrettyPrinter(depth=6) | |
| pp.pprint(inspect.getmembers(myObject)) |
Libuv and libev, two I/O libraries with similar names, recently had the privilege to use both libraries to write something. Now let's talk about my own subjective expression of common and different points.
The topic of high-performance network programming has been discussed. Asynchronous, asynchronous, or asynchronous. Whether it is epoll or kqueue, it is always indispensable to the asynchronous topic.
Libuv is asynchronous, and libev is synchronous multiplexing IO multiplexing.
Libev is a simple encapsulation of system I/O reuse. Basically, it solves the problem of different APIs between epoll and kqueuq. Ensure that programs written using livev's API can run on most *nix platforms. However, the disadvantages of libev are also obvious. Because it basically just encapsulates the Event Library, it is inconvenient to use. For example, accept(3) requires manual setnonblocking after connection. EAGAIN, EWOULDBLOCK, and EINTER need to be detected when reading from a socket. This is a
| # Configuring DNS-over-TLS on macOS | |
| # Worked on macOS 10.13.4 | |
| brew -v update | |
| brew -v doctor | |
| # Next two commands are optional | |
| sudo chown -R $(whoami) $(brew --prefix)/* | |
| echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile | |
| # Install DNS client | |
| brew install knot-resolver | |
| # Should be installed to something like: /usr/local/Cellar/knot-resolver/2.3.0/sbin/kresd |