This file contains 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
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 |
This file contains 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
# Draw a horizontal line of 5cm length centered in the page | |
\begin{center} | |
\line(1,0){5cm} | |
\end{center} |
This file contains 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
# Parallelized XZ compressor | |
## Install requirement | |
sudo apt install pixz -y | |
## Create XZed archive | |
tar -Ipixz -cvf myArchive.tpxz archive/ |
This file contains 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
# 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 |
This file contains 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
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, |
This file contains 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
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 |
This file contains 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
#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 |
This file contains 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
### python2 | |
mkdir -p venv/py2-00/ | |
sudo apt-get install virtualenv -y | |
virtualenv -p python2 venv/py2-00/ | |
### python3 |
This file contains 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
#!/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 |
This file contains 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
# 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 |
NewerOlder