This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/aajit/projects/android-ndk-r23b/ndk-build -B NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk NDK_APP_DST_DIR=./build/ NDK_APP_OUT=./build/ APP_BUILD_SCRIPT=./Android.mk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount -t tmpfs -o size=100Mi,mode=1777 some_arbitrary_name /mnt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Linux | |
tar cf - /folder-with-big-files -P | pv -s $(du -sb /folder-with-big-files | awk '{print $1}') | gzip > big-files.tar.gz | |
# MacOS | |
tar cf - /folder-with-big-files -P | pv -s $(($(du -sk /folder-with-big-files | awk '{print $1}') * 1024)) | gzip > big-files.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Invoking ldd and specifying a library pat | |
/tmp/sec/ld-linux.so.2 --library-path /tmp/sec /tmp/sec/auditctl -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Some configure options | |
./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" LDFLAGS="-m32" --disable-zos-remote --prefix=$HOME --enable-static --disable-shared |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /proc/1234/status | grep Cap | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip -brief addr show enx000ec6bf3cce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin | |
sudo adduser $USER libvirt | |
sudo adduser $USER libvirt-qemu | |
newgrp libvirt | |
newgrp libvirt-qemu | |
id #Verify group memberships | |
virsh --connect qemu:///system | |
virsh --connect qemu:///system command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su - $USER |