This file contains 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 <errno.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <signal.h> | |
static pthread_t thr; | |
static pthread_mutex_t mtx1 = PTHREAD_MUTEX_INITIALIZER; | |
static pthread_cond_t cond1 = PTHREAD_COND_INITIALIZER; | |
static pthread_mutex_t mtx2 = PTHREAD_MUTEX_INITIALIZER; |
This file contains 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
IPL:HARD-RESET | |
memory test ... ok | |
flinstall OK | |
boot version: 1.0.0 | |
PKG "3x3LIGHTNING" | |
CPU "Atheros/QCA9558" | |
Revision 113.0 CLOCK 720.0 MHz | |
HEAP MEMORY 262144 bytes |
This file contains 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
IPL:HARD-RESET | |
memory test ... ok | |
flinstall OK | |
boot version: 1.0.0 | |
PKG "3x3LIGHTNING" | |
CPU "Atheros/QCA9558" | |
Revision 113.0 CLOCK 720.0 MHz | |
HEAP MEMORY 262144 bytes |
This file contains 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
[app:main] | |
use = call:server:paster_main | |
[server:main] | |
use = egg:gunicorn#main | |
host = 0.0.0.0 | |
port = 8000 | |
workers = 1 |
This file contains 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 docker:dind | |
RUN apk add dumb-init | |
COPY start.sh / | |
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | |
CMD ["/start.sh"] |
This file contains 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 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 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 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 ctypes | |
__all__ = ( | |
'ProcessSerialNumber', | |
'TransformProcessType', | |
'SetFrontProcess', | |
'kProcessTransformToForegroundApplication', | |
'kProcessTransformToBackgroundApplication', | |
'kProcessTransformToUIElementAppication', | |
'kNoProcess', |
This file contains 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
#!/bin/sh -e | |
# chkconfig: 345 99 01 | |
# description: Percona Toolkit heartbeat daemon | |
### BEGIN INIT INFO | |
# Provides: pt-heartbeat | |
# Required-Start: mysql | |
# Required-Stop: $local_fs $network $remote_fs | |
# Default-Start: 3 4 5 | |
# Default-Stop: 0 1 2 6 | |
# Short-Description: start and stop pt-heartbeat |