Skip to content

Instantly share code, notes, and snippets.

@rafiqrahim
rafiqrahim / encrypt_openssl.md
Created April 11, 2019 16:50 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@rafiqrahim
rafiqrahim / movie-titles.rb
Created October 7, 2015 09:37 — forked from karmi/movie-titles.rb
Multiple analyzers and query fields in Elasticsearch for auto-completion
require 'tire'
# Tire.configure { logger STDERR, level: 'debug' }
Tire.index('movie-titles') do
delete
create \
settings: {
index: {
analysis: {

Keybase proof

I hereby claim:

  • I am rafiqrahim on github.
  • I am rafiq (https://keybase.io/rafiq) on keybase.
  • I have a public key whose fingerprint is 6E7F 7465 7C24 1300 77CB B0B6 F3E0 F167 F7FD 4E07

To claim this, I am signing this object:

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment