程序员自我救赎

记录程序员救赎之道

理解和解决苹果审核4.3(a)

背景:有一app由flutter+native代码组成,由于账户的原因app被下架。

一、于是有了以下尝试和猜想:

1、更换一个新的账号,仅更换了bundleID,直接打包原来的项目进行上传。结果就是4.3a。

1
2
3
4
5
6
7
8
9
10
Guideline 4.3(a) - Design - Spam

We noticed your app shares a similar binary, metadata, and/or concept as apps submitted to the App Store by other developers, with only minor differences.
我们注意到,您的应用程序与其他开发者提交到 App Store 的应用程序具有相似的二进制、元数据和 / 或概念,只有细微差异。
Submitting similar or repackaged apps is a form of spam that creates clutter and makes it difficult for users to discover new apps.
提交类似或重新包装的应用程序是一种垃圾邮件形式,会造成混乱,并使用户难以发现新的应用程序。
Next Steps
下一步
Since we do not accept spam apps on the App Store, we encourage you to review your app concept and submit a unique app with distinct content and functionality.
由于我们不接受 App Store 上的垃圾应用,我们鼓励您审视您的应用概念,并提交一个具有独特内容和功能的独特应用。
阅读全文 »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

问题

启动mysql后,配置文件未生效,mysql命令登录发现警告

1
World-writable config file '/etc/mysql/my.cnf' is ignored.

解决

1
sudo chmod 664 /etc/mysql/my.cnf

docker

1
docker exec -it mysql chmod 664 /etc/mysql/my.cnf

重启mysql

原因

权限为777的配置文件任何人都可以修改mysql认为有安全问题,因此忽略。

使用apktool 解包apk和封包apk,文档及安装地址:连接

1、解包

1
apktool d xxx.apk

解包错误尝试

1
apktool d xxx.apk --only-main-classes

2、重新打包

1
apktool b xxx -o newxxx.apk

3、签名

1
apksign

Docker

Docker安装

1、卸载

script
1
2
3
4
5
6
7
8
9
10
11
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine \
docker-ce
阅读全文 »

Android命令行

签名

1
2
3
对apk v1签名:jarsigner -verbose -keystore 签名地址 -signedjar 生成路径 源文件路径 别名
对apk 二签名:apksigner sign --ks (签名地址) --ks-key-alias (别名) --out (签名后的apk地址) (待签名apk地址)

阅读全文 »

flac convert to mp3

1
find . -name "*.flac" -exec ffmpeg -i {} -ab 320k -map_metadata 0 -id3v2_version 3 {}.mp3 \;

shell连续执行多条命令

1
2
3
cmd1 执行完执行cmd2:  cmd1 ; cmd2
cmd1 执行成功执行cmd2: cmd1 && cmd2
cmd1 执行失败执行cmd2: cmd1 || cmd2

音频文件修改信息,成功删除源文件

1
ffmpeg -i xxx.flac -metadata artist="本兮" xxx.flac.flac -y && mv xxx.flac.flac xxx.flac

为音频文件增加20分贝音量

1
ffmpeg -y -i {inFile} -af volume=20dB {outFile}

pcm convert to mp3

1
ffmpeg -f s16le -ar 44100 -ac 2 -i input.pcm -f mp3 -codec:a libmp3lame -q:a 4 output.mp3

pcm convert to wav

1
-ar 24000 -ac 1 -f s16le -i file.pcm -bitexact file.wav

使用systemd管理服务,包括启动、停止、配置后台运行和设置开机自启动。

安装systemd

1
2
3
4
5
6
# 使用 yum 安装 systemd(CentOS/RHEL)
yum install systemd

# 使用 apt 安装 systemd(Debian/Ubuntu)
apt install systemd

阅读全文 »
0%