macbook

Supercharge your Linux terminal experience

GOLAND problem for ARM

Unifi prometheus exporter

xattr -cr /Applications/GoLand.app Если вы получаете «приложение повреждено, переместите его в корзину».

Откройте терминал и запустите:

xattr -cr /Applications/GoLand.app

Application

alfred xtrafinder switchresx sfxcardstatus Little Snitch colorls (https://github.com/athityakumar/colorls#installation) tabset (https://www.npmjs.com/package/iterm2-tab-set) iterm2 (https://gist.github.com/kevin-smets/8568070) mountain (https://appgineers.de/mountain/index.html) ohmyzsh (https://github.com/ohmyzsh/ohmyzsh) nerd-fonts (http://web.bluecomtech.com/saltfactory/github.com/ryanoasis/nerd-fonts.html#font-installation) http://web.bluecomtech.com/saltfactory/github.com/ryanoasis/nerd-fonts.html#font-installation brew install homebrew/cask-fonts/font-hack-nerd-font https://steemit.com/code/@demwunz/how-to-get-a-customised-and-pretty-zsh-terminal-on-mac-osx

  • pandoc

  • xelatex (http://www.texts.io/support/0001/) (https://gist.github.com/peterhurford/75957ba9335e755013b87254ec85fab1)

  • qemu

  • fswatch

  • font-hack-nerd-font

  • libvirt

  • libxml2

  • mtools

PreviewYaml Itsycal Turbo Boost Switcher docker visual studio code sublime typora Microsoft Office SecureCRT

quicklook (https://github.com/sindresorhus/quick-look-plugins) (https://github.com/sbarex/SourceCodeSyntaxHighlight) omnigraffle

x11 x11quartz, alfred, brew, podman ...

SSH Tricks

DNS change from cli

How to Change DNS from Command Line of Mac OS X

Changing The Mac DNS via Terminal

Persistent route

Persistent Static Routes On OS X

defaults write http://com.apple.Finder AppleShowAllFiles true https://gist.github.com/jjnilton/add1eeeb3a9616f53e4c https://admins.su/kak-dobavit-postoyannye-staticheskie-marshruty-persistent-static-routes-v-mac-os-x/

X11 and xauth

Gilles Gouaillardet has the answer that solved this for me. Edit ~/.ssh/config to contain

Host * XAuthLocation /opt/X11/bin/xauth

Create centos bootable usb disk

Mac OS X tricks

peco, tig, todoist, pbcopy

Pandoc

Converting Markdown to Beautiful PDF with Pandoc Pandoc a universal document converter Official pygments tango espresso zenburn kate monochrome breezedark haddock

Отслеживание файлов и запуск программ

fswatch -e ".*" -i ".txt$" -0 ~/Dropbox/notabene | xargs -0 -n 1 -I {} ~/bin/fswatch-do.sh {}

fswatch -e ".*" -i "[^~].txt$" -0 ~/Dropbox/notabene | xargs -0 -n 1 -I {} ~/bin/fswatch-do.sh {}

Директория где хранятся файлы конфигурации sublime text 3

/Users/alex/Library/Application Support/Sublime Text 3/Packages/User/

{ "shell_cmd": "pandoc --pdf-engine=xelatex --lua-filter ~/bin/linebreaks.lua -V mainfont="Courier New" -V geometry:margin=1cm -f gfm -o "$file.pdf" "$file" && open -a Preview "$file.pdf" && mv ~/Dropbox/notabene/*.pdf ~/Dropbox/notabene/pdf/ ", "selector": "text.html.markdown", "path": "/usr/texbin:$PATH" }

Mac Automation Scripting Guide

Mac Automation Scripting Guide Official

The Window Group Upkeep Problem

AppleScript The Language of Automation

Forum applescripts

https://superuser.com/questions/195633/applescript-to-open-a-new-terminal-window-in-current-space

Smart folders

8 Smart Folders You Need on Your Mac And How to Set Them Up

The right and wrong way to set Python 3 as default on a Mac

Firefox – This address is restricted – Override Fix

Firefox – This address is restricted – Override Fix

LIsten ports

On macOS High Sierra and later, use this command:

lsof -nP -iTCP:$PORT | grep LISTEN or to just see just IPv4:

lsof -nP -i4TCP:$PORT | grep LISTEN

Catalina

read-only root

sudo mount -uw /

Quicklook plugins

QuickLook Plugins List

quick-look-plugins

Brew

python switch

If existing symlinks belong to python 3.7 you should unlink them: brew unlink python

Basically all you need to do: brew link --force [email protected]

OR force the link and overwrite all conflicting files: brew link --force --overwrite [email protected]

OR if needed list all files that would be deleted: brew link --overwrite --dry-run [email protected]

Install colorls

install tabset

iTerm2

~/Library/Preferences/com.googlecode.iterm2.plist

Usefull commands

Problems

problem python setup.py egg_info did not run successfully.

brew install pkg-config update pip3, setuptools

networksetup -listallnetworkservices

networksetup -getinfo Wi-Fi

sudo networksetup -setadditionalroutes Wi-Fi 192.168.0.0 255.255.0.0 192.168.180.4

networksetup -getadditionalroutes Wi-Fi

Last updated