Skip to content

Instantly share code, notes, and snippets.

@ph4ge
ph4ge / gif2mp4.txt
Created November 17, 2024 20:29
Convert GIF to MP4
ffmpeg -i file.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" out.mp4
Source: https://stackoverflow.com/questions/31781238/using-ffmpeg-to-convert-gif-to-mp4-output-doesnt-play-on-android
@ph4ge
ph4ge / LaTeX stuff
Last active November 7, 2024 17:54
# Draw a horizontal line of 5cm length centered in the page
\begin{center}
\line(1,0){5cm}
\end{center}
@ph4ge
ph4ge / tar_pixz
Last active September 26, 2024 09:27
Parallelized XZ compression - deb
# Parallelized XZ compressor
## Install requirement
sudo apt install pixz -y
## Create XZed archive
tar -Ipixz -cvf myArchive.tpxz archive/
@ph4ge
ph4ge / etc_network_interfaces - debian12
Last active May 27, 2024 11:45
Debian 12 - interface configuration for virtualbox
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto enp0s8
@ph4ge
ph4ge / openssl 1.1.1 - debian12.txt
Last active June 20, 2024 21:16
Debian 12/bookwork - install openssl 1.1.1 from source
Openssl 1.1.x on GNU/Debian 12
==============================
The following shows how to install openssl branch 1.1.x alongside debian default libssl3.
Some applications require to have:
- libssl.so.1.1
- libcrypto.so.1.1
Using the following allows one to not tamper with the system's default/setup,
@ph4ge
ph4ge / python3.10-compile-commands.txt
Last active April 23, 2024 06:26
Download and compile Python3.10 version
Target system: Debian 12
========================
main ref: https://www.build-python-from-source.com
# install system dependencies
sudo apt update && sudo apt upgrade -y && sudo apt install git make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl xz-utils liblzma-dev wget
@ph4ge
ph4ge / sources.list
Last active May 6, 2024 15:37
Ubuntu 21.10 Impish Indri - apt sources.list
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted
### python2
mkdir -p venv/py2-00/
sudo apt-get install virtualenv -y
virtualenv -p python2 venv/py2-00/
### python3
@ph4ge
ph4ge / getpeda.sh
Created September 18, 2021 07:39
get peda from github
#!/bin/bash
echo :::::::::::::
echo Getting PEDA
echo :::::::::::::
sudo apt-get update && sudo apt-get install git gdb build-essential gcc-multilib vim -y
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
@ph4ge
ph4ge / uroboros-debian10.7-install.txt
Last active December 14, 2020 20:20
UROBOROS install notes debian 10.7.0
# installation notes of UROBOROS poc on a debian-10.7.0-amd64
# ref.:
https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-wang-shuai.pdf
https://ieeexplore.ieee.org/document/7476646
sha256:
b317d87b0a3d5b568f48a92dcabfc4bc51fe58d9f67ca13b013f1b8329d1306d debian-10.7.0-amd64-netinst.iso
# proceed installation with only the standard utilies and ssh server