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
This file contains hidden or 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
const net = require('net') | |
const socket = net.createConnection(25, 'gmail-smtp-in.l.google.com', () => { | |
console.log('Connected!') | |
socket.write('HELO gmail\r\n') | |
socket.write('MAIL FROM: <[email protected]>\r\n') | |
socket.write('RCPT TO: <[email protected]>\r\n') | |
socket.write('QUIT\r\n') | |
}) | |
socket.on('data', (buff) => console.log(buff.toString())) |
Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.
- Install and configure xdebug in Docker
This file contains hidden or 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
license: mit |
This file contains hidden or 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
{ | |
"files.autoSave": "onFocusChange", | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useSystemClipboard": true, | |
"vim.useCtrlKeys": true, | |
"vim.hlsearch": true, | |
"vim.sneak": true, | |
"vim.easymotionMarkerooundColor": "#020202", | |
"vim.normalModeKeyBindings": [ |
install Oracle XE 18x under WSL2
- install package is RPM, it's easier to use CentOS 7 or 8 (from CentOS-WSL or wsldl)
- if you want to use Debian/Ubuntu, you must convert RPM to DEB (but conversion with
alien
fails under Debian) - first, install oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
- second, install oracle-database-xe-18c-1.0-1.x86_64.rpm
- see https://mikesmithers.wordpress.com/2019/01/03/installing-and-configuring-oracle-18cxe-on-centos/
- run as root:
/etc/init.d/oracle-xe-18c configure
- it would fail if host IP is auto-generated to be 127.0.1.1
- you can update the IP in
/etc /hosts
and try it again
This file contains hidden or 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
@echo off & setlocal enableextensions | |
title Reset AnyDesk | |
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit) | |
chcp 437 | |
call :stop_any | |
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf" | |
del /f "%APPDATA%\AnyDesk\service.conf" | |
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\" | |
rd /s /q "%temp%\thumbnails" 2>NUL | |
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails" |
OlderNewer