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
{ stdenv, fetchurl }: | |
stdenv.mkDerivation rec { | |
name = "your-program-${version}"; | |
version = "1.2.3"; | |
src = fetchurl { | |
url = "https://your-program.com/download/v${version}.tar.gz"; | |
sha256 = "05s3kvsz6pzh4.......lqwg0qn0ljz58sdqh"; | |
}; |
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
"use strict"; | |
// from http://stackoverflow.com/a/11454049/309483 | |
var combine = function (m, n) { | |
var a = m.length, c = '', count = 0, i; | |
for (i = 0; i < a; i++) { | |
if (m[i] === n[i]) { | |
c += m[i]; | |
} else if (m[i] !== n[i]) { |
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 python | |
# avahi-alias.py | |
import avahi, dbus | |
from encodings.idna import ToASCII | |
import logging | |
# Got these from /usr/include/avahi-common/defs.h | |
CLASS_IN = 0x01 | |
TYPE_CNAME = 0x05 |
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 python | |
""" Convert an image (argv[1]) to an ANSI text string (xterm-256color) | |
Original readme from colortrans.py follows: | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: |