Skip to content

Instantly share code, notes, and snippets.

View wangjiezhe's full-sized avatar
🏠
Working from home

Jiezhe Wang wangjiezhe

🏠
Working from home
View GitHub Profile
原帖地址: http://topic.csdn.net/u/20110113/19/b0d5d506-4307-428b-a61d-7974aa66a2da.html
首先要说明的是:这里介绍的方法都是大部分是本人“悟”出来的,所以网上难有流传!
好方法不能自己私藏,否则就白忙乎这几天了,分享给有需要的朋友们。如果有转载,敬请注明来自*CSDN老邓*作品。
呵呵,给自己打广告,实在是无耻之极,权当无聊之时打字之用。
欢迎流传,为最优秀的分布式版本管理系统Git做宣传!!
步骤:
1. 下载:http://loaden.googlecode.com/files/gitconfig.7z
2. 解压到:<MsysGit安装目录>/cmd/,例如:D:\Program Files\Git\cmd
@wangjiezhe
wangjiezhe / cld
Created May 2, 2020 13:57
命令行查询有道词典
#!/bin/bash
ARGS=1
E_BADARGS=65
TEM_FILE="/tmp/dict.tmp"
if [ $# -ne "$ARGS" ]
then
echo "Usage:`basename $0` word"
exit $E_BADARGS
fi
@wangjiezhe
wangjiezhe / WinPE.cmd
Created May 2, 2020 13:58
制作 WinPE iso 文件
copype amd64 D:\WinPE_amd64
Dism /Mount-Image /ImageFile:"D:\WinPE_amd64\media\sources\boot.wim" /Index:1 /MountDir:"D:\WinPE_amd64\mount"
Dism /Add-Package /Image:"D:\WinPE_amd64\mount" /PackagePath:"D:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab"
Dism /Add-Package /Image:"D:\WinPE_amd64\mount" /PackagePath:"D:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-WMI_en-us.cab"
Dism /Add-Package /Image:"D:\WinPE_amd64\mount" /PackagePath:"D:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFX.cab"
Dism /Add-Package /Image:"D:\WinPE_amd64\mount" /PackagePath:"D:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-NetFX_en-us.cab"
Dism /Add-Package /Image:"D:\WinPE_amd64\mount" /PackagePath:"D
@wangjiezhe
wangjiezhe / regex_golf.md
Created April 8, 2021 03:12 — forked from jonathanmorley/regex_golf.md
Best possible answers collected so far for [Regex golf](http://regex.alf.nu/). === WARNING: SPOILERS ===
@wangjiezhe
wangjiezhe / README.md
Created April 11, 2021 17:37 — forked from ZipFile/README.md
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

@wangjiezhe
wangjiezhe / add_title.py
Last active May 7, 2023 04:43
解压并用压缩文件名进行重命名/增加标题
import os
import re
import time
import mutagen
import win32api
from zipfile import ZipFile
from rich.progress import track
@wangjiezhe
wangjiezhe / free-docker-space-in-wsl2.blog.md
Last active December 9, 2022 14:20 — forked from banyudu/free-docker-space-in-wsl2.blog.md
WSL2 Docker释放磁盘空间

WSL2 Docker释放磁盘空间

Docker使用久了,会残留很多中间生成的镜像,占用磁盘空间。

要清理Docker镜像,本来是挺简单的,一条命令就搞定了:

@wangjiezhe
wangjiezhe / Upgrade-all-Python-packages-with-pip.md
Last active February 10, 2024 03:22
更新全部 python 包

列举所有需要升级的包:

pip list --outdated

在 Windows 上更新:

import torch
torch.cuda.is_available()
torch.cuda.device_count()
torch.cuda.current_device()
torch.cuda.get_device_name(0)
import tensorflow as tf
#!/bin/sh
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
tlmgr update --self --all
tlmgr install collection-latexrecommended collection-latexextra collection-langchinese collection-langgreek \
collection-pictures collection-luatex collection-xetex collection-mathscience collection-plaingeneric