@wangdada #138 怎么方便的解密 Base64 啊?有没有插件推荐一个。
试试我分享的油猴脚本在 V2EX 帖子详情页自动发现 Base64 字符串并在其后追加解码结果,测试效果如下。
① 、未使用插件时显示
@wangdada #138 怎么方便的解密 Base64 啊?有没有插件推荐一个。
试试我分享的油猴脚本在 V2EX 帖子详情页自动发现 Base64 字符串并在其后追加解码结果,测试效果如下。
① 、未使用插件时显示
| #!/usr/bin/env bash | |
| # Download metadata, modify these as your needs. | |
| ## The directory to save the downloaded files. | |
| download_directory="/volume1/Download/EPUB" | |
| ## The website you want to visit. | |
| calibre_site="http://soulseeker.myds.me:25788" | |
| ## The formats you want to download. We only download the first present format. | |
| ## All the formats should be upper case. | |
| allow_formats=( EPUB MOBI AZW3 ) |
对于mTLS的配置的证书来说,有如下的提示。
三个文件。 对于大多数系统,如:MySQL, Redis,PostgreSQL。会需要三个文件:CA证书 + CERT 和 KEY。可以在我的这个开源项目(https://github.com/haoel/mTLS/tree/main/certs )中找到我生成的CA,以及 Server 和 Client的 .crt 和 .key 文件。生成的方法也在我的那个开源项目中了。
两个文件。 对于有的系统,比如:MongoDB,他只要两个文件,一个是CA,一个是 pem 文件,对于pem文件,你可以直接把上面的 .crt 和 .key 合并了就好了。如:cat server.crt server.key > server.pem
JKS文件。 对于一些系统,比如:Kafka 和 Zookeeper。他要的不是上面的明文的格式,他要的是一种jks的格式,这是Java的格式。怎么从上面的明文的方式转到jks的文件。需要经过下面几步。
| from PyQt6.QtWidgets import QApplication, QLabel, QTextEdit, QVBoxLayout, QWidget, QPushButton | |
| import sys | |
| import ast | |
| def multiline_eval(expr, context={}): | |
| "Evaluate several lines of input, returning the result of the last line" | |
| tree = ast.parse(expr) | |
| eval_exprs = [] | |
| exec_exprs = [] |
| ffmpeg -ss $INPUT_START_TIME -t $LENGTH -i $INPUT_FILENAME \ | |
| -vf "fps=$OUTPUT_FPS,scale=$OUTPUT_WIDTH:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \ | |
| -loop $NUMBER_OF_LOOPS $OUTPUT_FILENAME | |
| # Change these placeholders: | |
| # * $INPUT_START_TIME - number of seconds in the input video to start from. | |
| # * $LENGTH - number of seconds to convert from the input video. | |
| # * $INPUT_FILENAME - path to the input video. | |
| # * $OUTPUT_FPS - ouput frames per second. Start with `10`. | |
| # * $OUTPUT_WIDTH - output width in pixels. Aspect ratio is maintained. |
| /** | |
| * Fade a view to visible or gone. This function is idempotent - it can be called over and over again with the same | |
| * value without affecting an in-progress animation. | |
| */ | |
| fun View.fadeTo(visible: Boolean, duration: Long = 500, startDelay: Long = 0, toAlpha: Float = 1f) { | |
| // Make this idempotent. | |
| val tagKey = "fadeTo".hashCode() | |
| if (visible == isVisible && animation == null && getTag(tagKey) == null) return | |
| if (getTag(tagKey) == visible) return |
| class ScaleItemOnTouchListener : RecyclerView.OnItemTouchListener { | |
| private var previousX = 0f | |
| private var previousY = 0f | |
| private var previousMotionX = 0f | |
| private var previousMotionY = 0f | |
| private object Constants { | |
| const val SCALE_DEFAULT = 1f |
| generate-dependency-graph: | |
| name: Generate Dependency Graph | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Graphviz | |
| uses: ts-graphviz/setup-graphviz@v1 |
WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like [Unreal](https:
| ''' | |
| Usage: python archive_articles.py test.csv | |
| Input: test.csv | |
| name url | |
| 1 url1 | |
| 2 url2 | |
| ..... | |
| output: | |
| 1.png | |
| 2.png |