Posts

arch4edu repo

[arch4edu] SigLevel = Never Server = https://mirrors.tuna.tsinghua.edu.cn/arch4edu/$arch view apps:https://mirrors.tuna.tsinghua.edu.cn/arch4edu/src:https://github.com/arch4edu/arch4edu/wiki

debian unstable anbox test

sudo apt install anbox
sudo modprobe ashmem_linux
sudo modprobe binder_linux

sudo service anbox-container-manager start
anbox session-manager
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

-------------------
download android iamge  https://build.anbox.io/android-images
move it to as /var/lib/anbox/android.img

git

$ git config --global user.name "John Doe"
 $ git config --global user.email [email protected]

dmenurecord

apt install dmenu i3 ffmpeg
touch ~/scripts/dmenurecord
nano dmenurecord
------------------------------------------------------
#!/bin/sh

# Usage:
# `record`: Ask for recording type via dmenu
# `record screencast`: Record both audio and screen
# `record video`: Record only screen
# `record audio`: Record only audio
# `record kill`: Kill existing recording
#
# If there is already a running instance, user will be prompted to end it.

updateicon() { \
    echo "$1" > /tmp/recordingicon
    pkill -RTMIN+9 i3blocks
    }

killrecording() {
    recpid="$(cat /tmp/recordingpid)"
    # kill with SIGTERM, allowing finishing touches.
    kill -15 "$recpid"
    rm -f /tmp/recordingpid
    updateicon ""
    pkill -RTMIN+9 i3blocks
    # even after SIGTERM, ffmpeg may still run, so SIGKILL it.
    sleep 3
    kill -9 "$recpid"
    exit
    }

screencast() { \
    ffmpeg -y \
    -f x11grab \
    -framerate 60 \
    -s $(xdpyinfo | grep dimensions …
[email protected]:~$ sudo apt install nvidia-opencl-icd
apt install-y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit

hashcat -I

run php from folder

$ php -S 127.0.0.1:1234 -t Documents/php/
--
php -S ip:port -t folder

kali slow update fix

change http to https
deb https://http.kali.org/kali kali-rolling main non-free contrib