-
Press the Windows + R keys to open the Run dialog, type gpedit.msc, and press Enter. NOTE: This file is located at C:\Windows\System32\gpedit.msc.
-
Computer Configuration/Administrative Templates/Windows Components/Windows Defender (В ру варианте что-то про Endpoint Protection)
-
In the right pane of Windows Defender in Local Group Policy Editor, double click/tap on the Turn off Windows Defender policy to edit it
-
Select (dot) Enabled, click/tap on OK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out server.key 4096 | |
openssl req -new -sha256 -key server.key -out server.csr | |
openssl x509 -req -days 3650 -sha256 -in server.csr -signkey server.key -out server.crt |
about:config
browser.cache.disk.enable = false
browser.cache.memory.enable = true
browser.cache.memory.capacity = -1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
telnet localhost 11211 | |
flush_all | |
quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Component, OnChanges, Input, | |
trigger, state, animate, transition, style | |
} from '@angular/core'; | |
@Component({ | |
selector : 'my-fader', | |
animations: [ | |
trigger('visibilityChanged', [ | |
state('shown' , style({ opacity: 1 })), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg><use xlink:href="sprites.svg#icon1"></use></svg> | |
<svg><use xlink:href="sprites.svg#icon2"></use></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall -9 node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setx VAGRANT_HOME "/d/.vagrant.d/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BASIC --> | |
<template [ngTemplateOutlet]="item"></template> | |
<template #item>Some beaut content</template> | |
<!-- WITH CONTEXT --> | |
<template [ngTemplateOutlet]="item" [ngOutletContext]="{name: 'Username'}"></template> | |
<template #item let-name="name">Hello, {{ name }}</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor(private ds: DragulaService) { | |
const contains = (a, b) => { | |
return a.contains ? | |
a != b && a.contains(b) : | |
!!(a.compareDocumentPosition(b) & 16); | |
}; | |
this.ds.setOptions(this.bagName, { | |
accepts: function (el, target, source, sibling) { | |
// prevent dragged containers from trying to drop inside itself | |
return !contains(el,target); |