Install the OpenSSL on Debian based systems
sudo apt-get install openssl
import React from 'react' | |
import axios, { post } from 'axios'; | |
class SimpleReactFileUpload extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state ={ | |
file:null | |
} |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type text/html; | |
access_log /dev/stdout; | |
sendfile on; | |
keepalive_timeout 65; |
/* | |
* From the article "The Art of Error" | |
* http://dailyjs.com/2014/01/30/exception-error/ | |
*/ | |
/* node example */ | |
var assert = require('assert'); | |
var util = require('util'); | |
function NotFound(message) { |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
# as zimbra user | |
$ zmprov -l gaa |grep -v admin-domain.com >/tmp/accounts.zmp | |
$ zmprov -l gad |grep -v admin-domain.com >/tmp/domains.zmp |
# Lemon Productions Hourly Contract | |
Date: [[Date of Document]] | |
Between Lemon Productions | |
and [Your Company] | |
## Summary | |
We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future. |
# The command below creates a tgz file with all emails for user@domain.com in .eml format: | |
# execute as root | |
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /tmp/account.tgz | |
# You can do the same via a REST URL: | |
wget http://ZIMBRA.SERVER/home/user@domain.com/?fmt=tgz | |
# to restore email: | |
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL "//?fmt=tgz&resolve=reset" /tmp/account.tgz |