Skip to content

Instantly share code, notes, and snippets.

@maestrow
maestrow / Send-WOL.ps1
Last active March 27, 2025 18:05
Wake On Lan (WOL) HowTo
function Send-WOL
{
<#
.SYNOPSIS
Send a WOL packet to ip address
.PARAMETER mac
The MAC address of the device that need to wake up
.PARAMETER ip
The IP address where the WOL packet will be sent to
.EXAMPLE
@maestrow
maestrow / readme.md
Last active November 28, 2021 05:36
RDP

Configure router to connect to your workstation via RDP and troubleshooting connection issues

This can be realized by Port Forwarding \ Virtual Servers router feature.

Port Forwarding \ Virtual Servers

Virtual servers can be used for setting up public services on your LAN. A virtual server is defined as a service port, and all requests from Internet to this service port will be redirected to specified IP in LAN. Any PC that was used for a virtual server must have a static or reserved IP address because its IP address may change when using the DHCP function (see DHCP \ Address Reservation).

In TP-LINK router this settings located in Forwarding \ Virtual Servers.

@maestrow
maestrow / lfs.md
Last active September 30, 2018 09:34
Linux
@maestrow
maestrow / post.md
Last active November 1, 2018 14:44
Add styleguidist to non ejected create-react-app

How to Add styleguidist to non ejected create-react-app:

  • npm install --save-dev react-styleguidist react-docgen-typescript
  • create styleguide.config.js:
module.exports = {
  propsParser: require('react-docgen-typescript').parse,
  webpackConfig: require('react-scripts-ts/config/webpack.config.dev')
}
@maestrow
maestrow / post.md
Created September 4, 2018 10:19
npx: how it acts?
$ .\node_modules\.bin\babel --version
7.0.0 (@babel/core 7.0.0)
$ babel --version
6.26.0 (babel-core 6.26.3)
$ npx babel --version
7.0.0 (@babel/core 7.0.0)
@maestrow
maestrow / pengwin.md
Last active March 17, 2021 19:36
My Laptop Environment on Windows 10

PengWin

Synaptic - package manager with GUI.

Change Language:

  • cat /etc/default/local
  • update-locale LANG=en_US.UTF-8

setup ENV variables in /etc/profile:

@maestrow
maestrow / readme.md
Created August 12, 2018 10:34
Speed test

Ethernet cable

ping: 2ms
download: 43.02Mbps
upload:  39.96Mbps

Near wi-fi router

Lenovo

@maestrow
maestrow / setup.md
Created June 20, 2018 16:23 — forked from developius/README.md
Set up GitHub push with SSH keys

Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key:

ssh-keygen -t rsa -C "[email protected]"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key:

ssh -T [email protected]
@maestrow
maestrow / dev-cli.ahk
Created June 6, 2018 16:38
AutoHotKey
ShowAndPaste(pid, str)
{
;MsgBox %pid%
ClipboardCopy = %ClipboardAll%
Clipboard := str
WinShow, ahk_pid %pid%
WinActivate, ahk_pid %pid%
SendInput +{Ins}{Enter}
Clipboard = %ClipboardCopy%
}