cd ~/Downloads
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
apt-get update
should add /etc/apt/sources.list.d/zabbix.list
| Important: you should use values at around 95% of speedtest or 85% of ISP advertised speed. | |
| # using luci: | |
| opkg update; opkg install luci-app-sqm | |
| # without luci: | |
| opkg update | |
| opkg install sqm-scripts |
| A warning occurred (42 apples) | |
| An error occurred |
| # Add Exchange management tools snappin | |
| Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn; | |
| # Create new self signed certificate to be used only during script | |
| [void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms") | |
| [System.Windows.Forms.SendKeys]::SendWait("N") | |
| Start-Sleep 1 | |
| [System.Windows.Forms.SendKeys]::SendWait('{ENTER}') |
| from flask import Flask, request | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| user_agent = request.headers.get('User-Agent') | |
| return '<p>Your browser is {}!</p>'.format(user_agent) | |
| @app.route('/user/<name>') | |
| def user(name): |
| <script src='https://cdnjs.cloudflare.com/ajax/libs/parsley.js/2.5.0/parsley.min.js'></script> | |
| <script> | |
| Parsley.options.errorClass = 'has-danger' | |
| Parsley.options.successClass = 'has-success' | |
| Parsley.options.classHandler = function(f) { return f.$element.closest('.form-group'); } | |
| Parsley.options.errorsWrapper = '<div class="form-control-feedback"></div>' | |
| Parsley.options.errorTemplate = '<div></div>' | |
| </script> |
| $("#parsleyForm").parsley({ | |
| errorClass: 'has-danger', | |
| successClass: 'has-success', | |
| classHandler: function(ParsleyField) { | |
| return ParsleyField.$element.parents('.form-group'); | |
| }, | |
| errorsContainer: function(ParsleyField) { | |
| return ParsleyField.$element.parents('.form-group'); | |
| }, | |
| errorsWrapper: '<span class="text-help">', |
| from flask import Flask, render_template | |
| from flask.ext.wtf import Form, widgets, SelectMultipleField | |
| SECRET_KEY = 'development' | |
| app = Flask(__name__) | |
| app.config.from_object(__name__) | |
| class MultiCheckboxField(SelectMultipleField): | |
| widget = widgets.ListWidget(prefix_label=False) |
| function refreshData() | |
| { | |
| x = 5; // 5 Seconds | |
| // Do your thing here | |
| setTimeout(refreshData, x*1000); | |
| } | |
| '''See http://stackoverflow.com/a/5359988/120991 | |
| ''' | |
| from fabric.api import * | |
| from contextlib import contextmanager | |
| env.update( | |
| use_ssh_config=True, | |
| directory='/home/ubuntu/projects/thingy', |
cd ~/Downloads
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
apt-get update
should add /etc/apt/sources.list.d/zabbix.list