Skip to content

Instantly share code, notes, and snippets.

public class HomeModule : NancyModule
{
[Route("/claims/{Type}")]
public class ClaimRequest
{
public string Type;
}
public class ClaimResponse
{
@shoop
shoop / keybase.md
Created November 21, 2015 19:37
Keybase claim

Keybase proof

I hereby claim:

  • I am shoop on github.
  • I am shoop (https://keybase.io/shoop) on keybase.
  • I have a public key whose fingerprint is 01F5 AB59 6949 D348 8FBC 92DD 8A97 9AED B566 7549

To claim this, I am signing this object:

@shoop
shoop / gist:4628864
Created January 24, 2013 22:35
selinux::fcontext puppet module that does not take ages to verify.
define selinux::fcontext($ensure, $type, $path, $grep) {
# Add or remove a permanent SELinux local file context to the system
# Normally this is done in a specific SELinux module but the define can
# be used for one-offs.
case $ensure {
'present': {
exec { "semanage-fcontext-$title":
command => "/usr/sbin/semanage fcontext -a -t $type '$path'",
unless => "/bin/grep -q '^$grep' /etc/selinux/targeted/contexts/files/file_contexts.local",