Bind remote docker.sock with SSH tunnel:
ssh -nNT -L /tmp/docker.sock:/var/run/docker.sock <USER>@<IP> &Set environment variable for local Docker client:
export DOCKER_HOST=unix:///tmp/docker.sockBind remote docker.sock with SSH tunnel:
ssh -nNT -L /tmp/docker.sock:/var/run/docker.sock <USER>@<IP> &Set environment variable for local Docker client:
export DOCKER_HOST=unix:///tmp/docker.sockRemove all keys with given prefix
eval 'local keys = redis.call("keys", ARGV[1]); redis.call("del", unpack(keys));' 0 "prefix*"| docker() { | |
| local realDocker=$(which docker) | |
| # shorter `docker ps` | |
| if [[ "$1" == "ps" ]] && [[ $* != *-q* ]] | |
| then | |
| if [[ $* == *-s* ]] | |
| then | |
| $realDocker $@ --format "table {{.Image}}\t{{.Ports}}\t{{.Status}}\t{{.Names}}\t{{.Size}}" | |
| else | |
| $realDocker $@ --format "table {{.Image}}\t{{.Ports}}\t{{.Status}}\t{{.Names}}" |
| --[[ | |
| EAT YOUR FRUITS | |
| Made this game in 48h for Ludum Dare 52 (https://ldjam.com/events/ludum-dare/52/eat-your-fruits). | |
| - [X] players should collide with tree, /!\ though, shake scale should push back | |
| - [X] fix punch (trigger far from a tree, then move to touch a tree) | |
| - [x] auto-destroy fruits if not collected | |
| - [x] set max number of collected fruits |
| Config = { | |
| Map = "aduermael.lovely_castle" | |
| } | |
| Client.OnStart = function() | |
| multi = require("multi") | |
| -- Client.OnStart is the first function called on each player device | |
| -- It's a good place to build a user interface, setup things that you |
| Config = { | |
| Map = "aduermael.hills", | |
| Items = { "jacksbertox.easel" } | |
| } | |
| ------------------- | |
| --== Constants ==-- | |
| ------------------- |
This guide will help you get set up to code Roblox games with AI using Cursor.