JNI (Java Native Interface) allows implementing methods in C/C++, and use them in Java.
I use hombrew install java, java version is java 10.
$ java --version
java 10.0.2 2018-07-17| #include <linux/module.h> | |
| #include <linux/printk.h> | |
| #include <linux/fs.h> | |
| #include <linux/sched.h> | |
| #include <asm/unistd.h> | |
| #include <asm/pgtable_types.h> | |
| #include <linux/highmem.h> | |
| #include "hook_function_ptr.h" |
| /* | |
| * udpserver.c - A simple UDP echo server | |
| * usage: udpserver <port> | |
| */ | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <netdb.h> |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <sys/socket.h> | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <arpa/inet.h> | |
| int main(int argc,char **argv) |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)To remove a submodule you need to:
You’ll have to open up the evernote application on either Mac or Windows (they don’t have a linux client), right click on the notebook you want to export, and select “Export.” Select the option to export to html (either one page or several pages, depending on your preference. I went with one html page for each note).
| import socket | |
| hostname, sld, tld, port = 'www', 'integralist', 'co.uk', 80 | |
| target = '{}.{}.{}'.format(hostname, sld, tld) | |
| # create an ipv4 (AF_INET) socket object using the tcp protocol (SOCK_STREAM) | |
| client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| # connect the client | |
| # client.connect((target, port)) |
Install Package Control for easy package management.
Ctrl+`