Skip to content

Instantly share code, notes, and snippets.

View vpnwall-services's full-sized avatar

Vpnwall Services vpnwall-services

View GitHub Profile
@vpnwall-services
vpnwall-services / ENCRYPTED_PORTABLE_VAULT_101.md
Last active May 1, 2023 13:11
[ENCRYPTED PORTABLE VAULT 101] Encrypted portable vault 101 #encrypted #portable #vault #file #linux #cryptsetup #luks

ENCRYPTED PORTABLE VAULT 101

  • Create empty file dd if=/dev/urandom of=vaultfile.img bs=1M count=512

  • Create LUKS volume cryptsetup --verify-passphrase luksFormat vaultfile.img

  • Open LUKS volume

@vpnwall-services
vpnwall-services / MARIABACKUP-101.md
Created April 25, 2023 00:57
[MARIABACKUP 101] Mariabackup 101 #mariadb #galera #backup #non #blocking

MARIABACKUP 101

  • Create backup mariabackup --backup --target-dir=/backups/

  • Prepare for restore mariabackup --prepare --target-dir=/backups/

  • Restoring

@vpnwall-services
vpnwall-services / Reload.sh
Last active April 22, 2023 23:14
[GDM CONF] GDM CONF #gdm #conf #debian #custom #login
dpkg-reconfigure gdm3
@vpnwall-services
vpnwall-services / compton.conf
Last active April 22, 2023 22:58
[Compton CONF] Compton CONF #compton #conf #gnome #terminal #transparency #i3wm
# Date : 24/07/2017
# Version : v5.0.0
####################################
####### BACK-END ########
####################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
@vpnwall-services
vpnwall-services / PIP-101.md
Last active May 2, 2023 23:54
[PIP 101] PIP 101 #pip #101 #python #jinja2 #ansible #bug #template

PIP 101

  • Reinstall old version of jinja2 (for ansible templating bug on python3.9) pip3 install --force-reinstall -v "jinja2==3.0.3"

  • Upgrade all packages

pip3 freeze > requirements.txt
pip3 install -r requirements.txt --upgrade
@vpnwall-services
vpnwall-services / IPFS-101.md
Last active April 10, 2023 14:56
[IPFS 101] IPFS 101 #IPFS #101 #interplanetary #filesystem
@vpnwall-services
vpnwall-services / Python-Logging-101.md
Last active April 3, 2023 15:04
[Python Logging 101] Python Logging 101 #python #python3 #logging #log #101 #trace

Python Logging 101

  • With colorlog method
import logging
LOG_LEVEL = logging.DEBUG
LOGFORMAT = "  %(log_color)s%(levelname)-8s%(reset)s | %(log_color)s%(message)s%(reset)s"
from colorlog import ColoredFormatter
logging.root.setLevel(LOG_LEVEL)
@vpnwall-services
vpnwall-services / NEOVIM-101.md
Created March 27, 2023 15:38
[NEOVIM 101] NEOVIM 101 #neovim #vim #101

NEOVIM 101

@vpnwall-services
vpnwall-services / Android-Firefox-Remote-Debugging-101.md
Created March 22, 2023 11:26
[Firefox Android Remote Debugging 101] Firefox Android Remote Debugging 101

#https://www.sitepoint.com/debugging-mobile-websites-firefox/

sitepoint.com Debugging Mobile Websites with Firefox — SitePoint Jérémy Heleine 9-11 minutes

All the major browsers now provide tools to help test and debug websites on mobile devices. In this article I will look specifically at Firefox’s offerings and then compare them to Chrome and Internet Explorer. Testing with Firefox Responsive Mode

@vpnwall-services
vpnwall-services / FFMPEG-101.md
Created March 17, 2023 10:22
[FFMPEG 101] FFMPEG 101 #ffmpeg #101 #download #blob
  • Download blob files (get url ending with .m3u8 and also get CDN token for authentication)

ffmpeg -i 'https://xxxx.xxxx.xxx/master.m3u8?this_named_token=xxxxx' -vcodec copy -c copy -crf 50 file.mp4