Skip to content

Instantly share code, notes, and snippets.

View rich1e's full-sized avatar
❤️
Work for my heart

Rich1e Kung rich1e

❤️
Work for my heart
View GitHub Profile
@rich1e
rich1e / profile.ps1
Last active August 27, 2024 15:34
PowerShell Config
Import-Module posh-git
Import-Module posh-sshell
Start-SshAgent
Import-Module oh-my-posh
Set-PoshPrompt -Theme ys
Import-Module yarn-completion
Import-Module npm-completion
Import-Module posh-docker
@rich1e
rich1e / settings.json
Last active August 27, 2024 15:33
Windows PowerShell Config
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@rich1e
rich1e / mame.user.js
Last active July 17, 2024 04:23
MAME
// ==UserScript==
// @name MAME ROM 名称翻译插件
// @namespace http://tampermonkey.net/
// @version 0.1
// @description https://www.retroroms.info/ 网站上的ROM名称翻译工具2022年1月7日
// @author B站UP主ITKEY
// @include *://bda.retroroms.info:82/downloads/*
// @include *://space.bilibili.com/*
// @require https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.js
// @require https://cdn.jsdelivr.net/npm/jquery.cookie/jquery.cookie.js
@rich1e
rich1e / pdf to jpg.md
Last active December 4, 2023 03:27
pdf

PDF to JPG

PDF 转 JPG 有很多方法,这里主要介绍 2 种免费的方案。

  • GIMP (GNU Image Manipulation Program),是一款免费的图像编辑软件,支持将 PDF 文件转换为图片。
  • ImageMagick ImageMagick 是一个命令行工具,可以在各种平台上使用。

GIMP

操作非常简单,打开 PDF 文件后,选择“文件” -> “导出为” -> “选择文件类型”为所需的图像格式。

@rich1e
rich1e / .gitconfig
Last active May 9, 2023 15:18
git-delta themes
[core]
quotepath = false
pager = delta
[user]
email = [email protected]
name = rich1e
[include]
path = ~/themes.gitconfig
[delta]
features = chameleon
@rich1e
rich1e / .zshrc
Last active October 25, 2024 07:40
zsh config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes