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
#!/usr/bin/env nix-shell --pure | |
with import <nixpkgs> {}; | |
let | |
d = version: "v${lib.concatStringsSep "." (lib.take 2 (lib.splitString "." version))}"; | |
extraLibs = [ mbedtls zlib zeromq3 ]; | |
in | |
stdenv.mkDerivation rec { | |
name = "julia-${version}-env"; | |
version = julia.version; |
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
#!python3 | |
import imaplib | |
import os | |
import asyncio | |
loop = asyncio.get_event_loop() | |
conf = [x.strip().split() for x in open('mbsyncrc')] |
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
#!/bin/sh | |
name="$1" | |
shift | |
PATHS="org.mpris.MediaPlayer2.$name /org/mpris/MediaPlayer2" | |
DBUS_SEND="dbus-send --type=method_call --dest=$PATHS" | |
RC="$DBUS_SEND org.mpris.MediaPlayer2.Player" | |
if [ "$@" = "prev" ]; then | |
$RC.Previous | |
elif [ "$@" = "stop" ]; then | |
$RC.Pause |
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
{ config, pkgs, ... }: | |
let | |
hostname = "luz3"; | |
in { | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
# I use VirtualBox to connect to Windows and Linux guests |