Skip to content

Instantly share code, notes, and snippets.

@ljchuello
ljchuello / carta_dinagrafica_txt
Created July 13, 2021 12:17
Envio de la carta dinagrafica por telemetría
{
"CartaDinagrafica": {
"SurfaceCardPosition": [
0.063974,
0.221548,
0.40837,
0.575877,
0.75933,
0.942007,
1.125695,
@ljchuello
ljchuello / img.css
Created July 22, 2020 02:38
TOP => Código mágico que hace todas las imagenes se vean simétricas <3
.crop-image {
display: block;
height: 300px;
width: 100%;
img {
object-fit: contain;
height: 100%;
width: 100%;
object-position: center;
}
@ljchuello
ljchuello / Email.cs
Created January 17, 2020 22:39
Send email with SMTP 465 in C# (MailKit)
// Leonardo Chuello - ljchuello@gmail.com
using MailKit.Net.Smtp;
using MailKit.Security;
using MimeKit;
namespace Test
{
public class Email
{
@ljchuello
ljchuello / sendBtc.cs
Created September 8, 2019 03:29
problems sending money when the wallet has more than 1 transaction
public bool EnviarTodo(string llavePrivada, string destino, string mensaje)
{
Key privateKey = Key.Parse(llavePrivada);
BitcoinSecret bitcoinPrivateKey = new BitcoinSecret(llavePrivada);
BitcoinAddress address = bitcoinPrivateKey.GetAddress(ScriptPubKeyType.Legacy);
QBitNinjaClient client = new QBitNinjaClient(Network.Main);
uint256 transactionId = uint256.Parse("42119368712db98a8fb75763fd9158848dc37ff5b180413e30a5063113b4aaa1");
GetTransactionResponse transactionResponse = client.GetTransaction(transactionId).Result;
@ljchuello
ljchuello / EliminarUltimoCommitRemoto.txt
Created August 2, 2019 03:15
Elimina el ultimo commit remoto
# Eliminar ultimo commit remoto local
git reset --hard HEAD^
# Actualizar código sin el ultimo commit
git push origin -f
# Estos comandos deben de ejecutarse de forma independiente