Git svn 添加忽略文件
Git svn 添加忽略文件
添加忽略文件
svn propset svn:ignore "" .
# 使用忽略文件.svnignore
svn propset svn:ignore -RF .svnignore .
svn status --no-ignore
.classpath
.factorypath
.project
logs/*
log/*
logs
log
target
.settings
Reference
Linux Posix Head
Linux Posix Head
$ echo | g++ -v -x c++ -E -
$ echo | gcc -v -x c++ -E -
- 异步IO相关的函数
<arpa/inet.h> - IP地址相关的函数
- 顾名思义directory entry
- 文件操作
- 对于多语言的支持
- 堆内存的一些高级操作和统计
- 主机名服务名协议名等等操作
<netinet/in.h> - IP地址结构的定义,已经网络主机字节序转换
<sys/socket.h> - socket相关...
Linux proxy Config
Linux proxy Config
# bash
export http_proxy=http://127.0.0.1:your port
export https_proxy=http://127.0.0.1:your port
export no_proxy=127.0.0.1,localhost
# fish
set -Ux http_proxy http://127.0.0.1:your port
set -Ux https_proxy http://127.0.0.1:your port
set -Ux no_proxy 127.0.0.1,localhost
# del evn
export http=
set -e ...
export all_proxy=so...
Flutter 调用 C/C++
Flutter 调用 C/C++
1. C/C++注意事项
dart:ffi 只能绑定C语言的符号, 所以C++需要加上
extern “C” attribute((visibility(“default”))) attribute((used))
C/C++源码建议写在ios/Classes/native_add.cpp目录, 因为CocoaPods不允许源码在
.podspec上层目录, 而gradle允许
Reference
Binding to native code using dart:ffi
Dart/Flutter ffi (Foreig Function Interface) native callbacks eg...
Linux 基本配置
Linux 基本配置
基本PATH
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
添加sudo
1. 切换root
2. vim /etc/sudoers
自动登陆
xfce
vim /etc/lightdm/lightdm.conf
[SeatDefaults]
autologin-user=username #需要登录的用户名
autologin-user-timeout=delay
无显示器, 实现运程控制
需要使用Xorg, 创建虚拟显示器
安装 xserver-xorg-core
安装 xserver-xor...
macOS NTFS和ext格式
macOS NTFS和ext格式
install osxfuse
install ntfs-3g ext2fuse ext4fuse
reboot
disable system integrity protection csrutil disable
sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk3s1 ~/ntfs-volume
Reference
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
How to enable NTFS 3G?
Installing a Custom Kernel Extension
SQL 查询
SQL 查询
group by 取最新的一条
先order by 再 groub by (order by 需要使用limit, 不然无效)
select * from (select * from ab as a order by time desc limit 10000) as b group by time;
使用max()
select * from ab as a, (select max(time) as time from ac group by time) as b, where a.time = b.time
联合多个查询结果
UNION 和 UNION ALL
UNION 会去重复 和 排序, 所以UNION ...
Java exec
Java exec
macOS JAVA env
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin
/Library/Java/JavaVirtualMachines
sudo cp -r /usr/local/opt/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk
sudo ln -sfn /usr/local/opt/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk
Linux 应用输入输出
Linux分为...
453 post articles, 57 pages.