安装
apt install certbot python3-certbot-apache
申请Apache的SSL证书
certbot –apache
重启apache服务
/etc/init.d/apache2 restart
查看证书自动更新服务
systemctl status certbot.timer
量化自我和极简主义的窝藏点
安装
apt install certbot python3-certbot-apache
申请Apache的SSL证书
certbot –apache
重启apache服务
/etc/init.d/apache2 restart
查看证书自动更新服务
systemctl status certbot.timer
在gradle.properties,文件中添加内容
org.gradle.daemon=true
在build.gradle(:root)中,可以看到mavenCentral()拖慢,注释mavenCentral(),另外需要镜像
maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/’ }
点击File / Sync project with Gradle files
Remove this chunk of code from your build.gradle(:root) in the root directory
apply plugin: ‘com.android.application’
and
android
{
compileSdkVersion 21
buildToolsVersion “20.0.0”
defaultConfig
{
applicationId “xxx.xxx.xxx”
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName “0.5”
}
}
add below in the build.gradle(:root)
apply plugin:’base’
add below in the build.gradle(:app)
android
{
packagingOptions
{
exclude
‘AndroidManifest.xml’
}
}
环境:MacOS
查看版本:java -version
查看路径:/usr/libexec/java_home -V
Ubuntu 20.04 安装python3.9
add-apt-repository ppa:deadsnakes/ppa
apt update
apt install python3.9
#python3 -V
********************************************
Ubuntu 18.04 安装python3.8
add-apt-repository ppa:deadsnakes/ppa
apt update
apt install python3.8
#python3.8 –version
环境: SEGGER Embedded Studio for ARM v7.10, nRF5 SDK 17.1.0
使用SEGGER编译示例ble_app_uart,出现一下问题及相应的解决思路:
问题1: retarget.c:101:23: error: unknown type name ‘__printf_tag_ptr’
修改retarget.c:99
#if defined(__SES_VERSION) && (__SES_VERSION >= 34000)
#if defined(__SES_VERSION) && (__SES_VERSION >= 34000) && !defined(__SEGGER_RTL_VERSION)
问题2: “.text is larger than specified size” and “.rodata is larger than specified size”
在项目目录下找到flash_placement.xml” 找到两行
<ProgramSection alignment=”4″ load=”Yes” name=”.text” sizeof=”0x4″/> <ProgramSection alignment=”4″ load=”Yes” name=”.rodata” sizeof=”0x4″ />
将上面的sizeof=”0x4″ 删除
问题3: libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(fileops.o): in function `putchar’:”
修改”Library I/O” (under Project options >> Code >> Library) from “None” to “RTT”
Just go to App bundle explorer and remove the needed abb. You can do it with these steps:
Keep in mind that you need to detach the specific APK/Bundle from any draft releases and save it. Otherwise, the delete option will not be available.
最近MacOS上的磁盘空间只有不到十G左右,查看一下各个目录占有的空间,发现有个用户缓存空间占用了十几G的空间。
du -sh ~/Library/Caches/
排序一下:
du -sh ~/Library/Caches/* | sort -h
把排名前几个的文件删除即可
通过路径: 仪表盘 —》 媒体 —》 添加新文件
最大上传文件大小: 2MB
修改如下:
vi /etc/php/7.4/apache2/php.ini
upload_max_filesize = 32M
post_max_size = 64M
memory_limit = 128M
重启服务
service php7.4-fpm restart
systemctl restart apache2
有时间在linux服务器拷贝大量文件需要自动化脚本,为了避免输入密码,使用sshpass命令:
sshpass -p “password” scp -r local_folder root@remote_ip:/root/
添加到主屏幕(Add to Home Screen)添加到主屏幕(简称A2HS)是现代智能手机浏览器中的一项功能,使开发人员可以轻松便捷地将自己喜欢的Web应用程序(或网站)的快捷方式添加到主屏幕中,以便他们随后可以通过单点访问它。
A2HS被认为是渐进式Web应用程序哲学的一部分—为Web应用程序提供与原生应用程序相同的用户体验优势,因此它们可以在当今的生态系统战争中竞争。这部分是通过访问主屏幕上的应用程序图标来访问应用程序,然后将其整齐地显示在自己的窗口中的简单手势。A2HS使这成为可能。
iOS从11.3版本就可以使用PWA应用,Mobile Chrome / Android Webview 从31版开始支持A2HS,Opera for Android从32版开始支持,Firefox for Android从58版开始支持。