This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function lz4decodeframes($in) { | |
if (substr($in, 0, 4) !== "\x04\x22\x4d\x18") { | |
throw new Exception(); | |
} | |
$o = 6; | |
$f = ord($in[4]); | |
if ($f & 8) { | |
$o += 8; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2014 The Go Authors. All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above | |
copyright notice, this list of conditions and the following disclaimer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"context" | |
"sync/atomic" | |
"time" | |
) | |
type Contexts struct { | |
ReaderContext context.Context | |
ReaderCancel context.CancelFunc | |
WriterContext context.Context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dn: CN=sshPublicKey,CN=Schema,CN=Configuration,DC=testing,DC=example,DC=com | |
changetype: add | |
cn: sshPublicKey | |
name: sshPublicKey | |
lDAPDisplayName: sshPublicKey | |
adminDisplayName: sshPublicKey | |
objectClass: attributeSchema | |
attributeID: 1.3.6.1.4.1.24552.500.1.1.1.13 | |
attributeSyntax: 2.5.5.10 | |
schemaIDGUID:: +jduGq6aTj+LLL7JZhfWpw== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.6 | |
RUN apk update && apk add nfs-utils openrc rsyslog | |
EXPOSE 2049 2050 2051 2052 | |
VOLUME /export | |
RUN (\ | |
echo '$ModLoad omstdout.so'; \ | |
echo '$ModLoad imuxsock.so'; \ | |
echo '$ModLoad imklog.so'; \ | |
echo '*.* :omstdout:'; \ | |
) > /etc/rsyslog.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import json | |
from urllib.parse import urljoin | |
import urllib.request | |
TKK = [411121, 3613763667] | |
def Tj(a, b): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyramid.config import Configurator | |
from pyramid.config.predicates import RequestMethodPredicate | |
from pyramid.config.util import as_sorted_tuple | |
from pyramid.compat import string_types, text_type | |
from pyramid.response import Response | |
from pyramid.httpexceptions import HTTPMethodNotAllowed | |
from pyramid.view import view_config | |
from pyramid.viewderivers import predicated_view, INGRESS | |
from webtest import TestApp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import timedelta | |
import http.server | |
import mock | |
import socket | |
import socketserver | |
import ssl | |
import tempfile | |
import time | |
import threading | |
import urllib.request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$type = Add-Type ` | |
-TypeDefinition @' | |
using System; | |
using System.Runtime.InteropServices; | |
[Flags] | |
public enum FileMapAccess : uint | |
{ | |
FileMapCopy = 0x0001, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <CoreServices/CoreServices.h> | |
static OSErr create_application_desc_from_bundle_id(AEAddressDesc *event, const char *bundle) | |
{ | |
OSErr err; | |
return AECreateDesc( | |
typeApplicationBundleID, |