Skip to content

Instantly share code, notes, and snippets.

@feilongfl
feilongfl / getFile.sh
Last active September 17, 2022 07:39
parse webdav file list by libxml2
View getFile.sh
#!/usr/bin/env bash
curl -X PROPFIND -u jksv:jksv http://192.168.2.249:10000/JKSV/Ring%20Fit%20Adventure/
View bcompare.error.log
This file has been truncated, but you can view the full file.
execve("/usr/lib/beyondcompare/BCompare", ["/usr/lib/beyondcompare/BCompare"], 0x7ffeca45c0f0 /* 89 vars */) = 0
brk(NULL) = 0x2e82000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffe3e9d07a0) = -1 EINVAL (无效的参数)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (没有那个文件或目录)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=277307, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 277307, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fefc2563000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
@feilongfl
feilongfl / zuk.xml
Created September 21, 2021 21:55
Pixel Experience repo minifest for ZUK Z2pro
View zuk.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="feilong-git" fetch="https://android_compile:zcyctv-Y5n-jSsVNd4Kx@git.f.lan/" />
<!-- <remote name="feilong-git" fetch="git@git.f.lan" /> -->
<!-- zuk z2 row -->
<project path="device/zuk/z2_row" remote="github" name="pe-zukz2/device_zuk_z2_row" revision="eleven" />
<project path="device/zuk/msm8996-common" remote="github" name="feilongfl/device_zuk_msm8996-common" revision="eleven" />
<!-- <project path="device/zuk/msm8996-common" remote="github" name="pe-zukz2/device_zuk_msm8996-common" revision="eleven" /> -->
<!-- <project path="device/zuk/msm8996-common" remote="feilong-git" name="embeded/android-phone/device_zuk_msm8996-common" revision="feilong-eleven-patch-68725" /> -->
@feilongfl
feilongfl / swap_make.fish
Created February 12, 2021 00:19
linux swap
View swap_make.fish
#!/usr/bin/env fish
set swap_file /home/feilong/Program-ext/swap/swapfile
fallocate -l 100G $swap_file
chmod 600 $swap_file
mkswap $swap_file
swapon $swap_file
# swapoff -v $swap_file
View combian-data-by-date.js
function input(date,name1,name2){
this.date = date;
this.name1 = name1;
this.name2 = name2;
this.hash = name1 + name2;
}
inputdata = Array.of(new input(1, 'a', 'b'),new input(2, 'a', 'b'),new input(3, 'a', 'b'),new input(4, 'a', 'c'),new input(5, 'a', 'c'),new input(6, 'a', 'b'),new input(7, 'a', 'b'))
function result(name1,name2,hash,start,end){
@feilongfl
feilongfl / mouseSwitch.ahk
Last active October 12, 2019 23:34
make a mouse for two pos
View mouseSwitch.ahk
#SingleInstance force
; global val define
global mouseSwitch = -1
; set pixel pos base on screen
CoordMode, Mouse, Screen
CoordMode, ToolTip, Screen
View chinese-pinyin
ai
ei
ui
ao
ou
iu
ie
ve
er
an
@feilongfl
feilongfl / fish_prompt.fish
Last active June 8, 2019 01:17
fish shell显示效果
View fish_prompt.fish
function fish_prompt
# - green lines if the last return command is OK, red otherwise
# - your user name, in red if root or yellow otherwise
# - your hostname, in cyan if ssh or blue otherwise
# - the current path (with prompt_pwd)
# - date +%X
# - the current virtual environment, if any
# - the current git status, if any, with __fish_git_prompt
# - the current battery state, if any, and if your power cable is unplugged, and if you have "acpi"
@feilongfl
feilongfl / fuchsia-tree.log
Created June 6, 2019 03:19
fuchsia-tree-0606
View fuchsia-tree.log
stat /storage/wine/project/fuchsia/fuchsia/out/default/obj/build/images/fvm.blk
文件:/storage/wine/project/fuchsia/fuchsia/out/default/obj/build/images/fvm.blk 大小:184713216 块:294688 IO 块:4096 普通文件 设备:812h/2066d Inode:715602 硬链接:1 权限:(0777/-rwxrwxrwx) Uid:( 0/ root) Gid:( 0/ root) 最近访问:2019-06-06 11:10:59.285920800 +0800 最近更改:2019-06-06 11:11:03.252502100 +0800 最近改动:2019-06-06 11:11:03.252502100 +0800 创建时间:-
Creating disk image...done
CMDLINE: TERM=screen-256color kernel.serial=legacy kernel.entropy-mixin=8cdac16b2d21c12b78e88fd5f5c3cc12eb3a1a5e26af693fce7160ede2512e19 kernel.halt-on-panic=true
c[?7lSeaBIOS (version rel-1.11.1-0-g0551a4be2c-prebuilt.qemu-project.org)
Booting from ROM..[00000.000] 00000:00000> zbi: @ 0xffffff8001007000 (15742088 bytes)
[00000.000] 00000:00000> UART: FIFO depth 16
[00000.000] 00000:00000> PMM: boot reserve add [0x100000, 0x326fff]
[00000.000] 00000:00000> PMM: boot reserve add [0x1007000, 0x1f0afff]
[00000.000] 00000:00000> PMM: boot reserve marking WIRED [0x100000, 0x32
View cemu-udpproto-wireshark-plugin.lua
--基于UDP协议
local udp_table = DissectorTable.get("udp.port")
local main_proto = Proto("udp-sample", "udp sample protocol", "udp sample protocol")
--协议端口号
local my_port = 26760
--定义协议字段内容
local stringHeadField = ProtoField.string("Head", "Head")
local versionField = ProtoField.uint16("Version", "Version", base.DEC)
local packagelengthField = ProtoField.uint16("Length", "Package Length", base.DEC)