Skip to content

Instantly share code, notes, and snippets.

View GentlemanHu's full-sized avatar
🎯
Focusing

Gentleman.Hu GentlemanHu

🎯
Focusing
View GitHub Profile
@GentlemanHu
GentlemanHu / policy.xml
Created January 8, 2024 09:28
ImageMagick-6 unlimited policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)*>
<!ATTLIST policymap xmlns CDATA #FIXED ''>
<!ELEMENT policy EMPTY>
<!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
]>
<!--
@GentlemanHu
GentlemanHu / broadcast-channel.md
Created November 25, 2023 11:25 — forked from davestewart/broadcast-channel.md
Example of using BroadcastChannel to communicate with pages in the same domain

screenshot

@GentlemanHu
GentlemanHu / ANSI.md
Created October 19, 2020 06:19 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@GentlemanHu
GentlemanHu / .bash_aliases
Created September 23, 2020 12:37 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@GentlemanHu
GentlemanHu / cloudSettings
Last active November 16, 2020 16:27
VSCode Settings ,on Mac
{"lastUpload":"2020-11-16T15:01:23.523Z","extensionVersion":"v3.4.3"}
@GentlemanHu
GentlemanHu / hyper-config.js
Last active February 6, 2020 14:33
config of hyper
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@GentlemanHu
GentlemanHu / test.md
Last active February 2, 2020 14:52
test gistpad extension

just test gistpad extension

  • just test gistpad extension

just test gistpad extension

just test gistpad extension