[TOC]
maybe not the right code/summary
https://www.zhihu.com/question/19732473/answer/26101328
- 前提
[TOC]
maybe not the right code/summary
https://www.zhihu.com/question/19732473/answer/26101328
| #!/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 |
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import sys | |
| import subprocess | |
| def cmp_creation(x, y): | |
| xs = x.split("/") | |
| ys = y.split("/") |
magick
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
| jQuery(function ($) { | |
| window._result = []; | |
| let $itemButtonCellEdits = $(".itemButtonCell>.edit"), | |
| openDialog = function (i) { | |
| $("#dialogCloseButton").click(); | |
| $itemButtonCellEdits[i].click(); | |
| $.ajax({ | |
| headers: { | |
| "x-csrf-token": "<your token>" | |
| }, |
| # python | |
| import requests | |
| headers = { | |
| 'User-Agent': | |
| '', | |
| 'Cookie': | |
| '' | |
| } |