腾讯云轻量应用服务器 自动快照备份

[进入函数服务界面](https://console.cloud.tencent.com/scf/list) 新建函数 ![](https://hlf01.site:9000/blog/2022_06_07_15_01_10.png) [下载代码](https://raw.githubusercontent.com/wdafff/TencentLighthouseAutoSnapshot/main/Lighthouse-Auto-Snapshot.zip)... Read More

Comments: 0   Category: Default

MacOS vscode 调试运行c/c++

安装推荐的插件,确保有CodeLLDB ![](https://hlf01.site:9000/blog/2022_07_22_11_07_36.png) ![](https://hlf01.site:9000/blog/2022_07_22_11_07_08.png) 打开文件后,终端->配置默认生成任务 ![](https://hlf01.site:9000/blog/2022_07_22_11_11_25.png) 选择合适的编译器人物模板... Read More

Comments: 0   Category: Default

macOS 隐藏文件而不加点

隐藏 ```bash chflags hidden /Path/To/File ``` 取消隐藏 ```bash chflags nohidden /Path/To/File ``` 可同时增加多个文件路径 对于软链接文件(快捷方式) ```bash chflags -h hidden /Path/To/File ``` Read More

Comments: 0   Category: Default

Xcode 导入 openGL库方法

`glad.c`加入项目文件夹 其余加入`frameworks`文件夹 `project->targets->build settings->search paths->header search paths`加入`/usr/local/include` Read More

Comments: 0   Category: Default

tensorflow 1.15.0 安装 CUDA 10.0 和 cudnn 7.6.5

安装`tensorflow 1.15.0` ```bash pip3 install tensorflow==1.15.0 ``` 安装`CUDA 10.0` [下载地址](https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal) 安装好后下载`cudnn 7.6.5`... Read More

Comments: 0   Category: Default

git 设置全局账户并存储

全局账号 ```bash git config --global user.name yourname ``` 全局密码 ```bash git config --global user.password yourpasswd ``` 存储全局账号 ```bash git config --global credential.helper store ``` ----- 现在推荐使用ssh 使用账号登录需要token,不方便 Read More

Comments: 0   Category: Default

pipenv全局设置 Pipfile结构以及换源

Pipfile全局设置 ```bash #pipenv export PIPENV_VENV_IN_PROJECT=1 #在当前目录下创建虚拟环境 export PIPENV_SKIP_LOCK=1 #防止install后自动lock export PIPENV_PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple #更换为清华源 ``` Pipfile结构: ```ini [[source]] [dev-packages] [packages]... Read More

Comments: 0   Category: Default

ubuntu 20.04 Piwigo 安装

确认安装好PHP和MySQL环境 安装方法参见[ubuntu 20.04 mysql-server 8.0.28 安装](http://124.223.224.49:5000/post/58)和[ubuntu 20.04 PHP 安装](http://124.223.224.49:5000/post/77) 进入Apache2端口 ```bash cd /var/www/html ``` 获取Piwigo安装包 ```bash wget... Read More

Comments: 0   Category: Default

ubuntu 20.04 PHP 安装

安装PHP、Apache2和mysqli插件 ```bash sudo apt install php libapache2-mod-php php-mysql ``` 开启Apache2 ```bash sudo systemctl start apache2 ``` 开机自启 ```bash sudo systemctl enable apache2 ``` 网页文件放在 `/var/www/html` Read More

Comments: 0   Category: Default

Ubuntu 20.04 设置 systemd 开机启动项

在用户目录下创建`startup.sh`并写入需要开机执行的命令 增加执行权限 ```bash chmod +750 startup.sh ``` 在`/usr/lib/systemd/system`下创建`startup.service` 在`/system`下而不是`/user`下创建是因为如果使用`—user`启动,程序只在用户登陆终端后生效 编写`startup.service` ```ini [Unit] Description=Startup After=network.target... Read More

Comments: 0   Category: Default