This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We'll just use the official Rust image rather than build our own from scratch | |
FROM docker.io/library/rust:1.54.0-slim-bullseye | |
ENV KEYRINGS /usr/local/share/keyrings | |
RUN set -eux; \ | |
mkdir -p $KEYRINGS; \ | |
apt-get update && apt-get install -y gpg curl; \ | |
# clang/lld/llvm | |
curl --fail https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > $KEYRINGS/llvm.gpg; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Source: https://bitbucket.org/seregaxvm/awesome-wm-configs/src/master/get_secret.lua | |
local Gio = require("lgi").Gio | |
local GLib = require("lgi").GLib | |
local function get_secret(attrs) | |
local bus = Gio.bus_get_sync(Gio.BusType.SESSION, nil) | |
local name = "org.freedesktop.secrets" | |
local object = "/org/freedesktop/secrets" | |
local interface = "org.freedesktop.Secret.Service" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ deepcopy.lua | |
Deep-copy function for Lua - v0.2 | |
============================== | |
- Does not overflow the stack. | |
- Maintains cyclic-references | |
- Copies metatables | |
- Maintains common upvalues between copied functions (for Lua 5.2 only) | |
TODO |