Skip to content

Instantly share code, notes, and snippets.

View mvklingeren's full-sized avatar

Milco van Klingeren mvklingeren

View GitHub Profile
@mvklingeren
mvklingeren / gist:0dcbdf111590c6ed8ddfb734e2eac68e
Created December 27, 2025 12:38
Create a Android emulator by running ./setup_emulator.sh (it downloads google's commandline tools for this, and the Android image)
#!/bin/bash
# Store this file as setup_emulator.sh, then simpy execute it.
#
#
# ==============================================================================
# AUTO-SETUP: Android Emulator (Apple Silicon M-Series)
# - Default: Android 16 (API 36)
# - Preset: Pixel Tablet (2560x1600)
# - Heap: 1GB | RAM: 4GB
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 by Daniel Eichhorn
* Copyright (c) 2016 by Fabrice Weinberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@mvklingeren
mvklingeren / Program.cs
Created August 29, 2019 06:54
Sending a .EML file in C# using MailMessage with the SmtpClient
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MailMeml