Skip to content

Instantly share code, notes, and snippets.

View laurentsenta's full-sized avatar
🌱

Laurent Senta laurentsenta

🌱
View GitHub Profile
@laurentsenta
laurentsenta / count_gway.sh
Last active June 26, 2023 13:12
notes counting sharness / gateway conformance test ported
ack 'Name:' ./tests | wc -l ☹
# Output: 157
@laurentsenta
laurentsenta / demo.sh
Last active March 22, 2023 11:11
demo - sharness - proxytunnel bug
#!/bin/sh
set -x
set -e
set -u
GWAY_PORT=8080
url="http://bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.ipfs.localhost/"
host=$(echo $url | cut -d'/' -f3 | cut -d':' -f1)
hostname=$(echo $url | cut -d'/' -f3 | cut -d':' -f1,2)
@laurentsenta
laurentsenta / Cargo.toml
Created August 10, 2022 14:02
rust libp2p patch with features
[package]
edition = "2021"
name = "testplan"
version = "0.1.0"
[dependencies]
async-std = {version = "1.10", features = ["attributes", "tokio1"]}
env_logger = "0.9.0"
if-addrs = "0.7.0"
ipnetwork = {version = "0.19.0", default-features = false, features = ["serde"]}
@laurentsenta
laurentsenta / notes.md
Created March 10, 2022 13:20
js doc research notes
@laurentsenta
laurentsenta / Timestamper.sol
Created September 12, 2021 16:06
Timestamp Smart Contract
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Timestamper is Ownable {
event Timestamp(uint256 indexed hash);
function timestamp(uint256 hash) public onlyOwner {
console.log("Timestamping:", hash);

Keybase proof

I hereby claim:

  • I am laurentsenta on github.
  • I am laurentsenta (https://keybase.io/laurentsenta) on keybase.
  • I have a public key whose fingerprint is 21D9 6BB9 78EE 9380 07F0 437C 5169 6A96 0ACC 1395

To claim this, I am signing this object:

@laurentsenta
laurentsenta / tunnel.sh
Created September 7, 2019 11:19
my "favorite" shell function
tunnel () {
machine="$1"
port_local="$2"
port_remote="$2"
if [ ! -z "$3" ]
then
port_remote="$3"
fi
echo "ssh $machine -N -L \"${port_local}:localhost:${port_remote}\""
ssh $machine -N -L "${port_local}:localhost:${port_remote}"
@laurentsenta
laurentsenta / default-setup.js
Created March 21, 2019 13:51
3box-ipfs-did-test
const IPFS = require('ipfs')
const options = {
config: {
Addresses: {
Swarm: [],
},
Discovery: {
MDNS: {
enabled: false
@laurentsenta
laurentsenta / 3box.md
Created February 25, 2019 10:51
3Box Verify

did:muport:Qmb9E8wLqjfAqfKhideoApU5g26Yz2Q2bSp6MSZmc5WrNr

@laurentsenta
laurentsenta / package.json
Created November 2, 2018 09:39
React fix Electron and relative path
{
...
"homepage": "./",
...
}