Skip to content

Instantly share code, notes, and snippets.

@gMan1990
gMan1990 / main.md
Last active June 1, 2023 15:05
Cygwin/MSYS2/Mintty 中文乱码问题解决方案

自己挑一种即可~

  • 【推荐】新开gbk窗口执行你的命令:
mintty -o Locale=zh_CN -o Charset=GBK -e fish &
# -e是打开后执行命令,这里的fish是一个shell,你没用就去掉
  • 执行chcp然后再执行你的命令(会改变输出信息的语言)
@gMan1990
gMan1990 / main.sh
Last active May 12, 2022 11:42
ffmpeg ysl to a live
#!/bin/bash
cd "$(dirname "$0")" || exit 1
DIR=$(pwd)
OUTFILE="-f flv rtmp://js.live-send.acg.tv/live-js/?streamname=*&key=*"
while :; do
#./ffmpeg -re -i "Bailey No Ordinary Cat.mp4" -c copy $OUTFILE
cd "$DIR/YSL" || exit 1
for name1 in *; do
@gMan1990
gMan1990 / main.md
Last active June 1, 2021 03:32
90后童年动画片

蝙蝠侠:动画系列

  • 1992.09 美国 Warner
  • Batman: The Animated Series

蜘蛛侠:动画系列

  • 1994.11 美国 Marvel
  • Spider-Man: The Animated Series

四驱兄弟

  • 1996.01 日本
@gMan1990
gMan1990 / ImageMagick.md
Last active February 19, 2021 09:22
ImageMagick
  • ImageMagick v7
    • Here are a list of changes to the ImageMagick commands:
      • magick

        The "magick" command is the new primary command of the Shell API, replacing the old "convert" command. This allows you to create a 'magick script' of the form "#!/path/to/command/magick -script", or pipe options into a command "magick -script -, as abackground process.
      • magick-script

This the same as "magick", (only command name is different) but which has an implicit "-script" option. This allows you to use it in an "env" style script form. That is a magick script starts with the 'she-bang' line of "#!/usr/bin/env magick-script" allowing the script interpreter to be found anywhere on the users command "PATH". This is required to get aro

@gMan1990
gMan1990 / main.md
Last active August 21, 2020 06:49
JDK(Java Development Kit) 绿色版,MacOS,Windows
@gMan1990
gMan1990 / zhihu.py
Last active May 14, 2020 07:02
zhihu
# python
import requests
headers = {
'User-Agent':
'',
'Cookie':
''
}
jQuery(function ($) {
window._result = [];
let $itemButtonCellEdits = $(".itemButtonCell>.edit"),
openDialog = function (i) {
$("#dialogCloseButton").click();
$itemButtonCellEdits[i].click();
$.ajax({
headers: {
"x-csrf-token": "<your token>"
},
jQuery(function ($) {
    var result = new Map(),
    processor = function (ele) {
        $("div.sms-number-list.row", ele).each(function (i, e) {
            var key = e.querySelector("div>a").href,
            val = result.get(key),
            text = $.text(e.querySelector("div>h3"));
            if (val) {
                val.push(text);
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
import subprocess
def cmp_creation(x, y):
xs = x.split("/")
ys = y.split("/")