Autonomous Machines & Society.

2022-07-27
Linux Restore Window Sessions

to relaunch app in given workspace

tools:

wmctrl

devilspie

launch_on_workspace

references:

https://unix.stackexchange.com/questions/27050/how-to-start-an-application-on-a-different-workspace

https://askubuntu.com/questions/89946/open-application-in-specific-workspace

npm install -g linux-window-session-manager

restore session manually

dconf-editor

org.gnome.gnome-session

auto-save-session -> on

Read More

2022-07-25
Cpu Overheating (Temperature Too High)

linux

cpufrequtils

throttling cpu frequencies by temperature incrementally

the desired temperature is 60.

usually when one throttles the CPU temperature, the GPU cannot be overheated.

it is turning my core i7 into a pentium 3! but not entirely cumbersome.

Read More

2022-07-25
Audio Ducking

offline ducking

editly can achieve audio ducking using audionorm

online streaming ducking

Read More

2022-07-25
免流帮 停机卡上网 持续上网

收集别人的帐号然后登录

kali负责收集网络帐号 然后在一个web页面上面提供一个加密的auth接口 最好是rsa加密的东西 有时间延迟防暴力破解的访问接口 通过验证之后可以获得用户名密码 同时可以访问相应接口进行占用或者解除占用 当然你也可以直接弄个静态的页面谁也破解不了 但是访问的时候就得一个一个的尝试 当然也更安全

免流卡

微信小程序 免流帮

qq群:857969390

搜索github

校园网也可以免认证登录

Read More

2022-07-24
Vim Custom Color Scheme

[documentation[(http://vimdoc.sourceforge.net/htmldoc/syntax.html#:highlight)

vim terminal color codes

keyword for vertical spliters:

VertSplit

keyword for bottom line:

Read More

2022-07-22
蹭网Wifi天线 雷达扫描 五轴机械臂

利用淘宝铜片焊接的WiFi天线 安装在开源机械臂上 利用固定点抵达算法 扫描算法 自动探测WiFi源与方向的对应关系 机械手臂应当安装在比较高的支撑点上 周围不要挡着WiFi天线 有比较长的延长线 扫描算法不得超过线材的限制(旋转角度控制)必须得知初始态的绝对位置

Read More

2022-07-21
Cloud Based Github Web Ide, Vscode Auto Commit And Lightweight Terminal Ide

solved by gitfs

libgit2 sucks.

most stars

this gitfs is actually a searchable git history filesystem.

tested

gitee python api, first step is to get access token by login

gitee apis

can we mount git/github repo as user filesystem(fuse)?

usually read-only github/git filesystems, but this one is different. it is backed by writable github apis and is written in python, with python implementation of fuse which is updated here. this pygithub has trending api(maybe?) which is useful for social engineering or propaganda.

we could also implement a watchdog like system to check against the files using pygithub.

cloud based github ide includes gitpod.io, github.dev, pythonanywhere but these are with serious limitations, most importantly without autocommit or too restricted to write code.

browse github repo as remote filesystem(vscode insider):

https://marketplace.visualstudio.com/items?itemName=github.remotehub

the vscode desktop is too resource heavy. though we have found a plugin to auto commit that also has a github repo to git repo(only for vscode insider):

spacevim with custom color theme and nerdfont installed.

spacevim documentation

vim wiki by fandom

run multiple vim commands at once:

1
2
:cd / | NERDTree

Read More

2022-07-18
SEO tools

Read More

2022-07-18
Sentence Word Order Corrector

design a model to accept fixed length word type sequence and output word order token. the token is used to decode the final word sequence, just like the convolution but different.

input can be both misplaced sentences or correct sentences

looking for english word order correctifier.(grammar)

Read More

2022-07-17
Ntfs Recovery Tool For Bilibili Cookie Under Autoup

unmount the disk before scanning!

ntfsundelete

autopsy

disk drill

recuperabit(good for small files)

recoverpy

korczis/foremost

could also try to retrieve from android phones (/data/data/tv.danmaku.bili)

https://roubert.name/joakim/androidfilerecovery/

apt-get install testdisk pv extundelete

adb shell ls /dev/block

Now let us dump the content of that /dev/block/mmcblk0 that we found to the computer. With adb shell we can become superuser and execute cat to dump the content like this:

$ ./adb shell su -c “cat /dev/block/mmcblk0” | pv > mmcblk0.raw

Pipe Viwer (pv) is optional, but I like to see the transfer progress information it provides.

(And of course you can change mmcblk0.raw to some other directory/filename if you want to.)

Addition: André Paixão wrote to me that he just got an empty file with the command above. He solved it by using adbd insecure.

Addition: Daniel Jeliński wrote to me that he ran into issues with LF encoding. The solution that worked for him was:

./adb shell su -c “cat /dev/block/mmcblk0” | pv | sed ‘s/^M$//‘ > mmcblk0.raw

…where ^M is what you get by pressing Ctrl+V followed by Ctrl+M.

Addition: Marc also ran into the LF problems, but solved it this way:

./adb shell “su -c ‘stty raw; cat /dev/block/mmcblk0’” | pv > mmcblk0.raw

Addition: Tim de Waal wrote to me that he prefers using netcat/gzip instead:

On the Android device (adb shell with su), run:

dd if=/dev/block/mmcblk0 | gzip -9 | nc -l 5555

On the computer, run:

nc [AndroidIP] 5555 | pv -b > mmcblk0.img.gz

testdisk mmcblk0.raw

Read More