openwrt 多播 Linux 初始化安装 opkg update # 安装中文 opkg install luci-i18n-base-zh-cn # 安装 macvlan, mwam3 opkg install kmod-macvlan mwan3 luci-app-mwan3 luci-i18n-mwan3-zh-cn 配
Linux 开机自启 Linux 以rclone为例 创建文件 vi etc/init.d/rclone.sh #! /bin/sh export RCLONE_DRIVE_ACKNOWLEDGE_ABUSE=true rclone mount GoogleDrive:/ /root/fileServer/GoogleDrive
Linux设置samba共享目录 Linux 安装 samba sudo apt-get install samba 修改配置文件 sudo vi /etc/samba/smb.conf 在最下面添加共享目录 [home] #共享目录 path = /home/gwkang #有效用户 valid user = gwkang public =
C++11 中 std function 和 std bind 使用例子 C++ C++11 中 std::function 和 std::bind 使用例子 代码 #include <functional> #include <iostream> using namespace std; class Test { public: double test(int a,
Go调用C C++(cgo) C++ Go调用C/C++(cgo) 1. 直接调用代码 package main /* #include <stdio.h> // 结构体 typedef struct { char * name; int age; //double d; }Person; // 函数调用传参 void pr
slice和string互转 Golang slice和string互转 // StringToBytes converts string to byte slice without a memory allocation. func StringToBytes(s string) []byte { return *(*[]byte<