Skip to content

Instantly share code, notes, and snippets.

View asierrayk's full-sized avatar

Asier Cardoso Sánchez asierrayk

View GitHub Profile
@user202729
user202729 / .a-sympytex-on-overleaf.md
Last active January 12, 2026 12:00
sympytex on overleaf

Use sympytex on overleaf

This is not officially supported, but you can made it to work...

  • first, see the test.tex file below (because of an annoying GitHub gist "bug", all files following a large raw file are shown as "cannot display file this big...", thus the "a-" prefix)

  • download sympy.zip attached below in the gist, and upload it to your overleaf.

@decabyte
decabyte / nb_remove_output.py
Last active December 21, 2023 02:32 — forked from damianavila/remove_output.py
Remove output from Jupyter notebook from the command line
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Remove output from existing Jupyter Notebooks.
Modified from remove_output by Minrk, damianavila, gabraganca.
References:
[0]: https://github.com/jupyter/nbformat
[1]: http://nbformat.readthedocs.org/en/latest/index.html
@Kartones
Kartones / postgres-cheatsheet.md
Last active January 26, 2026 09:39
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: