sudo apt-get update
sudo apt-get upgrade
This file contains hidden or 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
# Stop all services in needed order. | |
service graylog2-web stop; service graylog2-server stop; service elasticsearch stop; service mongodb stop; | |
# Start all services in needed order. | |
# - sleep is needed, so ES and Mongo have time to startup. | |
service elasticsearch start; service mongodb start; sleep 5; service graylog2-server start; service graylog2-web start; |
This file contains hidden or 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
app.directive('datepickerLocaldate', ['$parse', function ($parse) { | |
var directive = { | |
restrict: 'A', | |
require: ['ngModel'], | |
link: link | |
}; | |
return directive; | |
function link(scope, element, attr, ctrls) { | |
var ngModelController = ctrls[0]; |
This file contains hidden or 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/sh | |
# cloudflareddns.sh - dynamic dns updater module for Synology | |
# | |
# Author: | |
# Michael Wildman (http://mwild.me) | |
# | |
# Version: | |
# 0.2 | |
# |
This file contains hidden or 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 program is licensed under the MIT License. | |
navigator.webkitGetUserMedia = function(opt, ok, ng) { | |
ok(null); | |
}; | |
AudioContext.prototype.createMediaStreamSource = function() { | |
var osc = this.createOscillator(); | |
osc.type = 'sine'; | |
var gain = this.createGain(); | |
gain.gain.value = 0.0; | |
osc.connect(gain); |
This file contains hidden or 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
server { | |
listen 443; | |
server_name pve.mydomain.com; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/ssl.crt; | |
ssl_certificate_key /etc/nginx/ssl/ssl.key; | |
proxy_redirect off; | |
location / { |
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'
- Send a mass email to all of your account holders, letting them know that you will be migrating their email accounts to a new server. Send them the instructions from MiaB control panel for connecting to your MiaB server from their mobile/Outlook/Gmail/etc, if applicable. Also, send them a link to the new webmail address. Be sure to give adequate advanced notice (several days, if possible). Advise them to not change their passwords during this time (their passwords will be preserved during migration).
- Create a new "test" email account in the MiaB control panel for your domain. This will let MiaB set up the DNS records needed for the domain.
Copy the email account credentials from your cPanel host to MiaB:
Theory:
your git repository can have more than one remote server; In this case we want to have two:
- one for our private repository on gitlab (will be the default one, called
origin
) - one to be connected to the source repo on github, to be able to pull new changes (will be called
upstream
)
How to make a private fork from github to gitlab
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage