Skip to content

Instantly share code, notes, and snippets.

@phrfpeixoto
phrfpeixoto / encrypt.txt
Created February 16, 2017 16:30
Using SSH public key to encrypt a file or string
# Recently I had to send a password to someone over Skype. Since that's obviously not a good idea, I asked for
# the person's public SSH RSA key, and used it to encrypt the password itself.
# Convert the public key into PEM format
ssh-keygen -f path/to/id_rsa.pub -e -m pem > ~/id_rsa.pub.pem
# Using the public pem file to encrypt a string
echo "sometext" | openssl rsautl -encrypt -pubin -inkey ~/id_rsa.pub.pem > ~/encrypted.txt
#include "FastLED.h"
#define DATA_PIN 18
//#define CLK_PIN 4
#define LED_TYPE WS2812
#define COLOR_ORDER GRB
#define NUM_LEDS 64
CRGB leds[NUM_LEDS];
#define BRIGHTNESS 96
image: python:3.7
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
@phrfpeixoto
phrfpeixoto / keybase.md
Created June 16, 2020 00:44
keybase.md

Keybase proof

I hereby claim:

  • I am phrfpeixoto on github.
  • I am phrfpeixoto (https://keybase.io/phrfpeixoto) on keybase.
  • I have a public key ASDQVvHjAD1k1R9i_AgNxzpWEvc0cc54oyMIdnzyBJv7qAo

To claim this, I am signing this object: