Skip to content

Instantly share code, notes, and snippets.

View emerauda's full-sized avatar

Aoi Emerauda emerauda

  • Hosei University
  • Tokyo, Japan
  • 08:12 (UTC +09:00)
  • X @Aoi_Emerauda
View GitHub Profile
@emerauda
emerauda / Agent Passthru.md
Last active July 1, 2025 09:35 — forked from Jaykul/Agent Passthru.md
SSH Agent passthru to WSL 2 (working, in Windows 11, in May 2023)

For awhile now, each time I got a new Windows laptop I would dig up strasis gist on how to set up agent forwarding for SSH in WSL2 -- but recently I tried to point someone else at it and they were very confused by it, so this is my attempt at simpler instructions.

Installation

With Chocolatey, you must use an elevated PowerShell session. If there's no choco command found, it will fall back to winget for the npiperelay install. To force using Winget even if you have choco installed, you need to download it, so you can pass parameters to it.

Easy mode: just run this in PowerShell:

Keybase proof

I hereby claim:

  • I am emerauda on github.
  • I am emerauda (https://keybase.io/emerauda) on keybase.
  • I have a public key ASAi7oG6DusX71ojjgoVwEWL4wz2mBIIhqu1WIRWLni4Hgo

To claim this, I am signing this object:

@emerauda
emerauda / artifacts...TestToken_metadata.json
Created March 3, 2023 05:06
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"compiler": {
"version": "0.8.17+commit.8df45f5f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
@emerauda
emerauda / contract-28cbfa4880.sol_flattened.sol
Created February 27, 2023 21:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
// File: @openzeppelin/contracts@4.8.1/access/IAccessControl.sol
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
@emerauda
emerauda / ...scenario8.json
Created February 27, 2023 14:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
{
"accounts": {
"account{0}": "0x795F80bDa18ff5E86B575240FF5A62EF9b2171A6"
},
"linkReferences": {},
"transactions": [
{
"timestamp": 1677509474712,
"record": {
"value": "0",
@emerauda
emerauda / contract-28cbfa4880.sol_flattened.sol
Created February 27, 2023 05:55
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
// File: @openzeppelin/contracts@4.8.1/access/IAccessControl.sol
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
@emerauda
emerauda / ...scenario7.json
Created February 27, 2023 05:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
{
"accounts": {
"account{0}": "0x795F80bDa18ff5E86B575240FF5A62EF9b2171A6"
},
"linkReferences": {},
"transactions": [
{
"timestamp": 1677476896377,
"record": {
"value": "0",
@emerauda
emerauda / contract-28cbfa4880.sol
Created February 27, 2023 05:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts@4.8.1/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.8.1/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts@4.8.1/access/AccessControl.sol";
/// @custom:security-contact aoi@digitalregion.co.jp
contract TestToken is ERC721, ERC721URIStorage, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
@emerauda
emerauda / ...scenario6.json
Created February 27, 2023 04:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
{
"accounts": {
"account{0}": "0x795F80bDa18ff5E86B575240FF5A62EF9b2171A6"
},
"linkReferences": {},
"transactions": [
{
"timestamp": 1677473515990,
"record": {
"value": "0",
@emerauda
emerauda / scenario5.json
Created February 27, 2023 04:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
{
"accounts": {
"account{0}": "0x795F80bDa18ff5E86B575240FF5A62EF9b2171A6"
},
"linkReferences": {},
"transactions": [
{
"timestamp": 1677466991447,
"record": {
"value": "0",