dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search] | |
"BingSearchEnabled"=dword:00000000 | |
"AllowSearchToUseLocation"=dword:00000000 | |
"CortanaConsent"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] | |
"AllowCortana"=dword:00000000 | |
"DisableWebSearch"=dword:00000001 |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
###################################### | |
# | |
# Termux bash.bashrc | |
# by brainf+ck | |
# | |
# Last modified: 2022/06/30 | |
# | |
###################################### | |
#### Global ########################## |
# Run the last command as root | |
sudo !! | |
# Serve current directory tree at http://$HOSTNAME:8000/ | |
python -m SimpleHTTPServer | |
# Save a file you edited in vim without the needed permissions | |
:w !sudo tee % | |
# change to the previous working directory | |
cd - | |
# Runs previous command but replacing | |
^foo^bar |
######################################## | |
# | |
# BeginSystemConfig.ps1 | |
# iex ((New-Object System.Net.WebClient).DownloadString('https://bit.ly/2R7znLX')); | |
# | |
# Author: [email protected] | |
# | |
# 2019-11-25 Initial setup | |
# 2020-10-19 Latest Version | |
# |
- Turn the Ship Arround
- Project to Product
- Accelerate
- Dreaming in Code
- The Pragmatic Programmer
- Sprint
- Rework
- [The Unicorn Project](https://www.amazon.com/Unicorn-Project-Developers-Disruption-Thriving/dp/1942788762/ref=sr_1_1_sspa?keywords=The+Phoenix+Projec
I tried the WSL and it isn't quite seamless enough for me. I ran in to problems when editing in VSCode and having watchers on my files (ng serve
, dotnet watch run
, etc.). In addition, I kept running in to problems that only manifest themselves when running in WSL. For example, this issue with doing production builds and the terser plugin has made many a developer rage-quit on using WSL. Just figuring out that it was an issue with the WSL took a lot of time.
That terser plugin issue was never resolved and I ended up having to keep a git bash window open in addition to my WSL console window so I could do production builds. To make matters worse, my npm packages were platform-dependent so I couldn't use the same project folder. So, my procedure was: commit whatever changes to test branch, push to repo, git pull
on my "windows" project folder, and do a production build there
// IMPORTANT | |
using System.Text; | |
// This gist was created thanks to this comment from Alexander on StackOverflow: | |
// https://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net#comment86833005_34272324 | |
// This is a derivative work. The logic of this function comes from a switch statement found inside the | |
// Lucene.Net library. The documentation of the conversion of characters is quite impressive | |
// (thank you @NightOwl888 and @synhershko !!!): | |
// https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Analysis.Common/Analysis/Miscellaneous/ASCIIFoldingFilter.cs |