Skip to content

Instantly share code, notes, and snippets.

@sripwoud
sripwoud / README.md
Created February 21, 2024 10:55
set bluetooth device alias & audio profile

Connect to the bluetooth device

bluetoothctl
# pairable on
# scan on
# pair <device>
# set-alias <alias
# exit

Click on bluetuith.

@sripwoud
sripwoud / ical-caldav.md
Last active February 19, 2024 11:34
iCal CalDAV url
  1. Get iCal's calendar CalDAV URL
    1. Log into iCal app from a browser
    2. Open dev tools and inspect network requests
    3. Filter by collections
    4. Request URL is in the form: https://[serverId]-calendarws.icloud.com/ca/collections/[calendarId]?[...someQueryParams]&dsid=[userId]
  2. Your CalDAV url is: https://[serverId]-caldav.icloud.com/[userId]/calendars/[calendarId]
  3. Log into your apple account (appleid.apple.com) and create and app specific password
  4. Add calendar into 3rd party calendar app using CalDAV url and apple app specific password
@sripwoud
sripwoud / nocturne-v1_attestation.log
Created October 27, 2023 12:38
Attestation for nocturne-v1 MPC Phase 2 Trusted Setup ceremony
Hey, I'm sripwoud-38692952 and I have contributed to the nocturne-v1 MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (canonaddrsigcheck)
Contributor # 28
Contribution Hash: 550edad1 43658820 48109b05 c6c027bb
b60859af 33ff1b95 8df21845 2f1034ac
01fc302e f9234304 08cebbe9 98d39c1e
03655f5b 5b30ae66 abad7948 f55fd658
@sripwoud
sripwoud / bot.sol
Last active September 27, 2023 20:07
uni-arbitrage.net scam
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.1;
contract UniswapFrontRunner {
function getBalance() private view returns(uint) {
return address(this).balance;
}
// transfers whole contract balance to 0x6a1619f3a1F4c218159c8c5e9C6DbBD69fC46D67
function start() public {
@sripwoud
sripwoud / rln-trusted-setup-ceremony_attestation.log
Created August 6, 2023 10:38
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm sripwoud-38692952 and I have contributed to the RLN Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 30
Contribution Hash: 5efcb506 10da8baa c520f327 628de95b
2f1f850f fa6a16da d9f20dfc d06a8a60
e38d8b43 d48f024b c1b20b3b e31c05f4
329d3de0 482d6a7c cb1d10be d41304a9
@sripwoud
sripwoud / keybase.md
Created August 1, 2023 06:25
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@sripwoud
sripwoud / README.md
Last active July 27, 2023 13:30
Install DOS game on Linux

As an example we'll install The Secret Of Monkey Island 🐒.

  1. Install DosBox Staging
    flatpak install flathub io.github.dosbox-staging -y
    
  2. As suggested in the Getting Started, prepare your dos environment:
    mkdir -p "$HOME/dosdata/{games,isos,maps,midi,utils}"
    
@sripwoud
sripwoud / README.md
Created April 19, 2023 07:27
Configure swap on zfs file systems

See openzfs or zfsonlinux instructions.

zfs create -V 4G -b $(getconf PAGESIZE) -o compression=zle \
    -o logbias=throughput -o sync=always \
    -o primarycache=metadata -o secondarycache=none \
    -o com.sun:auto-snapshot=false rpool/swap
    
mkswap -f /dev/zvol/rpool/swap
@sripwoud
sripwoud / README.md
Last active March 23, 2023 13:54
Convert gsheet into ical

Convert gsheet into ical

@sripwoud
sripwoud / README.md
Last active February 27, 2023 11:26
Participate to Ethereum KZG ceremony with a cloud server

Automation of step by step guide describe by @0xkydo here.

TLDR

bash <(curl -s https://gist.githubusercontent.com/r1oga/907092a7d835085ebce2f5886b9bafa6/raw/maybe_dl_then_contribute.sh) &&\
ssh $(cat tmp/server.txt) "nohup ./go-kzg-ceremony-client/kzgcli contribute --session-id $(cat tmp/session_id.txt) --drand > ./nohup.out 2> ./nohup.err &" &&\
echo "Done, ssh into your server later and check content of nohup.out to see status" &&\
rm -rf tmp