Skip to content

Instantly share code, notes, and snippets.

@maestrow
maestrow / post.md
Last active April 15, 2019 16:01
Open Data | Открытые данные

Родительский проект: Черновики аналитика

  • В общем вбив в гугле "Открытые данные" находится довольно много ссылок на сайты госструктур, предоставляющие открытые данные. Сайтов много, данных много. Их общая проблема - плохая структурированность и сложность поиска. Трудно найти среди этого многообразия то, что нужно.
  • https://data.gov.ru/opyt-ispolzovaniya-otkrytyh-dannyh - зарубежные и российские примеры успешного использования открытых данных. Тут я нашел ссылку на Сервис "Российские Школы" - russianschools.ru, который теперь https://goodschools.ru.
  • https://goodschools.ru. Проект сыроват. Но интересен. Сервис был создан в начале 2015 года в рамках всероссийскиого конкурса по открытым финансовым данным "BudgetApps", организованным Министерством Финансов РФ, и сразу победил, взяв "Приз зрительских симпатий". По ссылке "О проекте" видим Партнеры проекта: АНО "Инфокультура"
  • https://www.infoculture.ru/about/ Видим, что эта организация делает то, что было в моих мыслях о пр
@maestrow
maestrow / readme.md
Last active November 19, 2024 08:28
WinForms with F#

How to use F# in WinForms application?

Visual Studio Community Edition 2017 has F# project template, but it hasn't forms desigler for it, designer exists only in C# WinForms project template. To get round this inconvenience, we can create two projects: C# WinForms (only to use VS forms designer) and F#, where we put all logic. See below for more detailed instructions and animated gif.

Create solution with C# and F# projects in Visual Studio

  • Create New F# Library Project.
  • Create New C# Windows Forms Project. I prefer add ".UiDesign" suffix, because this project exists only to use VS Forms Designer.
  • For C# project change Output type property to Class library, for F# - to Windows Application.
  • Add references to F# project:
@maestrow
maestrow / Send-WOL.ps1
Last active May 22, 2025 02:11
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 "your_email@example.com"

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

ssh -T git@github.com