Skip to content

Instantly share code, notes, and snippets.

View requilence's full-sized avatar

Roman Khafizianov requilence

View GitHub Profile
@requilence
requilence / anytype-get-key.ps1
Last active September 29, 2025 18:19
powershell script to retrieve the anytype account key from the Credential Manager on Windows
# Prompt the user for the credential name (Target)
$account = Read-Host "Enter the anytype account id (starts with A)"
# Define necessary structs and functions using P/Invoke
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class NativeMethods
{
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
@requilence
requilence / goroutines_filter.go
Created August 9, 2023 16:23
Filter goroutines stack by state and group by func
package main
import (
"bufio"
"fmt"
"io"
"os"
"sort"
"strings"
)
{
"API": {
"HTTPHeaders": {
"Server": [
"go-ipfs/0.4.19"
]
}
},
"Addresses": {
"API": "/ip4/0.0.0.0/tcp/9101",
@requilence
requilence / ipfs_goroutine_leak_master.txt
Created April 2, 2019 23:45
IPFS goroutine leak master
goroutine profile: total 199447
19496 @ 0x9faa2b 0x9faad3 0xa0ba9c 0xa0b7cd 0xa31a0f 0xe1ecad 0xfd3e8a 0xfd3841 0xfe283f 0xfe23e8 0xfe67ee 0xfd6d5d 0xa290d1
# 0xa0b7cc sync.runtime_SemacquireMutex+0x3c /usr/local/go/src/runtime/sema.go:71
# 0xa31a0e sync.(*Mutex).Lock+0xfe /usr/local/go/src/sync/mutex.go:134
# 0xe1ecac gx/ipfs/QmaCTz9RkrU13bm9kMB54f7atgqM4qkjDZpRwRoJiWXEqs/go-libp2p-peerstore.(*peerstore).SupportsProtocols+0x6c /ipfs/src/gx/ipfs/QmaCTz9RkrU13bm9kMB54f7atgqM4qkjDZpRwRoJiWXEqs/go-libp2p-peerstore/peerstore.go:139
# 0xfd3e89 gx/ipfs/QmRxk6AUaGaKCfzS1xSNRojiAPd7h2ih8GuCdjJBF3Y6GK/go-libp2p/p2p/host/basic.(*BasicHost).preferredProtocol+0xc9 /ipfs/src/gx/ipfs/QmRxk6AUaGaKCfzS1xSNRojiAPd7h2ih8GuCdjJBF3Y6GK/go-libp2p/p2p/host/basic/basic_host.go:366
# 0xfd3840 gx/ipfs/QmRxk6AUaGaKCfzS1xSNRojiAPd7h2ih8GuCdjJBF3Y6GK/go-libp2p/p2p/host/basic.(*BasicHost).NewStream+0x80 /ipfs/src/gx/ipfs/QmRxk6AUaGaKCfzS1xSNRojiAPd7h2ih8GuCdjJBF3Y6GK/go-libp2p/p2p/host/basic/basic_host.go:325
### Keybase proof
I hereby claim:
* I am requilence on github.
* I am requilence (https://keybase.io/requilence) on keybase.
* I have a public key ASDNJv6bsALOQCD7HgkRAqeK48Su-TTQP1X4qslpY_nSywo
To claim this, I am signing this object:
@requilence
requilence / gist:b67590241124634eb026a466f6d7ff51
Last active February 17, 2018 07:53
Test payload for the INFURA WS
{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"data":"0x4e013d36000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000d34aeea67cae407239834e1319db00316b2e01ca000000000000000000000000fcaadf346778921398376c72b6e77bf7b194e792000000000000000000000000381e0de19e734a50bdb456185a924a6f444e8dd9000000000000000000000000ee0eb0e30ed7ddc488f4e973bbbfe2bb087084de000000000000000000000000a7be279ae32e17d394ffb85c38a1e8aa950186ac000000000000000000000000775ac5a85dff86e84f2937a8caab7d59c64d2ac1000000000000000000000000b88b0927ff96453e6dfacd56848ec1ccb0ec15f300000000000000000000000062d703a10e1f1e5f9ce29ae487e0cbe3d277d44e000000000000000000000000cbf38de19ce222a53eb9c1eb97f40fef22fd3b95000000000000000000000000cc1fe1d7ee10ce21834692b64cd1256586af84c5000000000000000000000000aa7247acf62fca7d5db89b8945a58c26ee62960b00000000000000000000000066ff1b6090774568dbc5a938225d7dd82e1a04cf0000000000000000000000000390b35ff05d5c01604e452aa695f20
Verifying my Blockstack ID is secured with the address 1Pf9yAtS35DnrgqYS8en4xvHZiui31mgVi https://explorer.blockstack.org/address/1Pf9yAtS35DnrgqYS8en4xvHZiui31mgVi