Skip to content

Instantly share code, notes, and snippets.

View Anas-jaf's full-sized avatar
🎯
Focusing

Anas Mahmoud Anas-jaf

🎯
Focusing
View GitHub Profile
@miguelmota
miguelmota / instructions.sh
Last active October 11, 2023 06:25
linux wireshark SSLKEYLOGFILE ssl decrypt curl
sudo wireshark
# go to:
# Edit -> Preferences -> Protocols -> TLS (you can type) -> under "(Pre)-Master-Secret log filename
" enter in input "/tmp/ssl-key.log"
# then start capture
# curl
SSLKEYLOGFILE=/tmp/ssl-key.log curl https://example.com
# firefox (don't forget to disable http2 in about:config and restart)
@Anas-jaf
Anas-jaf / Dockerfile
Created August 7, 2022 21:07 — forked from yudhiwidyatama/Dockerfile
Dockerfile for VNC Server running XFCE Desktop on Debian Jessie, version 2
FROM debian:jessie
RUN apt-get update && apt-get install --no-install-recommends -y keyboard-configuration \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --no-install-recommends -y gnome-icon-theme tightvncserver xorg xserver-xorg \
xserver-xorg-video-dummy \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --no-install-recommends -y xfce4 xfce4-goodies iceweasel \
@Anas-jaf
Anas-jaf / install_qt4.md
Last active August 5, 2022 21:47
install qt4

install sip

wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.13/sip-4.19.13.tar.gz
tar xzvf-sip-4.19.13.tar.gz 
cd sip-4.19.13.tar.gz 
python configure.py -b $HOME/local/bin -d $HOME/local/lib/python2.7/site-packages -e $HOME/local/include
make 
make install
@ShyftXero
ShyftXero / .nanorc
Last active August 20, 2023 18:35
A good nanorc file
# Options
set tabsize 4
set tabstospaces
set indicator # side-bar for indicating cur position
set linenumbers
#set numbercolor green,normal
#set suspendable # allow nano be suspended
set smarthome # home jumps to line start first
set zap # delete selected text as a whole
@ishad0w
ishad0w / sources.list
Last active May 13, 2024 01:45
Debian 10 (Buster) -- Full sources.list
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
@ZoomQuiet
ZoomQuiet / install.md
Created April 1, 2019 03:50 — forked from bitjockey42/install.md
Install SIP and PyQT4 (pyenv, pyenv-virtualenv)

Download

pyenv virtualenv

Switch to the Python version you want to use:

@mostafabahri
mostafabahri / decrypt.py
Last active May 2, 2024 00:37
Fernet encryption example with password
#!/usr/bin/env python3
from cryptography.fernet import Fernet
from kdf import derive_key
passphrase = b"hunter2"
f = Fernet(derive_key(passphrase))
with open('encrypted.txt', 'rb') as file:
encrypted = file.read() # binary read
@yudhiwidyatama
yudhiwidyatama / Dockerfile
Created October 30, 2016 09:56
Dockerfile for VNC Server running XFCE Desktop on Debian Jessie, version 2
FROM debian:jessie
RUN apt-get update && apt-get install --no-install-recommends -y keyboard-configuration \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --no-install-recommends -y gnome-icon-theme tightvncserver xorg xserver-xorg \
xserver-xorg-video-dummy \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --no-install-recommends -y xfce4 xfce4-goodies iceweasel \