Skip to content

Instantly share code, notes, and snippets.

View DaShak's full-sized avatar
☝️
the

Daniel Shakhmundes DaShak

☝️
the
View GitHub Profile
@DaShak
DaShak / user-config
Created January 10, 2022 00:34
gkrellm config the way DaShak likes it; ~/.gkrellm2/user-config
### GKrellM user config. Auto written, do not edit (usually) ###
### Version 2.3.10 ###
enable_hostname 1
hostname_short 0
enable_sysname 0
mbmon_port 0
sticky_state 0
dock_type 0
decorated 0
skip_taskbar 0
@DaShak
DaShak / Turn Off Screen.bat
Last active January 23, 2020 23:27
Windows batch file with command-line script to turn off screens/displays on-demand
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
@DaShak
DaShak / jq-xrp-server_info.sh
Created December 14, 2018 16:53
jq the output of a rippled server_info query via cURL with HEREDOC JSON data payload
#!/bin/sh
xrpserverinfo=$(curl -s -X POST "http://127.0.0.1:5005" -d @- <<-JAZZY
{
"method": "server_info",
"params": [
{}
]
}
JAZZY
)
@DaShak
DaShak / htoprc
Created December 4, 2018 16:38
htop settings by Daniel Shakhmundes
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 2 111 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=0
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
@DaShak
DaShak / gist:0d6be16b6d81c50b39995fe9d8a05fce
Created August 1, 2018 17:22
A reference/list of BitCore/BTX daemon (bitcored) RPC methods
curl -s http://uname:passwd@127.0.0.1:8556 -X POST -d '{"jsonrpc":"1.0","id":"curltext","method":"help","params":[]}' | awk '{gsub(/\\n/,"\n")}1' | awk '{gsub(/\\"/,"\"")}1'
== Blockchain ==
getbestblockhash
getblock "blockhash" ( verbosity )
getblockchaininfo
getblockcount
getblockhash height
getblockheader "hash" ( verbose )
getchaintips
getchaintxstats ( nblocks blockhash )

Keybase proof

I hereby claim:

  • I am DaShak on github.
  • I am shak (https://keybase.io/shak) on keybase.
  • I have a public key whose fingerprint is 8AE5 2C5B 1BEC 883F 908E 6F67 EDE6 9095 284C FB8F

To claim this, I am signing this object: