Skip to content

Instantly share code, notes, and snippets.

View a-stankevich's full-sized avatar

Arthur Stankevich a-stankevich

View GitHub Profile
[1,2,3,7,10,20,34]
$ whois gov.fi
domain.............: gov.fi
status.............: Registered
created............: 12.9.2016 10:07:23
expires............: 12.9.2023 10:07:23
available..........: 12.10.2023 10:07:23
modified...........: 31.3.2020 10:24:17
holder transfer....: 7.11.2017 08:31:13
RegistryLock.......: no
@a-stankevich
a-stankevich / wsl-fix-resolvconf.sh
Created June 29, 2022 09:23 — forked from nfekete/wsl-fix-resolvconf.sh
Fix resolv.conf in Windows Subsystem for Linux, when WSL doesn't correctly generate it.
#!/bin/bash
TMP=`mktemp`
trap ctrlC INT
removeTempFiles() {
rm -f $TMP
}
ctrlC() {
@a-stankevich
a-stankevich / MaxOutstandingConnections.reg
Last active December 30, 2023 21:07
Fix for Windows 10 Remote Desktop Internal error
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"MaxOutstandingConnections"=dword:00000bb8
@a-stankevich
a-stankevich / highlightcomments.js
Created February 5, 2019 06:33
Highligh hackernews comments
// use this to filter out relevant comments in huge HN threads
// open a post with jobs in comments, e.g. https://news.ycombinator.com/item?id=18807017
// open browser developer console (F12 or Alt-Cmd-C usually works)
// paste code of these functions:
function showComments(keywords) {
[].filter.call(document.getElementsByClassName('comment'), c => keywords.every(kw => c.innerText.toLowerCase().includes(kw.toLowerCase()))).forEach(c => c.classList.remove('noshow'))
}
function hideAll() {
[].forEach.call(document.getElementsByClassName('comment'), c => c.classList.add('noshow'))
{"data":{"currency":"wei","amount":"50000000000000000"}}
@a-stankevich
a-stankevich / nttoolbarbutton.cs
Last active April 4, 2018 19:22
Strategy with custom toolbar button
// source: https://ninjatrader.com/support/forum/showthread.php?t=23279
// Here's code that will add buttons you can use to place orders - so, it has to be in a strategy. You can add similar code to an indicator, but you won't be able to place orders from that code. I found the start of this on another site - I'll have to find the link to give credit where credit is due.
// Please note - I found that in the button click events, the standard NT Open[0], etc. were not available. I had to cache values by updating private variables in OnBarUpdate() that I wanted to reference in the button click event code.
// I stripped out my own logic from the code in notepad. You may find a line of code or two that needs tweaking to get it to compile.
#region Using declarations
using System;
using System.Collections;
0x821aEa9a577a9b44299B9c15c88cf3087F3b5544
0xa2CC720f34369E6176188A8Ba72Ff5581eB8C776