Skip to content

Instantly share code, notes, and snippets.

View DanNduati's full-sized avatar
👋
Hello!

Daniel Nduati DanNduati

👋
Hello!
View GitHub Profile
@DanNduati
DanNduati / arduino_dan_security
Created February 5, 2018 06:37
Arduino based security project
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include <Keypad.h>
#define buzzer 11
#define trigPin 9
#define echoPin 10
#if defined(ARDUINO) && ARDUINO >= 100
#define printByte(args) write(args);
#else
#define printByte(args) print(args,BYTE);
@matthewjberger
matthewjberger / instructions.md
Last active May 9, 2025 05:38
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@Kartones
Kartones / postgres-cheatsheet.md
Last active May 8, 2025 09:19
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)