Skip to content

Instantly share code, notes, and snippets.

View BoxDengJZ's full-sized avatar
🎯
Focusing

邓江洲 BoxDengJZ

🎯
Focusing
  • Shanghai
View GitHub Profile
@sordina
sordina / ocr.sh
Last active September 17, 2018 06:09
Wrapper script for tesseract to output to STDOUT.
#!/bin/sh
if [ ! "$1" ]
then
echo "Usage: ocr <image-file>"
exit
fi
if [ "x$1" = "x-h" ]
then
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active December 18, 2025 20:10
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@awidegreen
awidegreen / vim_cheatsheet.md
Last active February 5, 2026 10:12
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close