Posts

Showing posts from April, 2020

《Rust具》grex:A command-line tool and library for generating regular expressions

《Rust具》 grex:A command-line tool and library for generating regular expressions install ( scoop | brew | cargo ) install grex use grex git Git >> ^[Gg]it$

《问》HowTo: Add Pause Prompt In a Shell Script ( bash pause command )

《问》 HowTo: Add Pause Prompt In a Shell Script ( bash pause command )

《问》:How to insert a new line in Linux shell script?

《问》 How to insert a new line in Linux shell script? echo " First Line" echo echo "Third Line "

《VS Code具》:Remote Development using SSH

《VS Code具》 Remote Development using SSH

《问》How to Install SQLite in Ubuntu?

《问》 How to Install SQLite in Ubuntu? install sudo apt-get update sudo apt-get install sqlite3 apt-get install libsqlite3-dev check sqlite3 --version include and library path usr/include/sqlite3.h usr/lib/x86_64-linux-gnu/libsqlite3.a

《VS Code Extension具》:Edit Shell Script

《VS Code具》 Edit Shell Script AutoComplate shell shell-format

《Rust具》monolith:CLI tool for saving complete web pages as a single HTML file

《Rust具》 monolith:CLI tool for saving complete web pages as a single HTML file

《问》How to Force Dark Mode on Every Website in GitHub

Image
《问》 How to Force Dark Mode on Every Website in GitHub

《问》How to Force Dark Mode on Every Website in Google Chrome

Image
《问》 How to Force Dark Mode on Every Website in Google Chrome

《问》In Mac OS, what is the keyboard shortcut to switch between windows of the same application?

Image
《问》 In Mac OS, what is the keyboard shortcut to switch between windows of the same application?

《问》How to create a shell script on Ubuntu/MacOS?

《问》 How to create a shell script on Ubuntu/MacOS?

《问》How to Find the version of an installed and uninstalled npm package

《问》 How to Find the version of an installed and uninstalled npm package

《具》rbenv:Groom your app’s Ruby environment on macOS

《具》 rbenv:Groom your app’s Ruby environment

《具》AsciiDoc: Text based document generation

《具》 AsciiDoc:Text based document generation

《问》How do we save terminal output to a file?

《问》 How do we save terminal output to a file? > to output standard info to a file, and remove all old output linux_command > standard_output . txt >> to append standard info to the end of the file linux_command > > standard_output . txt &> to output the standard info and error to a file, and remove all old output linux_command > standard_output_and_error . txt 2> to just output standard error, and remove all old output linux_command > standard_error . txt Others linux_command &>> output . txt linux_command 2>> output . txt   linux_command | tee -a output . txt References https://superuser.com/questions/1084287/save-terminal-output-command-on-osx  https://support.apple.com/guide/terminal/redirect-terminal-input-and-output-apd1dbe647b-7e11-49dc-aa76-89aa7e53ce36/mac https://askubuntu.com/questions/420981/how-do-i-save-terminal-output-to-a-file http://hints.macworld.com/article.php?story=2008072518010

《问》How to find out default include path in Clang/GCC

《问》 How to find out default include path in Clang/GCC clang++ -Wp ,-v -x c++ - -fsyntax-only < /dev/null Or : clang++ -E -x c++ - -v < /dev/null

《问》What's the difference of Environment variable and Shell variable?

《问》 What's the difference of Environment variable and Shell variable? An environment variable is a globally available, in a program and it child programs . A shell variable is only available in the current shell . Environment variables are NOT ONLY global/system-wide. Shell variables are private to the currently running shell, and they are NOT exported (passed on) to any child processes. Environment variables are exported to any child processes.

《问》How to list all shell variables names and their current values on MacOS/Ubuntu?

《问》 How to list all shell variables names and their current values on MacOS/Ubuntu? ( set - o posix ; set ) | less

《问》How to list all environment variables names and their values on MacOS/Ubuntu?

《问》 How to list all environment variables names and their values on MacOS/Ubuntu?

《问》What are the differences between more and less?

《问》 What are the differences between more and less? Similar to more , less command allows you to view the contents of a file and navigate through file. The main difference between more and less is that less command is faster because it does not load the entire file at once and allows navigation though file using page up / down keys.

《问》How to match repeated patterns?

《问》 How to match repeated patterns? Search Text #define SQLITE_VERSION "3.30.0" Expression Code REGEX "^#define SQLITE_VERSION *\"[0-9]+\\.[0-9]+\\.[0-9]+\"" REGEX "^#define SQLITE_VERSION * \" ([0-9]+)( \\ .[0-9]+)+ \" "

《具》markdown-exec:Execute commands in your Markdown and keep the output

《具》 markdown-exec:Execute commands in your Markdown and keep the output

《具》Pandoc:a universal document converter

《具》 Pandoc:a universal document converter

《问》How to install markdown on Ubuntu 20.04 (Focal Fossa)

《问》 How to install markdown on Ubuntu 20.04  (Focal Fossa) install sudo apt-get update sudo apt-get install markdown check markdown -v >> This is Markdown, version 1.0.1. man markdown

《问》How to create und remove a link to a directory

《问》 How to create and remove a link to a directory? create # Source Link ln - s /this /is /real /directory /file /this /is /virtual/link/file remove unlink /this /is /virtual/link/file Show ls -l /this /is /virtual/link/

《问》How to initialize an array in one step using Ruby?

 《问》 How to initialize an array in one step using Ruby? array = % w [ 1 2 3 ]

《问》Install Ruby On Rails on Ubuntu 20.04 Focal Fossa

《问》 Install Ruby On Rails on Ubuntu 20.04 Focal Fossa

《问》How to Install and Use FFmpeg on Ubuntu 20.04

《问》 How to Install and Use FFmpeg on Ubuntu 20.04

《问》How do I ensure Git doesn't ask me for my GitHub username and password?

Image
《问》 How do I ensure Git doesn't ask me for my GitHub username and password?

《具》A simple static password generator for rust

《具》 A simple static password generator for rust

《问》What's is the difference between “>” and “>>” in shell command?

《问》 What's is the difference between “>” and “>>” in shell command?

《问》How To Install "ninja-build" Package on Ubuntu 20.04

《问》 How To Install "ninja-build" Package on Ubuntu 20.04 Install Ninja sudo apt-get update -y sudo apt-get install -y ninja-build Check Ninja ninja --version 1.10.0

《问》How to add local video file in markDown md file

《问》  How to add local video file in markDown md file

《问》How to find my ip address using “ip” command?

《问》 How to find my ip address using “ip” command?

《问》How to Automatically answer 'Yes' when using apt-get install

《问》 How to Automatically answer 'Yes' when using apt-get install

《问》Howto Install Clang 10(include clang and clang++) on Ubuntu 20.04 LTS Focal Fossa

《问》 Howto Install Clang 10 on Ubuntu 20.04 LTS Focal Fossa

《视》C++ on modern CMake

《视》 C++ on modern CMake

《问》How to install G++ the C++ compiler and GCC the C compiler on Ubuntu 20.04 LTS Focal Fossa Linux

《问》 How to install G++ the C++ compiler and GCC the C compiler on Ubuntu 20.04 LTS Focal Fossa Linux

《讯》Eclipse Theia Offers a ‘True Open Source Alternative to Visual Studio Code’

《讯》 Eclipse Theia Offers a ‘True Open Source Alternative to Visual Studio Code’

《问》How To Upgrade Ubuntu 18.04 LTS Bionic Beaver To 20.04 LTS Focal Fossa

《问》 How To Upgrade Ubuntu 18.04 LTS Bionic Beaver To 20.04 LTS Focal Fossa

《问》How to change bash prompt on MacOS?

《问》 How to change bash prompt on MacOS?

《问》How to install the tool ''cmake_tool" on Ubuntu 20.04 LTS Focal Fossa?

《问》 How to install the tool ''cmake_tool" on Ubuntu 20.04 LTS Focal Fossa?

《问》How to persistent reverse SSH tunnel access with autossh

《问》 How to persistent reverse (NAT bypassing) SSH tunnel access with autossh

《学》Get things from one computer to another, safely.

《学》 工具:wormhole

《问》Can you tell me about Ubuntu Linux change hostname command?

《问》 Ubuntu Linux Change Hostname (computer name)