PDF などの中にある一部の日本語の漢字が、見た目は同じだけど異なる謎の文字に変換されていることがある
- 例 1: https://www.mhlw.go.jp/content/10906000/000628667.pdf
- 「長野」と「長崎」の「長」が、
U+9577
ではなく「⾧ (U+2FA7
)」になっている
- 「長野」と「長崎」の「長」が、
- 例 2: https://www.dpri.kyoto-u.ac.jp/news/12739/
#!/bin/zsh | |
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs. | |
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3 | |
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14) | |
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery) | |
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist | |
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/* | |
# user |
#!/bin/zsh | |
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3 | |
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12) and macOS Ventura (13) | |
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery) | |
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist | |
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/* | |
# user |
北海道 | HOKKAIDO | hokkaido | |
---|---|---|---|
青森県 | AOMORI | aomori | |
岩手県 | IWATE | iwate | |
宮城県 | MIYAGI | miyagi | |
秋田県 | AKITA | akita | |
山形県 | YAMAGATA | yamagata | |
福島県 | FUKUSHIMA | fukushima | |
茨城県 | IBARAKI | ibaraki | |
栃木県 | TOCHIGI | tochigi | |
群馬県 | GUNMA | gunma |
PDF などの中にある一部の日本語の漢字が、見た目は同じだけど異なる謎の文字に変換されていることがある
U+9577
ではなく「⾧ (U+2FA7
)」になっている# ######################################################################################### | |
# GIT AND BASH ALIASES DEFINITION IN A SINGLE FILE `.BASH_ALIASES` WITH GIT AUTO-COMPLETION | |
# ######################################################################################### | |
# All these git commands and bash aliases are tested on git version 2.17.1 on Linux Mint 19 | |
# This compilation of aliases is an experiment. | |
# On a daily basis, I use only a few of these aliases ¯\_(ツ)_/¯ | |
# ********** |
git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |
#!/bin/bash | |
# To ~/.bashrc file add line: | |
# source ~/.git-plugin-bash.sh | |
# Based on Oh My Zsh Git plugin (without zsh functions): | |
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh | |
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git | |
# |
__linux_git_complete_file=/usr/share/bash-completion/completions/git | |
__windows_git_complete_file=/etc/bash_completion.git | |
__host_os_type=$(uname -sm) | |
case ${__host_os_type:0:5} in | |
Linux) | |
__current_git_complete_file=$__linux_git_complete_file | |
;; | |
MINGW) | |
__current_git_complete_file=$__windows_git_complete_file |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
description | tools | model | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4.1 Do Epic Shit Mode v1 |
|
GPT-4.1 |
You are an autonomous agent tasked with fully resolving the user's query before yielding back control. Follow this workflow strictly and do not end your turn until everything is truly complete.