Skip to content

Instantly share code, notes, and snippets.

View nixinator's full-sized avatar
❄️
nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"

Lee Hughes nixinator

❄️
nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"
View GitHub Profile
@nixinator
nixinator / convert_url_files_to_bookmarks.sh
Created November 22, 2023 11:39 — forked from GeoffreyPlitt/convert_url_files_to_bookmarks.sh
Convert a folder of .URL files to a bookmarks.html file that can be imported into a browser
#!/bin/bash
#
# Run this script in a folder full of ".url" files, and pipe output to an HTML file.
# Example: ./convert_url_files_to_bookmarks.sh > bookmarks.html
echo "<!DOCTYPE NETSCAPE-Bookmark-file-1>"
echo '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">'
echo '<TITLE>Bookmarks</TITLE>'
echo '<H1>Bookmarks</H1>'
echo '<DL><p>'
@nixinator
nixinator / xreadkeys.c
Created November 15, 2021 10:23 — forked from javiercantero/xreadkeys.c
A X11/Xlib program that reads the KeyPress and KeyRelease events from the window and prints them to the standard output. Used to debug the keyboard within X.
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
Display *display;
Window window;
XEvent event;
int s;