This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# This script opens lyrics of a song currently played by Spotify in default browser | |
# (for Linux, using Ruby and D-Bus). | |
# | |
# @see https://bbs.archlinux.org/viewtopic.php?id=134635 | |
# @see https://github.com/mvidner/ruby-dbus | |
# | |
# Author:: Vaclav Sykora (mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// generate private/public key as follows: | |
// > openssl genrsa -out private.pem 2048 | |
// > openssl rsa -in private.pem -outform PEM -pubout -out public.pem | |
$data = "String to encrypt"; | |
$privKey = openssl_pkey_get_private('file:///path/to/private.pem'); | |
$encryptedData = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: [email protected] | |
# Description: Installs Docker Engine and setup Kubernetes cluster | |
# | |
# Optional plugins: | |
# vagrant-proxyconf (if you don't have direct access to the Internet) | |
# see https://github.com/tmatilai/vagrant-proxyconf for configuration | |
# | |
# Usage: | |
# > vagrant plugin install vagrant-proxyconf # optional, in case you are behind a corporate proxy server | |
# > vagrant init # optional, just to initialize the current directory to be a Vagrant environment |