- display (list) all open TCP+UDP ports and grep for listening ones
sudo lsof -i -P | grep LISTENCOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME launchd 1 root 11u IPv6 0x26dd73cb700390df 0t0 TCP *:22 (LISTEN) ....
There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.
Anthropic's Claude Code CLI source code leaked onto GitHub recently. All of it. About 1,900 files and a lot of TypeScript.
I read through the key modules. What follows is a breakdown of the surprising parts: how the system actually works, where Anthropic made clever engineering choices, and where their approach diverges from OpenAI's Codex in ways you wouldn't guess from using either tool.
Here's what happens when you type a message into Claude Code:
These links were copied formerly from https://macadmins.software/.
All links on this gist point to Microsoft's official download on its Content Delivery Network (CDN).
| Package Release | CFBundle Identifier | Download |
|---|---|---|
| Microsoft 365 and Office 2024 (2021) Suite Installer (Word / Excel / PowerPoint / Outlook / OneNote / OneDrive / MAU) | N/A | https://go.microsoft.com/fwlink/?linkid=525133 |
| Microsoft 365 BusinessPro Suite Installer (Word / Excel / PowerPoint / Outlook / OneNote / OneDrive / Teams / Defender Shim / MAU) | N/A |
| import os | |
| import sys | |
| import time | |
| import winappdbg | |
| import traceback | |
| class MyEventHandler(winappdbg.EventHandler): | |
| last_alloc_memory = 0 |
| import zlib, sys | |
| def get_id(mac): | |
| mac = int(mac, 16).to_bytes(6, 'big') | |
| return checksum(mac, True) | |
| def checksum(input, compression=False): | |
| v3 = zlib.crc32(input, 0xDEADBEEF) | |
| v4 = zlib.crc32(input, v3) |
| # 注:fish v3.6.0+ abbr 不再设置为 Universal | |
| # 升级 fish 注意需清除 $__fish_config_dir/fish_variables (一般为 ~/.config/fish/fish_variables) 中旧的变量 | |
| # (MacOS) application | |
| abbr android 'open -a Android\ Studio' | |
| abbr anki 'open -a anki' | |
| abbr boop 'open -a boop' | |
| abbr ff 'open -a firefox' | |
| abbr filezilla 'open -a filezilla' | |
| abbr haroopad 'open -a haroopad' |
| # Path to Oh My Fish install. | |
| set -q XDG_DATA_HOME | |
| and set -gx OMF_PATH "$XDG_DATA_HOME/omf" | |
| or set -gx OMF_PATH "$HOME/.local/share/omf" | |
| # Customize Oh My Fish configuration path. | |
| #set -gx OMF_CONFIG /Users/laszlokarolyi/.config/omf | |
| # Reload user_abbreviations by executing: | |
| . ~/.config/fish/abbreviations/fish_user_abbreviations.fish |
| # Text editor | |
| abbr -a -g m micro | |
| alias hex='hx' | |
| abbr -a -g hx helix | |
| abbr -a -g v nvim | |
| export EDITOR=nvim | |
| export MANPAGER='nvim +Man!' | |
| export BROWSER=librewolf | |
| export NNN_PLUG='z:autojump;f:finder;o:fzopen;d:diffs' |
| Windows command | Unix command | Notes |
|---|---|---|
| set | env | Set on Windows prints a list of all environment variables. For individual environment variables, set is the same as echo $ on Unix. |
| set Path | export $PATH | Print the value of the environment variable using set in Windows. |
| set PROJ | -- | result: PROJ=c:\project |
| echo %PROJ% | echo $PROJ | result: c:\project |
|