Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
# https://www.petri.com/disable-remote-desktop-network-level-authentication-using-powershell | |
#Get | |
(Get-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").UserAuthenticationRequired | |
#Set Off | |
(Get-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(0) | |
#Set On | |
(Get-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(1) | |
$computerName = 'MyComputerName' |
sudo nano /etc/graylog/server/server.conf | |
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1 | |
root_password_sha2 = | |
< /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96};echo; | |
password_secret = | |
http_bind_address = 0.0.0.0 |
# Bu Betik, kalan süreyi sorgulamak ve Terminal Server (RDS) Grace Lisanslama Süresini Varsayılan 120 Güne sıfırlamak için kullanılmak üzere tasarlanmıştır. | |
## theblow tarafından geliştirildi. | |
## Yasal Uyarı: Lütfen bu betiği herhangi bir üretim sunucusunda çalıştırmadan önce test ortamınızda test edin. | |
## Yazar, kullanımdan kaynaklanan herhangi bir yanlış kullanımdan / hasardan sorumlu olmayacaktır. | |
Param( | |
[Parameter(Mandatory=$false)] [Switch]$Force | |
) | |
Clear-Host | |
$ErrorActionPreference = "SilentlyContinue" |
@ECHO OFF | |
For /f "tokens=2-4 delims=. " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-3 delims=.:," %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
set TIMESTAMP=%mydate%_%mytime% | |
REM Export all databases into file E:\wamp64\backup\database_backup.[year][month][day].sql | |
"E:\wamp64\bin\mysql\mysql5.7.14\bin\mysqldump.exe" --all-databases --result-file="E:\wamp64\backup\database_backup_%TIMESTAMP%.sql" --user=root | |
REM Change working directory to the location of the DB dump file. |
Import-Module ActiveDirectory | |
# Set the number of days since last logon | |
$DaysInactive = 90 | |
$InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
#------------------------------- | |
# FIND INACTIVE COMPUTERS | |
#------------------------------- | |
# Below are three options to find inactive computers. Select the one that is most appropriate for your requirements: |
ms-windows-store://pdp/?productid=9nblggh4nns1 |
cd coding-directory
npm init -y
npm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import
.eslintrc
file with following content:{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
Switch>en | |
Switch# | |
Switch#rename flash:config.old flash:config.text | |
Switch#copy flash:config.text system:running-config | |
// Şimdi yeni şifremizi belirleyebiliriz. | |
test(config)#enable secret <yeni secret şifreniz> | |
test(config)#enable password <yeni en şifreniz> | |
test(config)#line vty 0 15 | |
test(config-line)#password <new_vty_şifreniz> | |
test#write memory |