- during installation, set config to enabled
- edit policy, add your user on Local Comp Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Create symbolic links
- enable Windows Developer mode to bypass UAC requirement
- Search > For developer settings > Dev mode
| msys2 vs msys vs msysgit | |
| MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin | |
| Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows. | |
| MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only | |
| need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation. | |
| MinGW provides headers and libraries so that GCC (a compiler suite, | |
| not just a "unix/linux compiler") can be built and used against the Windows C runtime. |
Using MSYS2 with Visual Studio Code is extremely easy now thanks to the Shell Launcher extension by Tyriar.
First, install the extension and reload Visual Studio Code.
Then, open the settings.json to edit your settings.
Add the field shellLauncher.shells.windows. I recommend using autocompletion here so that all the default shells are added.
You should having something like this now:
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| """ | |
| A demonstration on how raising KeyboardInterrupt in the context of tasks | |
| spawned via asyncio's loop.run_in_executor does not cancel the threads | |
| using any of the cancellation methods in asyncio Futures. | |
| The only "proper" way to cancel is to: | |
| 1. unregister the `atexit` registered `_python_exit` function | |
| 2. call `shutdown(wait=False)` | |
| The reason is that the `thread` module registers `_python_exit` forcing a |
| <# | |
| .SYNOPSIS | |
| Script to Initialize my custom powershell setup. | |
| .DESCRIPTION | |
| Script uses scoop | |
| .NOTES | |
| **NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
| Author: Mike Pruett | |
| Date: October 18th, 2018 |
Given a Parent class with value property, Child can inherit and overload the property while accessing Parent property getter and setter.
Although we could just reimplement the Child.value property logic completely without using Parent.value whatsover, this would violate the DRY principle and, more important, it wouldn't allow for proper multiple inheritance (as show in the example property_inheritance.py bellow).
Two options:
Childredefinesvalueproperty completely, both getter and setter.
本文譯自 Julio Merino 2018 年七月撰寫的 Rust vs. Go 一文。Julio Merino 是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。
Thanks Julio Merino for this awesome article!
| Get-ChildItem . -Recurse -Filter "*.inf" | ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install } |