Skip to content

Instantly share code, notes, and snippets.

View ArdaXi's full-sized avatar

Ariën Holthuizen ArdaXi

View GitHub Profile
use anyhow::{anyhow, bail, Context, Error, Result};
use itertools::Itertools;
use std::convert::TryFrom;
use std::io::{stdin, BufRead};
#[derive(Clone, Debug)]
struct Line {
min: usize,
max: usize,
letter: char,

Keybase proof

I hereby claim:

  • I am ardaxi on github.
  • I am ardaxi (https://keybase.io/ardaxi) on keybase.
  • I have a public key ASDSA-cpL6weFfe6tnJijYggzXtTGX29ekzRAAVZHJ-9Lwo

To claim this, I am signing this object:

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.taskserver;
taskdConfig = pkgs.writeText "taskserver-config"
''
root=${cfg.dataDir}
server=${cfg.listenAddress}
{ config, libs, pkgs, ... }:
with lib;
let
cfg = config.services.taskserver;
taskdConfig = pkgs.writeText "taskserver-config"
''
root=${cfg.dataDir}
server=${cfg.listenAddress}
@ArdaXi
ArdaXi / default.nix
Created December 29, 2015 13:23
firefox-bin-28
{ stdenv, fetchurl, config
, alsaLib
, atk
, cairo
, cups
, dbus_glib
, dbus_libs
, fontconfig
, freetype
, gconf
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tue Mar 18 14:33:32 CET 2014

Greetings earthlings et al,

A little over two years ago, I first generated a GPG key that I have been using actively. I’d like to think I’ve always used it securely, but I am always looking for ways to improve security. Therefore, I recently acquired a GnuPG-

Keybase proof

I hereby claim:

  • I am ArdaXi on github.
  • I am ardaxi (https://keybase.io/ardaxi) on keybase.
  • I have a public key whose fingerprint is E484 F236 27D3 A57C 62DA B304 86D2 133C 73F8 0E16 To claim this, I am signing this object:
{
    "body": {
        "key": {
@ArdaXi
ArdaXi / xlockmore
Last active December 14, 2015 02:29
customizepkg.d for minimal xlockmore
replace#global#--with-gtk2#--without-gtk2 --enable-blank-only --without-magick --without-mesa --without-opengl --without-xpm --without-motif --without-freetype
remove#depends#freetype2
remove#depends#gtk2
remove#depends#libxpm
remove#depends#lesstif
remove#depends#glu
remove#makedepends#mesa
@ArdaXi
ArdaXi / lock
Last active December 14, 2015 02:28
#!/bin/bash
command -v xlock > /dev/null 2>/dev/null || exec notify-send -u critical 'xlock is missing'
exec xlock -mode blank
@ArdaXi
ArdaXi / zen.js
Created October 14, 2012 15:14
Zen
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
var url = tab.url;
var js;
// Populate js with Javascript for url
chrome.tabs.executeScript(tabId, {code:js});
});