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
import Vue from 'vue' | |
import auth from '../../auth' | |
Vue.use(require('vue-full-calendar')) | |
window.jQuery = window.$ = require('jquery') | |
var self = this | |
export default { | |
data() { | |
return { |
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
# /etc/cron.d/letsencrypt: crontab entries for the letsencrypt package | |
# | |
# Upstream recommends attempting renewal twice a day | |
# | |
# Eventually, this will be an opportunity to validate certificates | |
# haven't been revoked, etc. Renewal will only occur if expiration | |
# is within 30 days. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
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
2016-09-01 12:09:36,804 21461 INFO cdm-new werkzeug: 127.0.0.1 - - [01/Sep/2016 12:09:36] "GET /web/database/manager HTTP/1.1" 500 - | |
2016-09-01 12:09:36,811 21461 ERROR cdm-new werkzeug: Error on request: | |
Traceback (most recent call last): | |
File "/home/maxime/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi | |
execute(self.server.app) | |
File "/home/maxime/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute | |
application_iter = app(environ, start_response) | |
File "/home/maxime/Projects/agile/dev/ocb-new/openerp/service/server.py", line 291, in app | |
return self.app(e, s) | |
File "/home/maxime/Projects/agile/dev/ocb-new/openerp/service/wsgi_server.py", line 216, in application |
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
#!/bin/bash | |
# add vhost reverse proxy for new docker instance for nginx and restart nginx | |
# use like this : do_nginx_proxy_vhost subdir.example.com http://192.168.0.20:8080 | |
function do_nginx_proxy_vhost() { | |
[ -z $1 -o -z $2 ] && echo "Give host and address" && return | |
host=$1 | |
address=$2 | |
[ -f /etc/nginx/sites-available/proxy_reverse_$host ] && (echo "Updating proxy for host: $host" && sudo rm /etc/nginx/sites-enabled/proxy_reverse_$host) || echo "Creating proxy for host: $host" |
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
██████╗██╗ ██╗ ██████╗██╗ ██╗███╗ ███╗██████╗ ███████╗██████╗ | |
██╔════╝██║ ██║██╔════╝██║ ██║████╗ ████║██╔══██╗██╔════╝██╔══██╗ | |
██║ ██║ ██║██║ ██║ ██║██╔████╔██║██████╔╝█████╗ ██████╔╝ | |
██║ ██║ ██║██║ ██║ ██║██║╚██╔╝██║██╔══██╗██╔══╝ ██╔══██╗ | |
╚██████╗╚██████╔╝╚██████╗╚██████╔╝██║ ╚═╝ ██║██████╔╝███████╗██║ ██║ | |
╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝ |
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
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
NewerOlder