screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker
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
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: es-client | |
labels: | |
app: es-client | |
spec: | |
ports: | |
- port: 9200 |
The Arquillian Mockito provides a simple way to bring Mockito into the Arquillian framework.
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
diff --git a/kernel/setup.sh b/kernel/setup.sh | |
index bbb0e84..a43d757 100755 | |
--- a/kernel/setup.sh | |
+++ b/kernel/setup.sh | |
@@ -8,6 +8,7 @@ | |
tar xfa linux*.tgz | |
cd linux* | |
patch -p1 < ../lx.patch | |
+patch -p1 <../sys_accept4.patch | |
cd .. |
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 <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/ioctl.h> | |
#include "lms2012.h" | |
//The ports are designated as PORT_NUMBER-1 | |
const char PORT = 0x0; | |
const int MAX_SAMPLES = 100; | |
int main() |
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 <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned char UBYTE; //!< Basic Type used to symbolise 8 bit unsigned values | |
typedef unsigned short UWORD; //!< Basic Type used to symbolise 16 bit unsigned values | |
typedef unsigned int ULONG; //!< Basic Type used to symbolise 32 bit unsigned values | |
typedef signed char SBYTE; //!< Basic Type used to symbolise 8 bit signed values | |
typedef signed short SWORD; //!< Basic Type used to symbolise 16 bit signed values | |
typedef signed int SLONG; //!< Basic Type used to symbolise 32 bit signed values |