2023
2018
SCIgen
2023
AI
B 2024 — 1 — 2024-10-07 – p.5/68
Slide 6
Slide 6 text
SAY NO TO BULLSHIT JOBS
David Graeber, Bullshit Jobs: A Theory, Penguin, 2018.
( , , , — , , 2020)
Bullshit Jobs ( ) Shit Jobs ( )
( )
. . .
B 2024 — 1 — 2024-10-07 – p.6/68
2. Ethereum
macOS (Sonoma 14.7) + Homebrew
Linux (Ubuntu 24.04) (x86/AMD64 and ARM)
Windows 11 + Windows Subsystem for Linux (Ubuntu )
Ethereum solidity brownie
Lima on macOS
B 2024 — 1 — 2024-10-07 – p.50/68
Slide 51
Slide 51 text
macOS : Homebrew
(Apple macOS ) UNIX
macOS Lima Homebrew
brew Apple
brew ( )
brew
Rosetta
brew brew
https://github.com/homebrew/install
Path : https://zenn.dev/tet0h/articles/a92651d52bd82460aefb
$ which brew
/opt/homebrew/bin/brew
B 2024 — 1 — 2024-10-07 – p.51/68
Slide 52
Slide 52 text
macOS : Rosetta 2
Apple x86/AMD64
( )
$ softwareupdate --install-rosetta
lima Rosetta 2
lima
B 2024 — 1 — 2024-10-07 – p.52/68
Slide 53
Slide 53 text
macOS : Lima
macOS Linux ( )
https://github.com/lima-vm/lima
QEMU ( ) Rosetta 2
Apple x86/AMD64
brew
$ brew install lima
Ubuntu 24.04 (x86/AMD64)
“kmd.yaml”
$ limactl start kmd.yaml
B 2024 — 1 — 2024-10-07 – p.53/68
Slide 54
Slide 54 text
macOS : Lima Linux (Ubuntu)
x86_64
$ limactl list
Linux (exit )
$ limactl shell kmd
Linux
limactl list STATUS Stopped limactl start kmd
“.lima”
diffdisk 100GB
B 2024 — 1 — 2024-10-07 – p.54/68
Slide 55
Slide 55 text
Solidity
Ethereum ( )
http://solidity.readthedocs.io/en/latest/installing-solidity.html
Linux (on Windows) “sudo apt”, macOS “brew”
Linux ARM
git clone dependencies
solc 0.8.27 (10/5 )
$ solc --version
brownie py-solc-x
solc (dependencies) ( solc py-solc-x )
B 2024 — 1 — 2024-10-07 – p.55/68
infura.io Brownie
https://infura.io SIGN UP PROJECT ID
infura Ethereum API
infura . . .
infura.io
PROJECT ID
WEB3_INFURA_PROJECT_ID
PROJECT ID (∼/.bash_profile )
$ export WEB3_INFURA_PROJECT_ID= PROJECT ID
B 2024 — 1 — 2024-10-07 – p.65/68
Slide 66
Slide 66 text
Sepolia ETH
brownie console Sepolia
>>> network.disconnect()
>>> network.connect(’sepolia’)
>>> len(accounts)
0
>>> accounts.add()
>>> accounts[0].private_key
16
>>> quit()
Sepolia Testnet ETH Faucet ETH
https://sepoliafaucet.com ( )
( )
https://metamask.io/
B 2024 — 1 — 2024-10-07 – p.66/68
Slide 67
Slide 67 text
Sepolia ETH
brownie console Sepolia ETH
>>> network.disconnect()
>>> network.connect(’sepolia’)
>>> len(accounts)
0
>>> accounts.add( 16 )
>>> accounts[0].balace()
ETH
>>> quit()
ETH
>>> accounts[0].transfer(accounts[1], "0.01 ether")
B 2024 — 1 — 2024-10-07 – p.67/68