Skip to content

Instantly share code, notes, and snippets.

@wshino
wshino / ethereum_keys.sh
Created May 17, 2023 11:52 — forked from miguelmota/ethereum_keys.sh
Generate Ethereum Private key, Public key, and Address using Bash and OpenSSL
# Generate the private and public keys
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > key
# Extract the public key and remove the EC prefix 0x04
cat key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub
# Extract the private key and remove the leading zero byte
cat key | grep priv -A 3 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^00//' > priv
# Generate the hash and take the address part
@wshino
wshino / set-image.sh
Last active December 13, 2018 09:13
#!/bin/bash
function usage {
echo " Description"
echo " this shell script uses for when updating lots of images."
echo ""
echo " Usage:"
echo " $ ./set-image.sh SEARCH_NAME SEARCH_VERSION TARGET_VERSION"
echo " * SEARCH_NAME: query for container image name"
echo " * SEARCH_VERSION: query for container image tag"
pragma solidity ^0.4.25;
import "./KyberNetworkProxyInterface.sol";
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
bitcoindを動かす
https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md
D/t/bitcoin ╍ cp ./src/bitcoind /usr/local/bin/.
D/t/bitcoin ╍ cp ./src/bitcoin-cli /usr/local/bin/.
D/t/bitcoin ╍ cp ./src/bitcoin-tx /usr/local/bin/.
btcwalletを入れる
https://github.com/btcsuite/btcwallet
/Users/shinohara-wataru/Library/Application\ Support/Btcwallet/btcwallet.conf
testnet=1
btcwallet -u myuser -P SomeDecentp4ssw0rd
D/d/slide-smartcontract ╍ btcctl --testnet --wallet getbalance default
btcd を動かす
https://github.com/btcsuite/btcd
一回動かしたらディレクトリはできるから一度動かす
止める
sampleを拾ってきて所定の場所に置く
https://github.com/btcsuite/btcd/blob/master/sample-btcd.conf
/Users/shinohara-wataru/Library/Application Support/Btcd/btcd.conf
testnetを有効にする
@wshino
wshino / LT.md
Last active November 15, 2017 08:43

LTネタ

1. 原始通貨、近代通貨、暗号通貨

対象者

お金に興味がある人

概要

@wshino
wshino / ansible-summary.md
Created October 26, 2017 05:42 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@wshino
wshino / file0.txt
Last active October 7, 2017 08:22
Keybaseを使って暗号化 git repositoryを作ろう ref: http://qiita.com/wshino/items/494f44d8c6ea8b590c6b
git clone keybase://private/wshino/mogemoge

2017-10-05 第2回 BD部ワールドカフェ

テーマ

  • 働き方を考える
    • あなたにとって仕事とはなんですか?
    • あなたにとって生活と仕事のつながりはなんですか?
    • どういう風に仕事をして行きたいですか?
  • 3年後も楽しくここで仕事をするには何が必要でしょうか?
  • 今を楽しくするにはどうしたらいいだろう?