Bootcamp Windows

Tools and tips for configuring Windows on a Mac (through bootcamp) Tools randyrants/sharpkeys. It lets you remap keys in Windows, e.g. swap CTRL and WIN. You can also use Microsoft Keyboard Layout Creator for remapping keys. However it’s little bit outdated(requires .Net 2.0), and does’t work well on Windows 10. How to enable .Net 2.0 on Windows 10? Open “Control Panel”, go to “Uninstall a Programs” then on the left panel, click “Turn Windows features on or off”; in the popup dialog, tick the ....

Coding

Tools Etsy Hound Lightning fast code searching made easy Google CodeSearch sharkdp/fd A simple, fast and user-friendly alternative to ‘find’ ruben2020/codequery A code-understanding, code-browsing or code-search tool. MaskRay/ccls. C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting cquery-project / cquery . C/C++ language server supporting multi-million line code base, powered by libclang. Emacs, Vim, VSCode, and others with language server protocol support. Cross references, completion, diagnostics, … IDEs eclipse CDT source insight vs community qt creator xcode Refs Going Beyond grep for Searching Source Code Regular Expression Matching with a Trigram Index or How Google Code Search Worked

Git

Tips shallow git submodules git submodule add --depth 1 -- repository path git submodule update --depth -- [<path>...] --depth option is valid for add and update commands. Create a ‘shallow’ clone with a history truncated to the specified number of revisions. For Git 2.9.0 and up, you can do this: git clone --depth=1 --recursive --shallow-submodules repo_url And git 2.10 Q3 2016 allows to record that with git config -f .gitmodules submodule....

Gnu

diffutils side-by-side diff diff -y --left-column --strip-trailing-cr file-a file-b sdiff is a shortcut of diff -y refs: https://unix.stackexchange.com/questions/79135/is-there-a-condensed-side-by-side-diff-format https://stackoverflow.com/questions/17195308/unix-diff-side-to-side-results

Idiomatic JavaScript

Expressions undefined or null // safely extract a propertiy value from an object, gets undefined if obj is not valid or obj has no propname let prop = obj && obj[propName] // call func on prop if func is valid, and use the result returned by func as the value. Otherwise just use prop as the value. let value = func ? func(prop) : prop Surprings! const const only makes the name of a variable stay constant, but not its value:...

Index

Topics Windows Bootcamp Windows Office macOS Vim VSCode Eclipse Netbeans Git External Links Scott Hanselman’s 2014 Ultimate Developer and Power Users Tool List for Windows

macOS

catalina xcrun: error: clang shows: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun fix it with: xcode-select --install Tools deluge, torrent client. qBittorrent, torrent client. FileMerge, macos builtin for file comparison Tips Make Finder Search in Folder Open the Finder Preference, switch to the Advanced tab, on the dropdown list named When performing a search, select Search the Current Folder. encrypt tar.gz # tar -czf - * | openssl enc -e -aes256 -out secured....

Math

Complex Number Freecomplexnumbers Books Online Calculus Made Easy An Infinite Descent into Pure Mathematics Finite mathematics and applied calculus Casts Socratica Socratica makes high-quality educational videos on math and science. New videos every week! We’re a couple of Caltech grads who believe you deserve better vi… https://www.youtube.com/channel/UCW6TXMZ5Pq6yL6_k5NZ2e0Q What is a Vector Space? (Abstract Algebra) 3Blue1Brown 3blue1brown, by Grant Sanderson, is some combination of math and entertainment, depending on your disposition....

NodeJS

Tips how config yarn use chinese taobao npm mirror npm config set registry https://registry.npm.taobao.org source: https://github.com/yarnpkg/yarn/issues/2411 how config yarn use chinese tencent npm mirror npm config set registry http://mirrors.cloud.tencent.com/npm/ Yarn global add on Windows Executables will be installed to %LOCALAPPDATA%\Yarn\bin Or you can specify a custom path: mkdir ~/yarn-global yarn config set prefix ~/yarn-global Where does Yarn add global binaries on Windows? unpack electron archive yarn global add asar npx asar extract app....

Office

Tips Change MS Office Theme To change the background color and design of all your Office programs, go to File > Account from any open Office program, and then click the drop down menu next to Office Theme. (Or, go to File > Options > General > Office Theme). source Change font style for +Headings and +Body The font style for +Headings and +Body comes from the theme of a document....

PowerShell

Inovke Internet Explorer $IE = New-Object -ComObject InternetExplorer.Application $IE.navigate2("www.bing.com") #$IE.visible=$true Controlling Internet Explorer object from PowerShell How to open URL through powershell Using Powershell to open internet explorer and login into sharepoint How to open Internet Explorer for the desktop from command line in Windows 8? USING IE AUTOMATION IN POWERSHELL TO SIMPLIFY BROWSER BASED TASKS many ways to do that Start-Process -Path "url" [System.Diagnostics.Process]::Start("url") (New-Object -Com Shell.Application).Open("url")

Shell

zsh git pull in all sub directories for d in */; do pushd $d; echo $d; git pull; popd; done (eval):1: _mv: function definition file not found rm -f ~/.zcompdump* exec zsh -l Zshでmvの補完をするとcommand not found: _mv clang find out default include path clang++ -Wp,-v -x c++ - -fsyntax-only < /dev/null soruce: Clang/GCC: find out default include path cmake How can I see the exact commands? cmake . make VERBOSE=1 source: Using CMake with GNU Make: How can I see the exact commands?...