Skip to content

Instantly share code, notes, and snippets.

View LinkSake's full-sized avatar
🌊
I sure hope I know what I'm doing

Luis Ángel Ortega LinkSake

🌊
I sure hope I know what I'm doing
View GitHub Profile
@bps
bps / moaan-inkpalm-plus-setup.md
Last active May 31, 2025 13:14
Moaan InkPalm Plus setup

Moaan InkPalm Plus setup

I got this device set up nearly as I like, but then flew too close to the sun while experimenting with setting lock screen wallpaper and enabled a lock screen PIN which was then never accepted. After a reboot recovery in adb, if you hold the top button and press the volume up button, you can get to a menu where you can do a factory reset.

After I did that, I decided to write this down.

The firmware version this has now is: MAS_EPD305_L81B804_T44_V09.

Setup from factory reset

@huytd
huytd / wordle.md
Last active July 11, 2025 16:33
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@blazewicz
blazewicz / docker-compose-install.sh
Last active January 4, 2024 18:14
Install latest docker-compose on Debian, Ubuntu or Raspberry Pi OS (Raspbian)
#!/bin/bash
set -x
# This script with documentation is available at: https://gist.github.com/blazewicz/04e666ae1f25387c8b291d81b12c550c
## 1. install required dependencies with apt
apt update && apt install python3-venv python3-dev libffi-dev libssl-dev
## 2. create directory for docker-compose's virtualenv
mkdir -p /opt/local/docker-compose
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active July 17, 2025 10:31
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active December 23, 2024 15:56 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active July 27, 2025 06:52
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@Kartones
Kartones / postgres-cheatsheet.md
Last active July 25, 2025 17:04
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)