Docu for encrypt and decrypt a large file with AES and RSA
//generates a private Key with 8196 Bit.
openssl genrsa -out private.pem 8196
#!/usr/bin/env python | |
import sys, re, os, popen2 | |
hosts_locs = [ | |
"/etc/hosts", | |
"C:/Windows/system32/drivers/etc/hosts" | |
] | |
hosts = {} |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" |
# requires a2enmod proxy proxy_http proxy_wstunnel rewrite ssl | |
<VirtualHost *:80> | |
ServerName plex.domain.tld | |
ServerAlias plex.domain2.tld | |
Redirect / https://plex.domain.tld | |
</VirtualHost> | |
<VirtualHost *:443> |
a. –XX:+UseParNewGC – Use parallel GC in the young generation | |
b. –XX:–UseParNewGC – Use serial GC in young generation | |
c. –XX:+UseParallelGC - Use parallel GC in the young generation, serial in old generation | |
d. –XX:+UseSerialGC – Use serial generational GC | |
e. –XX:+UseParallelOldGC – Use parallel GC in both young and old generation. | |
f. –XX:+UseConcMarkSweepGC – Use Concurrent Mark Sweep GC in old generation. | |
g. –XX:+AlwaysTenure – Always create objects in old generation. | |
h. –XX:+UseG1GC – Use G1 garbage collector | |
i. –XX:PretenureSizeThreshold=<n bytes> - Allocate objects greater than n bytes in size directly in old generation | |
j. –Xms=<nM/m/g/G> – This option lets you specify minimum memory that is allocated to your Java heap. |
#!/bin/bash | |
# Reads EXIF creation date from all .JPG files in the | |
# current directory and moves them carefully under | |
# | |
# $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/ | |
# | |
# ...where 'carefully' means that it does not overwrite | |
# differing files if they already exist and will not delete | |
# the original file if copying fails for some reason. |
I had wondered about this some weeks ago before finally trying it out today. I'm surprised nobody else had tried already. I was successful enough to be satisfied for my own uses. YMMV.
Result is I have a new Play Music account with Family Sharing which I can share with my G-Suite users, with all my playlists* moved over, and without anyone needing to maintain a separate email account.
This whole process took me about an hour, including moving across 15 playlists, but not including MX record propagation.
Disable vim automatic visual mode on mouse select | |
issue: :set mouse-=a | |
add to ~/.vimrc: set mouse-=a | |
my ~/.vimrc for preserving global defaults and only changing one option: | |
source $VIMRUNTIME/defaults.vim | |
set mouse-=a |
First, download driver.
http://www.nvidia.com/download/driverResults.aspx/82252/en-us
To be able to install your nvidia driver you have to remove your previous video driver with this code in a terminal window: