Before shrinking a WSL2 virtual disk, you need to ensure that WSL2 is not running.
You can check if it’s running with the command wsl.exe --list --verbose in PowerShell:
PS C:\Users\valorin> wsl.exe --list --verbose
NAME STATE VERSIONbonus tip: for more darkness > https://darkreader.org/
| # This snippet checks your current directory for a .ruby-version file | |
| # and if it exists, it then checks to see if that version of ruby is | |
| # installed. If not, it will ask you if you want to install it. | |
| # | |
| # Add this snippet to $HOME/.zshrc | |
| # In zsh, the chpwd will run a command every time you change directories. | |
| function chpwd { | |
| # Check if a .ruby-version file exists | |
| if [[ -f "$PWD/.ruby-version" ]]; then |
| using UnityEditor; | |
| using UnityEngine; | |
| [CustomPropertyDrawer(typeof(SceneAssetPathField))] | |
| public class SceneAssetPathFieldPropertyDrawer : PropertyDrawer | |
| { | |
| public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
| { | |
| var oldPath = AssetDatabase.LoadAssetAtPath<SceneAsset>(property.stringValue); |
So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode!
Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.
But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |