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/packer build redis.json | |
docker output will be in this color. | |
==> docker: Creating a temporary directory for sharing data... | |
==> docker: Pulling Docker image: debian:jessie-slim | |
docker: Trying to pull repository registry.fedoraproject.org/debian ... | |
docker: Trying to pull repository registry.access.redhat.com/debian ... | |
docker: Trying to pull repository docker.io/library/debian ... | |
docker: 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) | |
{ | |
char *newargv[] = { NULL, "-l", NULL }; | |
char *newenviron[] = { NULL }; | |
newargv[0] = argv[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
/* | |
* Here's a sample kernel module showing the use of jprobes to dump | |
* the arguments of third-party network driver for Bercut ETN. | |
* | |
* For more information on theory of operation of jprobes, see | |
* Documentation/kprobes.txt | |
* | |
* Build and insert the kernel module as done in the kprobe example. | |
* You will see the trace data in /var/log/messages and on the | |
* console whenever do_fork() is invoked to create a new process. |
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
CFLAGS_keynotifier.o := -I$(src) | |
obj-m := keynotifier.o | |
KDIR := /lib/modules/$(shell uname -r)/build | |
module: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules |
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
/* | |
* jhash.c - Simple Jenkins hash. | |
* | |
* Copyright (C) 2006. Bob Jenkins (bob_jenkins@burtleburtle.net) | |
* http://burtleburtle.net/bob/hash/ | |
* | |
* Sources taken from Linux kernel implementation. | |
* Copyright (C) 2009-2010 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu) | |
* | |
* Turned into userspace program by avd |