Skip to content

Instantly share code, notes, and snippets.

View aristidb's full-sized avatar

Aristid Breitkreuz aristidb

  • Amsterdam, Netherlands
View GitHub Profile
#!/bin/sh
rm -f /run/crypted.key
mkfifo -m a=w,u=rw /run/crypted.key || exit 1
while ! cryptsetup open --type luks --key-file /run/crypted.key /dev/BLA decrypted
do
sleep 5
echo Try again...
done

Keybase proof

I hereby claim:

  • I am aristidb on github.
  • I am aristidb (https://keybase.io/aristidb) on keybase.
  • I have a public key ASAxn-BHYwB88Y0w-hU8bsheLId_r9AkAuWIxZW0hJNSZAo

To claim this, I am signing this object:

{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
name = "rq-${version}";
version = "0.9.2";
src = fetchFromGitHub {
owner = "dflemstr";
{ pkgs, config, ... }:
{
environment.systemPackages = [ pkgs.xss-lock ];
programs.slock.enable = true;
services.xserver.displayManager.sessionCommands = ''
xset s 600
xss-lock -- slock &
{ pkgs, config, ... }:
{
nix.buildMachines = [
{
hostName = "iridium";
maxJobs = 8;
sshKey = "/root/.ssh/id_buildfarm";
sshUser = "nixbuildfarm";
system = "x86_64-linux";
builder for '/nix/store/5a00rqavnjk83naq1h6mgmbdgc1v1f0r-webkitgtk-2.20.0.drv' failed with exit code 1; last 10 log lines:
from ../Source/JavaScriptCore/heap/Heap.h:33,
from ../Source/JavaScriptCore/heap/DeferGC.h:29,
from ../Source/JavaScriptCore/runtime/ConcurrentJSLock.h:28,
from ../Source/JavaScriptCore/bytecode/ArrayProfile.h:28,
from ../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
../Source/JavaScriptCore/API/JSHeapFinalizerPrivate.h:29:41: fatal error: JavaScriptCore/JSContextRef.h: No such file or directory
#include <JavaScriptCore/JSContextRef.h>
^
compilation terminated.
function Calculator:expression(expr)
local res
local function match(pattern)
local pos
_, pos, res = expr:find(pattern)
if pos then
expr = expr:sub(pos+1)
end
return pos
end