Skip to content

Instantly share code, notes, and snippets.

@ArielLeza
ArielLeza / x11_docker_mac.md
Created March 15, 2024 00:04 — forked from cschiewek/x11_docker_mac.md
X11 in docker on macOS

To forward X11 from inside a docker container to a host running macOS

  1. Install XQuartz: https://www.xquartz.org/
  2. Launch XQuartz. Under the XQuartz menu, select Preferences
  3. Go to the security tab and ensure "Allow connections from network clients" is checked.
  4. Run xhost + ${hostname} to allow connections to the macOS host *
  5. Setup a HOSTNAME env var export HOSTNAME=`hostname`*
  6. Add the following to your docker-compose:
 environment:
@ArielLeza
ArielLeza / teleport.md
Created January 17, 2023 23:40 — forked from silvester-pari/teleport.md
[GATHER] Teleport Context Menu

Gather Teleport Context Menu

A simple script to add a "Teleport" context menu entry to the Gather interface.

How to use

Simply load up a Space on https://gather.town/, wait until the interface has loaded (you see the map and other players). Then, open up the browser's DevTools (e.g. by using F12) and copy&paste the following snippet. You should be able to see a "Teleport" entry in the other players' context menu list (same list where you can find "Locate on map", "Follow", "Spotlight"). By clicking it, you are directly teleported to that player.

Instead of copy-pasting it to the console, you could also save the snippet in the DevTools, or create a script in Tampermonkey or other browser plugins.

@ArielLeza
ArielLeza / key-management.md
Created October 31, 2022 23:09 — forked from aaronc/key-management.md
Key groups, msg and fee delegation from the Gaians team at Hackatom Berlin 2019

Fee delegation

The delegation module also allows for fee delegation via some changes to the AnteHandler and StdTx. The behavior is similar to that described above for Msg delegations except using the interface FeeAllowance instead of Capability:

// FeeAllowance defines a permission for one account to use another account's balance
// to pay fees
@ArielLeza
ArielLeza / curl-websocket.sh
Created October 14, 2022 07:13 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: