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
Discover gists
Object().__proto__ = { | |
__defineGetter__: __defineGetter__() | |
__defineSetter__: __defineSetter__() | |
__lookupGetter__: __lookupGetter__() | |
__lookupSetter__: __lookupSetter__() | |
constructor: Object() | |
hasOwnProperty: hasOwnProperty() | |
isPrototypeOf: isPrototypeOf() | |
propertyIsEnumerable: propertyIsEnumerable() | |
toLocaleString: toLocaleString() |
/home/nick/Music: | |
AC-DC/ | |
All That Remains/ | |
Atreyu/ | |
Avenged Sevenfold/ | |
Black Tide/ | |
Creed/ | |
Crossfade/ | |
Deep Purple/ | |
Disturbed/ |
@* Unfortunately this has to be named BlazorForm, not Form, because we can't differentiate based on casing *@ | |
<form onsubmit=@HandleSubmit> | |
@ChildContent(_context) | |
</form> | |
@functions { | |
private FormContext _context = new FormContext(); | |
[Parameter] protected RenderFragment<FormContext> ChildContent { get; set; } | |
[Parameter] protected Action<FormContext> OnSubmit { get; set; } |
Update 04.04.2020: Please take a look at many of the forks of this gist or comments, where people have updated or improved upon the code. I have not needed this in a long time, which is why the original document has not been updated and the code probably does not work. Stay secure and only copy and paste code that you trust.
There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.
Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, thro
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
import org.apache.ivy.core.cache.ArtifactOrigin | |
import sbt.* | |
import sbt.Keys.* | |
import sbt.Project.inConfig | |
import sbt.internal.RemoteCache.* | |
import sbt.internal.inc.{HashUtil, JarUtils} | |
import sbt.internal.librarymanagement.IvyActions.mapArtifacts | |
import sbt.nio.Keys.* | |
import sbt.plugins.SemanticdbPlugin |