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 <iostream> | |
void subFunction(int&& i) { | |
std::cout << __PRETTY_FUNCTION__ << std::endl; | |
} | |
void subFunction(int& i) { | |
std::cout << __PRETTY_FUNCTION__ << std::endl; | |
} |
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 <iostream> | |
#include <cstring> | |
#include <vector> | |
class Cat { | |
private: | |
char * _data; | |
const int _length = 1024; | |
public: |
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/bash | |
LOCAL_BUILD_PC="`whoami`@`hostname`" | |
[ -z "$REMOTE_TESTBED" ] && REMOTE_TESTBED="root@diag-memory-nv21" | |
REMOTE_MOUNT_POINT="~/`whoami`/testenv" | |
mount_remote() { | |
MOUNT_POINT="$1" | |
if [ -z "$MOUNT_POINT" ]; then echo "missing param" exit 1; fi | |
echo "Mounting $MOUNT_POINT to $REMOTE_MOUNT_POINT..." |
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
CC = gcc | |
CFLAGS = -I/usr/include/libnl3 | |
CFLAGS += -Wall -g | |
LDFLAGS = -L/usr/lib | |
LDLIBS = -lcrypto -lnl-3 -lnl-genl-3 | |
TARGETS = wiphy |
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
KDIR := /home/chriz/repositories/WSL2-Linux-Kernel/ | |
obj-m += chriz_ioctl_kernel.o | |
all: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules | |
gcc -o chriz_ioctl_user chriz_ioctl_user.c | |
clean: | |
rm -rf *.o *.ko *.mod.* *.cmd .module* modules* Module* .*.cmd .tmp* |
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
KDIR := /home/chriz/repositories/WSL2-Linux-Kernel/ | |
obj-m += chriz_netlink_kernel.o | |
all: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules | |
gcc -o chriz_netlink_user chriz_netlink_user.c | |
clean: | |
rm -rf *.o *.ko *.mod.* *.cmd .module* modules* Module* .*.cmd .tmp* |