#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
| <!DOCTYPE html> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
| <title>html5 webgl test project</title> | |
| <style type="text/css"> | |
| body { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
| server { | |
| listen 80; | |
| server_name wbs; | |
| root /var/www/wbs; | |
| #!/bin/sh | |
| # If you would like to do some extra provisioning you may | |
| # add any commands you wish to this file and they will | |
| # be run after the Homestead machine is provisioned. | |
| echo "Updating machine software" | |
| locale-gen en_GB.UTF-8 | |
| # Updating composer |
#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
| #!/usr/bin/env bash | |
| # | |
| # Example of multiple key AES encryption for text files using the openssl v. 0.9.8+ command line utility | |
| # Uses n public certs as key for MIME PKCS envelope, any individual private key can decrypt. | |
| # | |
| # If standard RSA ssh keys exist, these can be converted to public certs as well (and ssh keys can decrypt) | |
| # | |
| # To sign (and verify) the encrypted file, one of the private keys is required, see: | |
| # http://www.openssl.org/docs/apps/smime.html#EXAMPLES for openssl smime examples | |
| # or http://www.openssl.org/docs/apps/cms.html#EXAMPLES for cms utility (OpenSSL v. 1.0+) |
| # truetamtam | |
| # PS1 for debian set in /etc/bash.bashrc | |
| # PS1='${debian_chroot:+($debian_chroot)}\[\e[1;32m\][\u@\h: \w]\$\[\e[0m\] ' | |
| # vim options set in /etc/vim/vimrc | |
| alias vg='vagrant' | |
| alias hs='homestead' | |
| alias cm='composer' | |
| alias dc='docker-compose' | |
| alias d='docker' | |
| alias dm='docker-machine' |
| description "Remounting shared folder d:\www from windows7 with virtualbox. | |
| Solving permission problems. | |
| Origin: http://superuser.com/questions/527963/how-to-allow-nginx-in-guest-vm-access-shared-folders-in-host-os" | |
| start on starting | |
| task | |
| exec mount -t vboxsf www -o rw,dmode=777,gid=1000,uid=1000 /home/user/shared_www |
| #!/bin/bash | |
| # Origin: http://askubuntu.com/a/562191 | |
| # required: wmctrl | |
| app=$1 | |
| workspace=$(wmctrl -d | grep '\*' | cut -d ' ' -f1) | |
| win_list=$(wmctrl -lx | grep $app | grep " $workspace " | awk '{print $1}') | |
| IDs=$(xprop -root|grep "^_NET_CLIENT_LIST_STACKING" | tr "," " ") |
###Initial installation and configuration Install Git for Windows which includes Git Bash.
Install VirtualBox and Vagrant.
Note: Do not install VirtualBox 5.0 and Vagrant 1.7.4. At the moment these versions are causing problems that I've been unable to solve with this Gist. Use the previous versions instead. VirtualBox 4.3.30 and Vagrant 1.7.3.
| ---------------------------------------------------- | |
| Problem 1: | |
| npm install | |
| ... npm ERR... | |
| Soft: | |
| Laravel Homestead version 2.1.6 | |
| Vagrant 1.7.4 | |
| VirtualBox 4.3.30 | |
| Solution: | |
| 1. ssh into homestead |