0


日常分享 10-15 快捷图标替换&Github主页美化

日常分享 10-15

0x01 快速发送到应用

背景

日常使用一些软件 比如IDA的时候 , 可能会有 “把文件拖动到快捷方式” 的操作从而快捷打开
但是我的桌面不喜欢放那么多工具的快捷方式, 而且每次都要去桌面找很不方便, 如果选择"用其他应用打开又会比较卡顿 而且很杂 不好找"

解决方法

找到C盘下的

  1. C:\Users\<用户名>\AppData\Roaming\Microsoft\Windows\SendTo

图示
只要在这里面存放快捷方式, 以后遇到文件就可以直接
SHIFT+右键 选择 “发送到” 指定应用了
非常之轻便简洁
演示

其他好玩

在上层目录下 也就是

  1. C:\Users\<username>\AppData\Roaming\Microsoft\Windows\

也有很多平常可能没看到的小彩蛋

比如

  1. .\PowerShell\PSReadLine

里面会偷偷保存敲过的PowerShell命令

0x02 Github个人主页美化

0 预览

在这里插入图片描述

1 新建仓库

新建同名仓库 设置public 并添加readme文件

  1. Add a README file

这时候会提醒
CH0ico/CH0ico is a ✨special ✨ repository that you can use to add a README.md to your GitHub profile. Make sure it’s public and initialize it with a README to get started.

CH0ico/CH0ico是一个特殊的仓库,你可以用它来为你的GitHub个人主页添加一个README.md文件。确保这个仓库是公开的,并且初始化时包含了一个README文件,这样就可以开始了。这里的“✨special ✨”可能是为了强调这个仓库的特殊用途,使用了星号来装饰

2 Github评级 和 打字 统计

在readme加入

  1. <div align="">
  2. <a href="https://github.com/anuraghazra/github-readme-stats">
  3. <img align="center" src="https://github-readme-stats.vercel.app/api?username=CH0ico&show_icons=true"/>
  4. </a>
  5. </div>
  6. <p align="">
  7. <img src="https://readme-typing-svg.herokuapp.com?font=Fira+Code&weight=600&pause=1000&color=2EBDF7FF&center=false&size=30&lines=H4ck+for+fun;Never+stop+learning" alt="typing-svg">
  8. </p>
  9. <div align="">
  10. <span> </span>
  11. <img height="170px" src="https://github-readme-stats.vercel.app/api?username=CH0ico" /><span> </span><img height="170px" src="https://github-readme-stats.vercel.app/api/top-langs/?username=CH0ico&layout=compact&langs_count=8" />
  12. <span> </span>
  13. </div>
3 贪吃蛇

创建

  1. .github/workflows/generate_snake.yml

在里面写入

  1. name: generate animation
  2. on:
  3. # run automatically every 2 hours
  4. schedule:
  5. - cron: "0 */2 * * *"
  6. # allows to manually run the job at any time
  7. workflow_dispatch:
  8. # run on every push on the master branch
  9. push:
  10. branches:
  11. - master
  12. jobs:
  13. generate:
  14. permissions:
  15. contents: write
  16. runs-on: ubuntu-latest
  17. timeout-minutes: 5
  18. steps:
  19. # generates a snake game from a github user (<github_user_name>) contributions graph, output a svg animation at <svg_out_path>
  20. - name: generate github-contribution-grid-snake.svg
  21. uses: Platane/snk/svg-only@v3
  22. with:
  23. github_user_name: ${{ github.repository_owner }}
  24. outputs: |
  25. dist/github-contribution-grid-snake.svg
  26. dist/github-contribution-grid-snake-dark.svg?palette=github-dark
  27. # push the content of <build_dir> to a branch
  28. # the content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/<target_branch>/<file> , or as github page
  29. - name: push github-contribution-grid-snake.svg to the output branch
  30. uses: crazy-max/ghaction-github-pages@v3.1.0
  31. with:
  32. target_branch: output
  33. build_dir: dist
  34. env:
  35. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

再去readme中写入

  1. <picture>
  2. <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/CH0ico/CH0ico/output/github-contribution-grid-snake-dark.svg">
  3. <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/CH0ico/CH0ico/output/github-contribution-grid-snake.svg">
  4. <img alt="github contribution grid snake animation" src="https://raw.githubusercontent.com/CH0ico/CH0ico/output/github-contribution-grid-snake.svg">
  5. </picture>

(这里需要改username)

最后去 Action的 generate animation 执行run workflow刷新一下请添加图片描述

4

去 metrics 创建一下个人的信息列表

  1. 创建一个 GitHub personal token,位置:右上角个人头像 → settings最下面→ Developer settings → Personal access tokens在这里插入图片描述
  2. 接下来就是勾选 scopes在这里插入图片描述 这里有效期设置了一年, 记住生成的token 只显示一次
  3. 然后去到个人项目( 不是个人设置 )里的 settings 页面,将刚刚生成的 token 作为一个密钥(创建一个环境名为 production;然后创建一个名为 METRICS_TOKEN 的 secret,值为刚刚生成的 token)在这里插入图片描述
  4. 去Action一个新的工作流
  1. name: Metrics
  2. on:
  3. # Schedule updates (each hour)
  4. schedule: [{cron: "0 * * * *"}]
  5. # Lines below let you run workflow manually and on each commit
  6. workflow_dispatch:
  7. push: {branches: ["master", "main"]}
  8. jobs:
  9. github-metrics:
  10. runs-on: ubuntu-latest
  11. environment:
  12. name: production
  13. permissions:
  14. contents: write
  15. steps:
  16. - uses: lowlighter/metrics@latest
  17. with:
  18. # Your GitHub token
  19. # The following scopes are required:
  20. # - public_access (default scope)
  21. # The following additional scopes may be required:
  22. # - read:org (for organization related metrics)
  23. # - read:user (for user related data)
  24. # - read:packages (for some packages related data)
  25. # - repo (optional, if you want to include private repositories)
  26. token: ${{ secrets.METRICS_TOKEN }}
  27. # Options
  28. user: CH0ico
  29. template: classic
  30. base: header, activity, community, repositories, metadata
  31. config_timezone: Asia/Shanghai
  1. 将自动生成的github-metrics.svg文件放在readme
  1. ![Metrics](/github-metrics.svg)
  1. 刷新一下就ok了
标签: github 经验分享

本文转载自: https://blog.csdn.net/CH0ico/article/details/142966804
版权归原作者 CH0ico 所有, 如有侵权,请联系我们删除。

“日常分享 10-15 快捷图标替换&Github主页美化”的评论:

还没有评论