Skip to content

Instantly share code, notes, and snippets.

View chhex's full-sized avatar

Christoph Henrici chhex

  • Henrici Software, Entwicklung & Beratung
  • Brüttisellen
View GitHub Profile
@wteuber
wteuber / encrypt_decrypt.rb
Last active October 28, 2024 11:58
Simply encrypt and decrypt Strings in Ruby.
require 'openssl'
class String
def encrypt(key)
cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt
cipher.key = Digest::SHA1.hexdigest key
s = cipher.update(self) + cipher.final
s.unpack('H*')[0].upcase
end
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k