Skip to content

Instantly share code, notes, and snippets.

@InsaneWookie
InsaneWookie / config_m1s_home_assistant.md
Last active August 8, 2025 13:04
Configure Aqara M1S Gateway for Home Assistant
@leonardofed
leonardofed / README.md
Last active April 25, 2026 09:05
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@kpespisa
kpespisa / SQLiteExtensions
Last active June 2, 2017 07:04
Save and Delete Extensions to SQLite-NET
public static class SQLiteExtensions
{
/// <summary>
/// Save the specified entity by calling insert or update, if the entity already exists.
/// </summary>
/// <param name="pk">The primary key of the entity</param>
/// <param name="obj">The instance of the entity</param>
/// <typeparam name="T">The entity type.</typeparam>
public static int Save<T>(this SQLiteConnection db, object pk, object obj) where T : class, new()
{
@seanmcn
seanmcn / gist:62a021a765ad4f8e593b
Last active July 20, 2024 16:30
The Perfect Web Server - Nginx, Ajenti, Ubuntu
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*