Git untrack submodule from git status
When we have submodules in a git repo, even if we add the submodules' folders into the .gitignore
file, these submodules folders are still tracked from the git status
output.
When we have submodules in a git repo, even if we add the submodules' folders into the .gitignore
file, these submodules folders are still tracked from the git status
output.
__init__
fileWe're familiar to put a python file inside a folder, and create a __init__.py
file under the same folder, then we can easily import the file by import the folder, as the folder is transformed to a python module. But if we don't have the __init__.py, how can we import it?
One of the fastest way to convert Python json dict list to csv file with only 2 lines of code by pandas.
Select-String with color, make Select-String of Powershell to highlight the search pattern like grep in Unix.
As an ex-sysadmin, I'm in love with the Readline. In Powershell, we have its variation PSReadline. In Python REPL on Windows OS, I'll show you the PyReadline and the PtPython.
Do you want to preview Jekyll blog locally on Windows before publishing it to Internet? Many online tutorials about setting up Jekyll on Windows are out of date, I will show you in this post the 2018 version and with the Minimal Mistakes theme.
--%
)A friend of mine told me about the Powershell stop-parsing (--%) last year, he said the stop-parsing tells powershell to treat the remaining characters in the line as a literal, but I'd never known where to use it. Recently working on git ssh made it happened.
As like pypi for Python, npm for Node.js, we also have Powershell Gallery for Powershell to add some extra Powershell modules, and Nuget Gallery for Powershell to add some extra executables.
With Github pages, we can create our blogs in our own domain over HTTPS completely free. Of course you should pay for your domain name at the Registrar.