I hereby claim:
- I am haukurk on github.
- I am hauxi (https://keybase.io/hauxi) on keybase.
- I have a public key ASAuAPmKWphFhCqMR0py36c-otQlfo-JrnHHSL9xX0Hcvwo
To claim this, I am signing this object:
| #!/usr/bin/python | |
| # -*- encoding: iso-8859-1 -*- | |
| """ | |
| Python syslog client. | |
| This code is placed in the public domain by the author. | |
| Written by Christian Stigen Larsen. | |
| This is especially neat for Windows users, who (I think) don't |
| #!/bin/bash | |
| # Author: Haukur Kristinsson / Erik Kristensen | |
| # Email: haukur@hauxi.is / erik@erikkristensen.com | |
| # License: MIT | |
| # Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
| # Usage: ./check_docker_container.sh _container_id_ | |
| # | |
| # The script checks if a container is running. | |
| # OK - running |
| # return my IP addresses | |
| function myip() { | |
| ExtIP=`dig TXT +short o-o.myaddr.l.google.com @ns1.google.com` | |
| echo $ExtIP | tr -d '"' | awk '{print "external : " $1}' | |
| ifconfig lo0 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "lo0 : " $2}' | |
| ifconfig en0 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "en0 (IPv4): " $2 " " $3 " " $4 " " $5 " " $6}' | |
| ifconfig en0 | grep 'inet6 ' | sed -e 's/ / /' | awk '{print "en0 (IPv6): " $2 " " $3 " " $4 " " $5 " " $6}' | |
| ifconfig en1 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "en1 (IPv4): " $2 " " $3 " " $4 " " $5 " " $6}' | |
| ifconfig en1 | grep 'inet6 ' | sed -e 's/ / /' | awk '{print "en1 (IPv6): " $2 " " $3 " " $4 " " $5 " " $6}' | |
| } |
| input { | |
| syslog { | |
| type => "netscaler" | |
| port => "5560" | |
| } | |
| } | |
| filter { | |
| # Set tags for ASAs |
I hereby claim:
To claim this, I am signing this object:
| FROM microsoft/dotnet:1.1.1-sdk | |
| COPY ./NancyAPI.csproj /app/ | |
| WORKDIR /app/ | |
| RUN dotnet restore | |
| ADD ./ /app/ | |
| RUN dotnet publish -c Debug | |
| EXPOSE 5000 |
| using Our.Umbraco.Vorto.Extensions; | |
| using System; | |
| using Umbraco.Core.Models; | |
| namespace Umbraco.Custom.Extensions | |
| { | |
| public static class PublishContentExtensions | |
| { | |
| public static T GetNonNullableVortoValue<T>(this IPublishedContent content, string propertyAlias, T defaultValue, string cultureName = null) | |
| { |
| --deletes in Document | |
| --at this point all associated media files are deleted | |
| delete from umbracoDomains where id in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsDocument where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| --deletes in Content | |
| delete from cmsPropertyData where contentNodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsPreviewXml where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsContentVersion where ContentId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsContentXml where NodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); |
cat > main.m <<EOF
#import <objc/runtime.h>
#import <Foundation/Foundation.h>
int main () {
NSBundle *bundle = [NSBundle bundleWithPath:@"/Applications/Utilities/Keychain Access.app/Contents/Resources/Keychain.menu"];
Class principalClass = [bundle principalClass];
| from abc import ABC, ABCMeta, abstractmethod | |
| from collections import namedtuple | |
| from itertools import count | |
| PayloadFactory = namedtuple('PayloadFactory', [ | |
| 'good', 'created', 'queued', 'unchanged', 'requires_auth', | |
| 'permission_denied', 'not_found', 'invalid', 'error' | |
| ]) | |
| """ |