linux system calls with just the python
standard library:
standard library:
import ctypes
ctypes.CDLL(None).syscall(39)
#
python -c '__import__("ctypes").CDLL(None).syscall(1,1,b"Haiiiiii",8)'
LaTeX to PDF conversion:
tectonic invoice10.tex
(tectonic util will download deps automatically )
tectonic invoice10.tex
(tectonic util will download deps automatically )
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc '0-9' | fold -w 10 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc '0-9' | fold -w 10 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc '&*(&(^)' | fold -w 10 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc '&*(&(^)' | fold -w 10 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc '~`!@#$%^&*()' | fold -w 1 | sed 1000000000q |aplay
cat /dev/urandom | tr -dc "0-9a-z" |aplay
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 |aplay -r 192000
Lxc clean snapshots scripts:
lxc info tor-jschan
echo "^^^^^^^^^^^BEFORE^^^^^^^^^^^^\n\n\n"
container_name="tor-jschan"
snapshots=$(lxc info $container_name | awk '/^\|/ {print $2}' | head -n -1)
for snapshot in $snapshots; do
lxc delete $container_name/$snapshot
done
echo "------------AFTER:-------------\n\n\n\"
lxc info tor-jschan
Video registrator DS-7104HQHI-K1
could be "hacked" trough rs232:
default command to get pass:
operationCode=password
could be "hacked" trough rs232:
default command to get pass:
getHardInfo
operationCode=password
FFMPEG TIME:
Trim the First 5 Seconds of the Audio and Combine with Video (will be silenced 5 sec):
Remove Original Audio, Add New Audio, and Shift the Audio Forward by 5 Seconds (same as before):
Just add audio to video (with replacing original audio):
Finally shift auido properly for 5 sec. without silence:
Trim the First 5 Seconds of the Audio and Combine with Video (will be silenced 5 sec):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.flac" -c:v libx264 -c:a aac -map 0:v -map 1:a -af "atrim=start=5" -shortest "output_with_shifted_audio.mp4"
Remove Original Audio, Add New Audio, and Shift the Audio Forward by 5 Seconds (same as before):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.flac" -c:v libx264 -c:a aac -map 0:v -map 1:a -shortest -af "adelay=5000|5000" "output_with_shifted_audio.mp4"
Just add audio to video (with replacing original audio):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.mp3" -c:v libx264 -c:a aac -map 0:v -map 1:a -shortest "output_with_new_audio.mp4"
Finally shift auido properly for 5 sec. without silence:
ffmpeg -i "AUDIO.mkv" -i "VIDEO.mp3" -filter_complex "[0:v]trim=start=0,setpts=PTS-STARTPTS[v];[1:a]atrim=start=5,asetpts=PTS-STARTPTS[a];[v][a]concat=n=1:v=1:a=1[vout][aout]" -map "[vout]" -map "[aout]" -c:v libx264 -c:a aac -shortest "output_with_shifted_audio.mp4"
things
FFMPEG TIME: Trim the First 5 Seconds of the Audio and Combine with Video (will be silenced 5 sec): ffmpeg -i "VIDEO.mkv" -i "AUDIO.flac" -c:v libx264 -c:a aac -map 0:v -map 1:a -af "atrim=start=5" -shortest "output_with_shifted_audio.mp4" Remove Original…
This media is not supported in your browser
VIEW IN TELEGRAM
alternative method for resizing *.qcow2:
qemu-img info nix_disk.qcow2
qemu-img resize nix_disk.qcow2 +30G
virt-sparsify --in-place nix_disk.qcow2
qemu-img info disk.qcow2
qemu-img info nix_disk.qcow2
sudo modprobe nbd max_part=10
sudo qemu-nbd -c /dev/nbd0 nix_disk.qcow2
gparted /dev/nbd0
sudo qemu-nbd -d /dev/nbd0
ffmpeg -ignore_loop 0 -i "ghostsaibu - 1774814925807894552.gif" -i "CHVRCHES - Deliverance (Official Instrumental).mp3" -vf "scale=trunc(iw/2)*4:trunc(ih/2)*4" -sws_flags neighbor -vcodec libx265 -preset medium -tune animation -acodec aac -b:a 192k -shortest -t 00:00:30 video.mp4
another 101 way to make gif+sound=mp4
Determining processor & platform:
LD_SHOW_AUXV=1 $(which true) | grep _PLATFORM
Search all files for HEX pattern "E831" recursively in current dir:
ug --all --hexdump -U 'E831' -r $(pwd)
🥰1