Skip to content

Instantly share code, notes, and snippets.

@PyroLagus
PyroLagus / xmonad.hs
Created January 20, 2015 22:40
xmonad config
import XMonad
import XMonad.Actions.GridSelect
import XMonad.Actions.WindowBringer
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.UrgencyHook
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.SetWMName
import XMonad.Util.Run
@PyroLagus
PyroLagus / mailmon
Created December 22, 2019 19:19 — forked from eigengrau/mailmon
E-mail notifications using IMAP IDLE (no polling)
#!/bin/zsh
#
# Trigger a command when new mail arrives on the server, using IMAP IDLE. Cf.
# <http://dwm.suckless.org/scripts/email_notifier_script>.
#
# Note that, theoretically, fetchmail can take a comma-separated list of
# multiple folders, but IDLE will only poll the first one, so if you need to
# monitor multiple mailboxes, you need to run multiple monitor instances.
#
# Passwords are read from the password store keyring by default.
@PyroLagus
PyroLagus / playground.rs
Created April 19, 2019 16:02 — forked from anonymous/playground.rs
Shared via Rust Playground
macro_rules! enum_with_str_representation {
(enum $enum_name:ident {
$($variant:ident => $nice_name:expr,)+
}) => {
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
enum $enum_name {
$($variant),+
}
impl ::std::fmt::Display for $enum_name {

Keybase proof

I hereby claim:

  • I am PyroLagus on github.
  • I am pyrolagus (https://keybase.io/pyrolagus) on keybase.
  • I have a public key whose fingerprint is 2728 CF12 DC77 54E8 74C7 2139 5626 FA71 4A69 5D88

To claim this, I am signing this object:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I have changed my standard username from codehero/c0dehero to PyroLagus.
As part of that change, I have created the new keybase account https://keybase.io/pyrolagus, which I will use from now on.
(The old account was https://keybase.io/codehero)
My official email address is now pyrolagus@nerdpol.ch, and emails meant for me should be sent to that address.
(The old email addresses were codehero@nerdpol.ch and codehero@coding4coffee.org)
Additionally, I have generated a new pgp key and revoked the old one.
I have included both my new public key and the revocation certificate for my old key below.
function Point(x, y) {
this.x = x;
this.y = y;
}
Point.prototype = {
west: function() {
return new this(this.x-1, this.y);
},
east: function() {
splitWith :: (a -> Bool) -> [a] -> [[a]]
splitWith p (x:xs) | p x = splitWith p xs
| otherwise = [x] : splitWith p xs
splitWith _ [] = []
alsa-utils
aspell
autoconf
automake
bash
bind-tools
binutils
bison
bleachbit
blender
{ stdenv, fetchFromGitHub, cmake
, wayland, pixman, libxkbcommon, udev, libinput
, libX11, libxcb, x11
, mesa #nvidia_x11
, dbus, systemd
}:
stdenv.mkDerivation rec {
name = "wlc-${version}";
version = "5453a91201";
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, wayland, xwayland, pixman, libxkbcommon, udev, libinput, libpthreadstubs
, libX11, libxcb, libXdmcp, x11, libxshmfence
, mesa #nvidia_x11
, dbus, systemd
}:
let srcs = {
wlc = fetchFromGitHub {
owner = "Cloudef";