Ninja

https://github.com/ninja-build/ninja/ clean up build ninja -t clean show build targets ninja -t targets

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....

PlantUML

Sequence Diagram change the alignment for a ref box skinparam sequenceReferenceAlign left

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")

Python

Convert PDF to Text https://github.com/pdfminer/pdfminer.six Install Python 3.6 or newer. Install pip install pdfminer.six Use command-line interface to extract text from pdf: python pdf2txt.py samples/simple1.pdf

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?...

Sqlite

commands attach a database -- attach db from path_to_db ATTACHpath_to_dbASdbname;-- list databases .databaseset page size -- set default pagesize PRAGMApage_size=1024;-- set for a specific attached database PRAGMAdbname.page_size=1024;Utils LiteCli, A command line interface for SQLite with auto-completion and syntax highlighting. LiteCli is part of DBCLI DBeaver is a DB management tool. It has a free community edition. It comes with some Optional Extensions [ValentineStudio] [Navicat for SQLite] [DB Browser for SQLite] [SQLite/SQLServer Compact Toolbox] [DbVisualizer]

Ubuntu 18.04 LTS Bionic Beavor

tips packages can be found on https://launchpad.net/ubuntu tools Visual Studio Code You may want to go to File>Preference>Settings and in user settings and set “window.titleBarStyle”: “native”, [LXTerminal](the terminall app from LXDE, very lightweight) LLVM LLVM’s deb packages are available at https://apt.llvm.org/ Add llvm.list to /etc/apt/sources.list.d with following content: deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main If you encounter GPG error: http://apt.llvm.org/cosmic llvm-toolchain-cosmic-7 InRelease, import the key:...

Upgrade to Window 10

tips How To Enable Delete Confirmation Dialog In Windows 10/8.1 backup & restore chrome user data open "%LOCALAPPDATA%\Google\Chrome\User Data\, backup directory default resotre default backup & restore firefox user data open %APPDATA%\Mozilla\Firefox\Profiles\, backup directory *.default resotre previous content from *.default to new *.default shortcuts Win-x to open a system menu Win-i to open Settings In “Run” box, type cmd and press Ctrl+Shift+Enter to run it in Admin....

Vim

Tips You can get latest gvim build from vim-win32-installer Cheat Sheets Graphical cheatsheet Vim Cheat Sheat for Programmers by Michael Pohoreski Vim Visual Cheat Sheet By function: Vim cheatsheet Vim Cheat Sheet A Great Vim Cheat Sheet List 5 Best VIM Cheat Sheet Show recent files Vim keeps a list of recent files in .viminfo. Run :oldfiles to view the list. Run :browse oldfiles to select from the list by entering a number....

VisualStudio 2019

CMake Support CMake projects in Visual Studio 2016: CMake support in Visual Studio Extensions FileNesting, nesting file in SolutionExplorer Tips Visual Studio Tip #8: Adding existing files with Show All Files How To Create an Icon for Visual Studio with just MSPaint and Visual Studio Clear Nudget Cache dotnet nuget locals all --clear How to clear NuGet package cache using command line? Managing the global packages, cache, and temp folders NuGet frequently-asked questions Disable IntelliSense Disable or pause default IntelliSense for C/C++ Visual Studio: How to Turn Off Autocomplete Add VS2019 community command line prompt to Windows Terminal Add Developer Command Prompt for Visual Studio to Windows Terminal?...