Skip to content

Instantly share code, notes, and snippets.

View anarcat's full-sized avatar

anarcat anarcat

View GitHub Profile
@anarcat
anarcat / base.pp
Last active September 6, 2019 15:00
class base {}
@anarcat
anarcat / base.pp
Last active September 5, 2019 20:21
class base(
Stdlib::IP::Address $public_address = filter_ipv4(getfromhash($nodeinfo, 'ldap', 'ipHostNumber'))[0],
Stdlib::IP::Address $public_address6 = filter_ipv6(getfromhash($nodeinfo, 'ldap', 'ipHostNumber'))[0],
) {
Notify { 'base_ips':
message => "base::public_address: ${base::public_address} base::public_address6: ${base::public_address6} ipaddress: ${::ipaddress} ipaddress6: ${::ipaddress6}",
}
}
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.

Keybase proof

I hereby claim:

  • I am anarcat on github.
  • I am anarcat (https://keybase.io/anarcat) on keybase.
  • I have a public key ASDP8gvFSmRwrqVuGWJIxL9W1F6pmhauE2diIfvB66St8wo

To claim this, I am signing this object:

@anarcat
anarcat / namespaces.diff
Last active January 13, 2016 19:17 — forked from kyv/namespaces.diff
patch for using namespaces with git-mediawiki
From 147224cfe6143c44b16aec0bb6d6a506a6b96ced Mon Sep 17 00:00:00 2001
From: Kevin <kevin@ki-ai.org>
Date: Fri, 28 Aug 2015 15:53:37 -0500
Subject: [PATCH] Add namespace support to git-mediawiki
Signed-off-by: Kevin <kevin@ki-ai.org>
---
contrib/mw-to-git/git-remote-mediawiki.perl | 34 +++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)

A ReStructuredText Primer

Author

Richard Jones

Version

$Revision: 5801 $

Copyright

This document has been placed in the public domain.

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" /><!-- This is an automatically generated file. -->
<TITLE>Bookmarks</TITLE>
<H1 LAST_MODIFIED="1396239625">Bookmarks for anarcat from SemanticScuttle</H1>
<DL>
<DT><A HREF="https://pond.imperialviolet.org" description="For secure, synchronous communication we have OTR and, when run over Tor, this is pretty good. But while we have secure asynchronous messaging in the form of PGP email, it's not forward secure and it gratuitously leaks traffic information. While a desire for forward secure PGP is hardly new, it still hasn't materialised in a widely usable manner.
Additionally, email is used predominately for insecure communications (mailing lists, etc) and is useful because it allows previously unconnected people to communicate as long as a (public) email address is known to one party. But the flip side to this is that volume and spam are driving people to use centralised email services. These provid
@anarcat
anarcat / raw.hs
Last active December 22, 2015 16:59 — forked from mastensg/whereis2.py
type RemoteName = String
type FileName = String
type Trusted = Bool
type Present = Bool
headerWhereis :: [(RemoteName, Trusted)] -> String
headerWhereis remotes = (unlines $ zipWith format [0..] remotes) ++ (pipes (length remotes))
where
format n (name, trusted) = (pipes n) ++ "," ++ name ++ (trust trusted)
pipes = flip replicate '|'