Skip to content

Instantly share code, notes, and snippets.

@metacoma
metacoma / gist:e3b4a965c3574cdd9abecb4699864922
Created November 13, 2020 08:37
tmuxinator-default.yml
name: <%= name %>
root: .
startup_window: <%= name %>
on_project_start: "grep -q '^set -g pane-border-status top$' ~/.tmux.conf 2>/dev/null || echo 'set -g pane-border-status top' >> ~/.tmux.conf"
PRE: &PRE
- alias pane_title="printf '\033]2;%s\033\\' $1"
- alias tmux_layout="tmux list-windows | sed -Ern '/\*/ {s/.*layout ([^]]+).*/\1/p}'"
### Keybase proof
I hereby claim:
* I am metacoma on github.
* I am bebebeko (https://keybase.io/bebebeko) on keybase.
* I have a public key ASC1Gqjn0c8Bghg7wdDU02tLr3QhBu3mPyVYX4zhnxKF0go
To claim this, I am signing this object:
local tcp = socket:tcp()
local connection, err = tcp:connect("127.0.0.1", 3333)
if (err ~= nil) then
error("Connection error")
end
local conn = np.attach(tcp, "bebebeko", "")
local data = require'data'
local np = require'9p'
local socket = require 'socket'
local pprint = require 'pprint'
local tcp = socket:tcp()
local connection, err = tcp:connect("127.0.0.1", 3333)
; mount -A tcp!192.168.1.136!5555 /mnt/9front
; bind /mnt/9front/mnt/plumb/send /tmp/chan/plumb.input
; lc /tmp/chan
plumb.input
; ns
bind -b '#^' /dev
bind -b '#m' /dev
bind -b '#c' /dev
bind '#p' /prog
bind '#d' /fd
/tmp/mnt/aws/
/tmp/mnt/aws/regions
/tmp/mnt/aws/regions/eu-north-
/tmp/mnt/aws/regions/eu-north-1/ec
/tmp/mnt/aws/regions/eu-north-1/eks
/tmp/mnt/aws/regions/ap-south-
/tmp/mnt/aws/regions/ap-south-1/ec
/tmp/mnt/aws/regions/ap-south-1/eks
/tmp/mnt/aws/regions/eu-west-
/tmp/mnt/aws/regions/eu-west-3/ec
#!/bin/sh
echo $1 | awk -F/ '
function output_fuse_dir(path) {
return sprintf("ino=1 mode=drwxr-xr-x nlink=1 uid=0 gid=0 rdev=0 size=1024 blksize=512 blocks=2 atime=0 mtime=0 ctime=0 %s\0", $0)
}
function environment_args(path, regex) {
vars = ""
r = match(path, /^\/([^\/]+)\//, groups)
printf("r = %s\n", r)
paths:
"/":
cmd: aws ec2 describe-regions
output: *aws-describe-regions
cache: 400
# /us-east-1/ec2/
"/([a-z-0-9]+)/ec2/":
cmd: aws ec2 describe-instances --region $ARG_1
#!/bin/sh
if [ "$1" = "/" ]; then
echo 'ino=1 mode=drwxr-xr-x nlink=1 uid=0 gid=0 rdev=0 size=1224 blksize=512 blocks=2 atime=0 mtime=0 ctime=0 '
elif [ "$1" = "/README" -o "$1" = "/README1" ]; then
echo 'ino=1 mode=-rwxr-xr-x nlink=1 uid=0 gid=0 rdev=0 size=1111 blksize=512 blocks=2 atime=0 mtime=0 ctime=0 '
elif [ -n "`echo $1 | grep ami-`" ]; then
echo 'ino=1 mode=-rwxr-xr-x nlink=1 uid=0 gid=0 rdev=0 size=1111 blksize=512 blocks=2 atime=0 mtime=0 ctime=0 '
elif [ "$1" = "/createme" ]; then
-- register line
minetest.registry_line({
initial_properties = {
color = "black",
width = "10"
},
on_touch = function(player, ....) {
}