Skip to content

Instantly share code, notes, and snippets.

@gjorquera
gjorquera / README.md
Last active March 4, 2023 16:30
Script Helpers

Script Helpers

Installation

Include the following lines at the top of your script (make sure you're using bash as the interpreter):

#!/usr/bin/env bash
cd "$(dirname $0)/.."

Las claves a todos los sitios estan en distintas carpetas Bitwarden. Puedes acceder a mi cuenta en Bitwarden usando Emergency Access:

  1. Entra a Bitwarden con tu correo.
  2. Anda a "Settings".
  3. Anda a "Emergency Access".
  4. Anda a "Designated as emergency contact".
  5. Apreta "Request Access".

Bitwarden me enviará un correo y si no respondo en 48 horas, te darán acceso de forma automática.

@gjorquera
gjorquera / console.cpp
Last active February 4, 2024 12:44
Qt way to read from stdin.
#include <iostream>
#include "console.hpp"
void Console::run()
{
std::cout << "First message" << std::endl;
std::cout << "> " << std::flush;
connect(m_notifier, SIGNAL(activated(int)), this, SLOT(readCommand()));
}