Skip to content

Instantly share code, notes, and snippets.

View vilmibm's full-sized avatar
📼

Nate Smith vilmibm

📼
View GitHub Profile
:hierarchy:
- common
:backends:
- yaml
- module_data
:yaml:
:datadir: /etc/puppet/hieradata

how to read and post usenet stuff on tilde.town

  1. run "alpine"
  2. press "s" for Setup
  3. press "c" for Configure
  4. arrow down to "NNTP Servers" and hit enter
  5. input "tilde.town" and hit enter
  6. hit "e" for Exit
  7. hit "y" to save configuration change
  8. You should be back at the main menu. Select "Folder list"
@vilmibm
vilmibm / gist:d7198b25d1adc0e149af
Created October 28, 2014 00:51
vilmibm pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Qcos5+YfdjSpjd0yitfMToo6N/XRvSVFxFxqSXw2knWhlDfBUGzx2WUg/qd25s5BxRyUGbr4+PuH9W9rAu7cC+HKL3RzV+inBNUOSjaz2lCFAmz4C0ypP6dcBNk63r6g2Yhg1R4tFSUJzROFQRPrJuRv58qXbvEkwwxcc+Awmu8T3FbV1e+HSw0D1ZcbrUJP9t4p2uMwIPlaYji/6JuwrcHJLNHojclV7AA0QSewAX3Z742OmU35HtnqyYFPDSOWRDqisnj0JOT8Ltnv9jzKasbXWfhNQ2lPL7UFCuM3Ceq4p6uHQWJ9hxvlyY7+b7Du+xPzmL7Lt7/zvmTOQInN
#!/bin/bash
POETRYHOME=/var/local/poetry
help () {
cat << EOM
usage: $0 [-t templatefile] [-d dbname] [-h]
t: pick a template file. if not an absolute path, uses $POETRYHOME/templates/\$t.json
default: $POETRYHOME/templates/haiku.json
@vilmibm
vilmibm / ~usenet.md
Created November 1, 2014 18:19
tilde usenet with inn2 -- manual instructions

tilde usenet with inn2

This document describes how to configure inn2 on your server. I do not claim to be a usenet expert. These are just the things I picked up connecting tilde.town to tilde.club and others. All of this stuff is done for you if you use puppet-tilde.

Installation

Ensure that inn2 is installed on your system. It should be available as a package. These directions assume inn2 2.5.x.

{:user {:plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT"]
[refactor-nrepl "1.1.0-SNAPSHOT" :exclusions [org.clojure/clojure] ]]
:dependencies [[alembic "0.3.2"]
[pjstadig/humane-test-output "0.7.0"]
[org.clojure/tools.nrepl "0.2.10"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]}}
(def User
{:name s/Str
:password s/Str
(s/optional-key :lastseen) s/Str
:data (type {})})
def command(endpoint, payload, version=@version)
path = "/commands"
payload = JSON.generate({'command' => command,
'version' => version,
'payload' => payload})
debug("#{path} #{payload}")
ret = self.class.post(
client.command(1) # says i'm passing one argument
client.command(1,2) # says i'm passing zero arguments
client.command(1,2,3) # says i'm passing zero arguments
client.command(1, 2, 3, 4) # says i'm passing four arguments
require 'httparty'
require 'logger'
module PuppetDB
class APIError < Exception
attr_reader :code, :response
def initialize(response)
@response = response
end
end