Skip to content

Instantly share code, notes, and snippets.

View freddiecoleman's full-sized avatar
🍃

Freddie Coleman freddiecoleman

🍃
View GitHub Profile
@freddiecoleman
freddiecoleman / get_blocks.json
Created January 4, 2021 22:18
Chia RPC responses - dev branch 04/01/2021
{
"blocks": [
{
"challenge_chain_ip_proof": {
"witness": "0x0001d366e283fe9e77012ffd56cb97acef9872fe3085fd8bb817f736553bd129418b3dc32ef6697e8faaecb51bd30ba1aa92e1c45bbadda610668c8c34b1766b7d000090185bc22fc7b9915b24da0d5d4ff9c32befc60bb044917dc9ae80a5ce6be10dd890320bbd124fbf25e9c0be6601e21563bfc5670accb43f416d2b5a9b282300000000000948f4003f27aca6cb4d8f3fc36f89b7b1557f9ba787901e8bceaddf0e2d3210f28e3654b1334410f40d32a7b5041ae2fd55c2b4ce8bed70ed83d04212d993d350655b520032698918ff9d5d737765f974a078d3ae76142230dcc5de37b105855b7561f342291d3042e849dfeb916e0d71531d4399966c826b8e64c149ccf9b9315c6f2e1d00258dc8e6054a500867ee9e4c349c8f0c984fdb39de3f8e371d617bc4396ee9227e35bff8be17145175974fb4e60756aabbb2dc8726fd881f91caa5bd12d3de9d00111aca1864ffefa012bb95f89f211f9fd639eeddb41f8aeb04353ffdaa136a128569e9d582dd847c4ed870bf6ef3ec8736f2ff9cadca126e2ee2ba03979f076d00000000001bda78005856a596c8891fcafca666bd68c9fcc60eef10bbb084043f7639186b7e8af140976918ccc627d9e432ee60cc0f3812c846cac8a7bfd4a4
@freddiecoleman
freddiecoleman / Signing-Verifying-Chia-Keys.md
Created July 31, 2020 20:30 — forked from hoffmang9/Signing-Verifying-Chia-Keys.md
How to sign and verify arbitrary data with Chia keys

You will need some data about your HD key. Don't share the results, but reference this command for the following steps.

chia keys show

Grab the Fingerprint value for your key set. You will also need the keypath to your Pool Public key, e.g. (m/12381/8444/1/0). You will drop the parentheses and the leading m/ as shown below.

chia keys sign -f [fingerprint] -t [hd_path] -d [message] (sign a message with a private key)
# Working Example

HOWTO: Clean Up Nomad Data Directory

Issue

When attempting to remove all of the data in the Nomad data directory, several directories and files are unable to be deleted. Many messages are logged to the console like:

rm: cannot remove ‘alloc/736f61b9-d7dc-cb73-0dd1-76b1b2ba032d/nomad-ui/secrets’: Device or resource busy
rm: cannot remove ‘alloc/ddcf5a78-5497-f4a4-a101-221fc4e0180b/fabio/alloc’: Device or resource busy
rm: cannot remove ‘alloc/ddcf5a78-5497-f4a4-a101-221fc4e0180b/fabio/secrets’: Device or resource busy

Keybase proof

I hereby claim:

  • I am freddiecoleman on github.
  • I am fcoleman (https://keybase.io/fcoleman) on keybase.
  • I have a public key ASCIIiuWFSQk5wwmWYeY0WBPSckFUytyl-c0CRrr4KWoQQo

To claim this, I am signing this object:

@freddiecoleman
freddiecoleman / ns-cheatsheet.clj
Created March 10, 2016 13:36 — forked from ghoseb/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.
@freddiecoleman
freddiecoleman / tmux-cheatsheet.markdown
Created February 16, 2016 12:53 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
package com.freddiecoleman.enigma;
import java.util.HashMap;
/**
* @author freddiecoleman
*
*/
public final class Plugboard {