Skip to content

Instantly share code, notes, and snippets.

View tudorpavel's full-sized avatar

Tudor Pavel tudorpavel

  • Cluj-Napoca, Romania
View GitHub Profile
@tudorpavel
tudorpavel / RUBY_SETUP.md
Last active September 27, 2016 09:02
Local setup for using Ruby on Linux
@JeffBelback
JeffBelback / docker-destroy-all.sh
Last active May 25, 2024 20:19
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
containers=`docker ps -a -q`
if [ -n "$containers" ] ; then
docker stop $containers
fi
# Delete all containers
containers=`docker ps -a -q`
if [ -n "$containers" ]; then
docker rm -f -v $containers
@tudorpavel
tudorpavel / RAILS_SETUP.md
Last active February 11, 2016 15:07
Local setup for Ruby on Rails development on Linux

Ruby on Rails Setup

Install Ruby

Ruby on Rails depends on the Ruby programming language (doh), so we need to install that first. Follow the Ruby Setup guide to install a local version of Ruby.

Install Rails

Install the latest version of Rails

@marcbowes
marcbowes / gist:1899731
Created February 24, 2012 09:31
Envelope encryption in Ruby using OpenSSL
# Explanation at http://stackoverflow.com/questions/5212213/ruby-equivalent-of-php-openssl-seal/9428217#9428217
# Implementation
class EnvelopeEncryption
require "openssl"
# This method takes in plaintext and produces ciphertext and an