{"id":16337587,"url":"https://github.com/kstep/lua_mod","last_synced_at":"2025-10-14T08:37:12.261Z","repository":{"id":66771666,"uuid":"90509","full_name":"kstep/lua_mod","owner":"kstep","description":"Lua modules for FreeBSD and more...","archived":false,"fork":false,"pushed_at":"2011-03-12T05:22:34.000Z","size":140,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T04:37:06.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kstep.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-12-14T21:19:28.000Z","updated_at":"2021-04-30T19:08:51.000Z","dependencies_parsed_at":"2023-02-20T11:15:29.715Z","dependency_job_id":null,"html_url":"https://github.com/kstep/lua_mod","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstep%2Flua_mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstep%2Flua_mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstep%2Flua_mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstep%2Flua_mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kstep","download_url":"https://codeload.github.com/kstep/lua_mod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301513,"owners_count":21080905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:47:27.050Z","updated_at":"2025-10-14T08:37:07.226Z","avatar_url":"https://github.com/kstep.png","language":"C","readme":"Small FAQ.\n\nQ: What's this?\nA: It's my set of Lua libraries to help controlling my FreeBSD system\n(mainly to get some system info for Awesome widgets).\n\nQ: What OS does it work for?\nA: FreeBSD 7.0 and up.\n\nQ: Does it work on FreeBSD only? What about Linux?\nA: I wrote it for myself at first, and my primary OS is FreeBSD.\nI expect some libs will work for Linux (lmixer), while other will\nhardly do so (lsysctl). Well, I never tested all this staff on Linux,\nso if you manage to run them on your Linux-box please report me\nyour OS :)\n\nQ: What all these files for?\nA: Libraries I use constantly are:\n\n\t* lmixer.c - controls mixer device: get and set volume levels,\n\t* lsysctl.c - Lua interface to FreeBSD's sysctl(3) system,\n\t* lmntinfo.c - get info about mounted file systems (I use it to fetch\n\t  free space on my hdds), interface to FreeBSD's getmntinfo(3) system call,\n\t* lmpdc.c - Lua interface to MPD (Music Player Daemon), can control playback,\n\t  set different playback parameters (like looping \u0026 random playing),\n\t  list playlist, get info about current playing song etc.\n\nQ: What about other libs?\nA: There're some libs under development state and some helper libs which\nyou can use to make life simplier:\n\n\t* lbit.c - adds bitwise operations to Lua: you can perform bitwise\n\t  \"or\", \"and\", \"xor\", \"not and\", \"shift left\" \u0026 \"shift right\" just like\n\t  in C (|, \u0026, ^, ! (a \u0026 b), \u003c\u003c, \u003e\u003e),\n\t* lifaddrs.c - interface to FreeBSD's getifaddrs(3) system call - EXPRIMENTAL!,\n\t* lsocket.c - interface to FreeBSD's socket(2) system - EXPRIMENTAL!,\n\nQ: And what about *.lua files in the repo?\nA: Yes, it's examples of usage corresponding libraries!\nFeel free to play with them to make out how does all these things work.\n\nQ: Can I see better documentation?\nA: Sorry, docs are in C \u0026 Lua languages now. Not sure if I ever write some\nbetter docs, but if you manage to do it, email me, I will be very glad to put\nit into repository.\n\nQ: I found a bug!\nA: Wonderful! Email me bug description, the way of repoduction \u0026 a patch\n(if possible, of cause). I will try to fix it ASAP.\n\nQ: What about licensing?\nA: The whole thing is free! Consider it's under GPL or any compatible license.\n\nQ: How can I contact you?\nA: My email is milezv@yandex.ru. Feel free to send feedbacks!\nI will be vary glad it my work is required among people.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstep%2Flua_mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkstep%2Flua_mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstep%2Flua_mod/lists"}