For starting a Snap-In from CMD, stored in an arbitrary directoy:
C:\> "%windir%\System32\mmc.exe" "<path>\<filename>.msc"| -- If LuaRocks is installed, make sure that packages installed through it are | |
| -- found (e.g. lgi). If LuaRocks is not installed, do nothing. | |
| pcall require, "luarocks.loader" | |
| awesome = awesome ---@type awesome | |
| screen = screen ---@type screen | |
| client = client ---@type client | |
| awful = require "awful" ---@type awful | |
| gears = require "gears" ---@type gears |
| #!/usr/bin/env luajit | |
| local script_version = "1.1.1" | |
| local lgi = require("lgi") | |
| local GLib = lgi.GLib | |
| local UPowerGlib = lgi.UPowerGlib | |
| local function get_battery() | |
| for _, device in pairs(UPowerGlib.Client():get_devices()) do |
| /* | |
| Generated with Gradience | |
| Issues caused by theming should be reported to Gradience repository, and not to upstream | |
| https://github.com/GradienceTeam/Gradience | |
| */ | |
| @define-color accent_color #bd93f9; | |
| @define-color accent_bg_color #bd93f9; |
| local getmetatable = getmetatable | |
| local type = type | |
| local assert = assert | |
| local rawget = rawget | |
| ---@class private | |
| local _M = {} | |
| --- A helper function to check whether the type of a given parameter is correct, | |
| --- generating an error message if it is not. |
| /* ==UserStyle== | |
| @name IHK Azubiheft Fix | |
| @namespace github.com/SkyyySi | |
| @version 1.0.0 | |
| @description Ein UserCSS / UserStyle, um die Webseite der Niederrheinischen IHK zumindest ein bisschen weniger fürchterlich zu machen. | |
| @author SkyyySi | |
| @preprocessor stylus | |
| ==/UserStyle== */ | |
| $header_padding = 1em |
| #!/usr/bin/env lua | |
| local type = type | |
| local print = print | |
| local pcall = pcall | |
| local select = select | |
| local string = string | |
| local io = io | |
| local string_format = string.format |
This is a short guide on how to set up a Firefox profile with no UI (no tabs, no address-bar, no bookmarks, etc.). Note that it is written for and only tested on Arch Linux. You'll probably need to perform different steps on Windows.
firefox --no-remote --profilemanager
| local lfs = require("lfs") | |
| local _M = {} | |
| function _M.list_child_files(directory_path) | |
| local function get_full_child_paths(child_name) | |
| if (child_name == ".") or (child_name == "..") then | |
| return {} | |
| end |
| local function benchmark(func, name, times, ...) | |
| name = name or "<anonymous>" | |
| times = times or 100000 | |
| io.write(name, " --> ") | |
| io.flush() | |
| local time_start = os.clock() | |
| for i = 1, times do |