Skip to content

Instantly share code, notes, and snippets.

@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>"
},
@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 June 1, 2021 03:32
90后童年动画片

蝙蝠侠:动画系列

  • 1992.09 美国 Warner
  • Batman: The Animated Series

蜘蛛侠:动画系列

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

四驱兄弟

  • 1996.01 日本
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
import subprocess
def cmp_creation(x, y):
xs = x.split("/")
ys = y.split("/")
@gMan1990
gMan1990 / android.sh
Last active October 8, 2019 08:28
android tool shell: https://termux.com
#!/system/bin/bash
# ln -s /proc/self/fd /dev/fd
# https://forum.xda-developers.com/android/software-hacking/dev-lastest-bash-android-t2898295
## mount -o remount,rw /system
# toolbox ls -la /sdcard/Download
# toybox ls -lFA /sdcard/Download
## find -path bug: https://github.com/landley/toybox/issues/73
# busybox ls -lFA /sdcard/Download
@gMan1990
gMan1990 / main.md
Last active May 8, 2019 11:50
Socket, Channel, Selector, Asynchronous, 是否阻塞, 同步异步
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);