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 <unistd.h> | |
int | |
main() | |
{ | |
for(;;) | |
sleep(10); | |
} |
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
--- a/Modules/makesetup 2015-02-25 06:27:46.000000000 -0500 | |
+++ b/Modules/makesetup 2015-11-11 16:18:44.831994585 -0500 | |
@@ -128,7 +128,7 @@ | |
# Output DEFS in reverse order so first definition overrides | |
case $line in | |
- *=*) DEFS="$line$NL$DEFS"; continue;; | |
+ [A-Za-z]*=*) DEFS="$line$NL$DEFS"; continue;; | |
'include '*) DEFS="$line$NL$DEFS"; continue;; | |
'*noobjects*') |
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
/* | |
* Monitor GPIO for button press | |
* https://www.kernel.org/doc/Documentation/gpio/gpio.txt | |
* drivers/gpio/gpiolib.c | |
* | |
* This is a simple kernel module to detect the duration of a button press on a Raspberry Pi 2. | |
* The button press durations are stored in a kfifo. A character device can be read, and the | |
* next available button press will be sent to user space. Only one process can read from | |
* the character device at a time. | |
* |
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
# XXX | |
# When building the latest version of Python (3.5.1) some binaries are built in order | |
# to build other binaries. For example, we need the Parser/pgen binary to generate a | |
# parser from the Grammar file. This requires us to build some *host* binaries before | |
# we apply patches and build the target (-rumprun) version of Python. | |
# | |
# The problem is that the 'hostbuild' task looks like it could be done better. I'm | |
# looking for ideas to improve that piece. | |
include ../Makefile.inc |
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
[negroni] Completed 200 OK in 3.955256ms | |
[negroni] Started GET /authfail | |
[negroni] Completed 200 OK in 10.011542ms | |
[negroni] Started GET /authfail | |
[negroni] Completed 200 OK in 9.598809ms | |
[negroni] Started GET /authfail | |
[negroni] Completed 200 OK in 11.324298ms | |
[negroni] Started GET /authfail | |
cannot handle page request order 16/0x1000! | |
panic: fatal error: malloc deadlock |
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
volatile uint8_t recv_buf[BUF_LEN]; | |
volatile uint8_t recv_buf_idx = 0; | |
/* ... */ | |
/* EUSCI A0 UART ISR - Echoes data back to PC host */ | |
void euscia0_isr(void) | |
{ | |
// If this interrupt is an RX interrupt | |
if (EUSCI_A_CMSIS(EUSCI_A0_MODULE)->rIE.r & EUSCI_A_UART_RECEIVE_INTERRUPT) { |
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
// While we are supposed to be processing, make sure to reestablish the | |
// client connection if anything unexpected happens. | |
for processing { | |
ch, err := client.Watch() | |
if err != nil { | |
glog.Error(err) | |
} else { | |
validChannel := true | |
msg := Event{} |
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
if msg.Type == ADDED || msg.Type == MODIFIED { | |
var service discovery.Service | |
// ClusterIP services are only accessible inside the cluster. They | |
// should be located with env vars provided by k8s. We will only announce | |
// externally available services here. | |
if msg.Object.Spec.Type == LOADBALANCER { | |
endpoints := make([]string, 0, len(msg.Object.Spec.Ports)*len(msg.Object.Status.LoadBalancer.Ingress)) | |
for _, ingress := range msg.Object.Status.LoadBalancer.Ingress { | |
for _, port := range msg.Object.Spec.Ports { |
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
APP_SRC=${GOPATH} | |
APP_BIN=bin | |
BINARY=test-service | |
VERSION=0.2.1 | |
.PHONY: all | |
all: dev | |
.PHONY: clean | |
clean: |
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
#!/bin/sh | |
export KUBE_VERSION=1.2.4 | |
export ETCD_VERSION=2.3.5 | |
export nodes="[email protected]" | |
export role="ai i i" | |
export NUM_NODES=1 | |
# The range must match the Vagrant private network |