Skip to content

Instantly share code, notes, and snippets.

View mohammadne's full-sized avatar
🏗️
Building

Mohammad Nasr mohammadne

🏗️
Building
View GitHub Profile
@mohammadne
mohammadne / books.md
Last active April 22, 2024 16:02
this gist contains my academic and favorite books

Books

this gist contains my academic and favorite books

Software Engineering

Architecture

  • Microservice Patterns (manning)
  • Clean Architecture (uncle bob)
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active April 25, 2024 17:43
Ansible variable precedence (order, hierarchy)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 20, 2024 17:38
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@orimanabu
orimanabu / libvirt-qmp-sample.txt
Last active February 5, 2024 16:04
how to run qmp command on a VM invoked via libvirt
# virsh qemu-monitor-command DOMAIN '{"execute": "query-commands"}' --pretty
# virsh qemu-monitor-command DOMAIN --hmp 'help'
# virsh qemu-monitor-command instance-00000002 '{"execute": "query-status"}'
{"return":{"status":"running","singlestep":false,"running":true},"id":"libvirt-5137"}
# virsh qemu-monitor-command instance-00000002 '{"execute": "query-status"}' --pretty
{
"return": {
"status": "running",
@hauthorn
hauthorn / postman.desktop
Last active July 18, 2024 04:46
Postman desktop entry
[Desktop Entry]
Categories=Development;
Comment=Supercharge your API workflow
Exec="/home/hauthorn/Programs/Postman/Postman"
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png
Name=Postman
Terminal=false
Type=Application
Version=1.0
@htp
htp / curl-websocket.sh
Last active August 20, 2024 09:06
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active September 21, 2024 11:58
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@simonista
simonista / .vimrc
Last active September 19, 2024 11:34
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 21, 2024 08:06
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname