Skip to content

Instantly share code, notes, and snippets.

View jon-dearaujo's full-sized avatar
😮‍💨

Jonathan Henrique de Araújo Silva jon-dearaujo

😮‍💨
  • IPSY | BFA Industries
  • Recife, Pernambuco. Brazil.
  • X @jon_dearaujo
View GitHub Profile
@gitaarik
gitaarik / git_submodules.md
Last active January 13, 2026 09:49
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@bortzmeyer
bortzmeyer / gist:1284249
Created October 13, 2011 13:42
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys