The new way to configure default shell and argument commands in VSCode?

In the settings.json file we need to have the following “terminal.integrated.profiles.windows”: { “PowerShell”: { “source”: “PowerShell”, “icon”: “terminal-powershell” }, “Command Prompt”: { “path”: [ “${env:windir}\\Sysnative\\cmd.exe”, “${env:windir}\\System32\\cmd.exe” ], “args”: [], “icon”: “terminal-cmd” }, “Git Bash”: { “source”: “Git Bash” } }, And set the default terminal by adding “terminal.integrated.defaultProfile.windows”: “Command Prompt”, We can achieve this by … Read more

How do I view my environment variables?

Printing the Environment from the Shell As other answers have pointed out, one can use /usr/bin/env or /usr/bin/printenv from the command line to see what the environment is in the shell before starting Rails, or in a subshell after starting it. For example: rails s RETURN CTRL-Z env RETURN fg RETURN Displaying ENV from the … Read more

Scapy installation fails due to invalid token

Update: scapy-python3 is deprecated (2018) and will no longer be updated. scapy>=2.4.0 has merged python 3 compatibility. The most up-to-date installation method is now pip3 install scapy>=2.4.0 You may check the installation page in the documentation for other installation methods Original answer: Perhaps you are trying to install the package scapy for Python 2, but … Read more

Shortening my prompt in Zsh

Old question, I know, but as an alternative solution I just discovered powerlevel9k, an extension of agnoster (they appear practically identical bar a fair few tweaks), which has this functionality built in. Just set it as your zsh theme, then in .zshrc set POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 which ensures that only two directories are listed. Alternate options are … Read more

Search for files & file names using silver searcher

According to the man page of ag -G –file-search-regex PATTERN Only search files whose names match PATTERN. You can use the -G option to perform searches on files matching a pattern. So, to answer your question: root@apache107:~/rpm-4.12.0.1# ag -G cpio.c size rpm2cpio.c 21: off_t payload_size; 73: /* Retrieve payload size and compression type. */ 76: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)