Skip to content

Instantly share code, notes, and snippets.

View aristidb's full-sized avatar

Aristid Breitkreuz aristidb

  • Amsterdam, Netherlands
View GitHub Profile
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
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.
{ pkgs, config, ... }:
{
nix.buildMachines = [
{
hostName = "iridium";
maxJobs = 8;
sshKey = "/root/.ssh/id_buildfarm";
sshUser = "nixbuildfarm";
system = "x86_64-linux";
{ pkgs, config, ... }:
{
environment.systemPackages = [ pkgs.xss-lock ];
programs.slock.enable = true;
services.xserver.displayManager.sessionCommands = ''
xset s 600
xss-lock -- slock &
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
name = "rq-${version}";
version = "0.9.2";
src = fetchFromGitHub {
owner = "dflemstr";

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:

#!/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
{-# LANGUAGE ScopedTypeVariables #-}
import System.FilePath
import System.Directory
import Control.Exception
dirTree :: FilePath -> IO [FilePath]
dirTree f =
do names <- getDirectoryContents f `catch` (\(_ :: IOException) -> return [])
let paths = (map (f </>) . filter (`notElem` [".", ".."])) names
$ orifs downloads
An error has occurred!
Problem: orifs may have previously exited uncleanly
Solution:
Check the .ori/tmp/fuse directory for any files that may not have been
saved to the file systems store. You can copy or move these files to
another location. Then delete the .ori/tmp/fuse directory and all
digits count
0.0 176472744
1.0 310255395
2.0 118922421
3.0 178165178
4.0 12365998
5.0 9810739
6.0 10366160
7.0 23198464
8.0 14479226