Showing posts from March, 2019

arch4edu repo

[arch4edu] SigLevel = Never Server =$arch view apps:

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
move it to as /var/lib/anbox/android.img


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


apt install dmenu i3 ffmpeg
touch ~/scripts/dmenurecord
nano dmenurecord

# 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"

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 -t Documents/php/
php -S ip:port -t folder

kali slow update fix

change http to https
deb kali-rolling main non-free contrib

kali repo on debian

add kali repo to sources
sudo nano /etc/apt/sources.list
deb kali-rolling main non-free contrib
to see current repo priority
apt-cache policy
to adjust apt priority sudo nano  /etc/apt/preferences.d/kali-pin Package: * Pin:release o=kali Pin-Priority: 10