Instructions for restoring buckets using Minio mirror features.
Install Link install link
Instructions for restoring buckets using Minio mirror features.
Install Link install link
A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.
Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:
-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
-- This table is then what holds the metamethods or metafields| # | |
| # Apple SuperDrive initialization rule | |
| # | |
| # See: https://gist.github.com/yookoala/818c1ff057e3d965980b7fd3bf8f77a6 | |
| ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw --cmdset=1 %r/sr%n EA 00 00 00 00 00 01" |
| // I had problems getting mouse movement events working in ncurses, but after | |
| // some research, it seems as if this is how you can do it. The magic is in the | |
| // printf("\033[?1003h\n") which was the missing piece in the puzzle for me | |
| // (see console_codes(4) for more information). 1003 means here that all events | |
| // (even position updates) will be reported. | |
| // | |
| // This seems to work in at least three X-based terminals that I've tested: | |
| // xterm, urxvt and gnome-terminal. It doesn't work when testing in a "normal" | |
| // terminal, with GPM enabled. Perhaps something for the next gist version? :) |