Guide based on :
-
http://digitalronin.github.io/2014/04/29/installing-graphite-on-ubuntu-1404/
-
sudo apt-get install graphite-web graphite-carbon apache2 libapache2-mod-wsgi
During the installation, you will be asked whether you want Carbon
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HBConvertVideoBatch | |
| { |
Guide based on :
http://digitalronin.github.io/2014/04/29/installing-graphite-on-ubuntu-1404/
sudo apt-get install graphite-web graphite-carbon apache2 libapache2-mod-wsgi
During the installation, you will be asked whether you want Carbon
| var Q = require("q"); | |
| //var mongoClient = require("mongodb").MongoClient; | |
| //var ObjectID = require("mongodb").ObjectID; | |
| //var schema = require('validate'); | |
| function SmartCollection (mongoDb, collectionName, schema, indexes) { | |
| this._mongoDb = mongoDb; | |
| this._collectionName = collectionName; | |
| this._collection = mongoDb.collection(collectionName); |
| Function Install-PoshSsh | |
| { | |
| # https://github.com/darkoperator/Posh-SSH | |
| # http://www.powershellmagazine.com/2014/07/03/posh-ssh-open-source-ssh-powershell-module/ | |
| if(-not(Get-Module -name posh-ssh)) | |
| { | |
| $webclient = New-Object System.Net.WebClient | |
| $url = "https://github.com/darkoperator/Posh-SSH/archive/master.zip" | |
| Write-Host "Downloading latest version of Posh-SSH from $url" -ForegroundColor Cyan |
| Param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$websiteName, | |
| [Parameter(Mandatory = $true)] | |
| [string]$sourceDir, | |
| [string]$destinationPath = "/site/wwwroot" | |
| ) | |
| # Usage: .\kuduSiteUpload.ps1 -websiteName mySite -sourceDir C:\Temp\mydir |
| Based on: https://gallery.technet.microsoft.com/scriptcenter/How-to-batch-change-the-47e310b4 | |
| #--------------------------------------------------------------------------------- | |
| #The sample scripts are not supported under any Microsoft standard support | |
| #program or service. The sample scripts are provided AS IS without warranty | |
| #of any kind. Microsoft further disclaims all implied warranties including, | |
| #without limitation, any implied warranties of merchantability or of fitness for | |
| #a particular purpose. The entire risk arising out of the use or performance of |
| Run the following script on each machine of the cluster: | |
| sudo add-apt-repository 'deb http://www.rabbitmq.com/debian/ testing main'" | |
| sudo apt-get update | |
| sudo apt-get -q -y --force-yes install rabbitmq-server=3.4.1-1 | |
| sudo invoke-rc.d rabbitmq-server stop | |
| echo 'MYCOOKIEVALUE' | sudo tee /var/lib/rabbitmq/.erlang.cookie | |
| sudo chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie | |
| sudo chmod 400 /var/lib/rabbitmq/.erlang.cookie |
| Function Get-AzureWebSitePublishXml | |
| { | |
| Param( | |
| [Parameter(Mandatory = $true)] | |
| [String]$WebsiteName | |
| ) | |
| # Get the current subscription | |
| $s = Get-AzureSubscription -Current | |
| if (!$s) {throw "Cannot get Windows Azure subscription."} |
| $ErrorActionPreference = "Stop" | |
| Set-StrictMode -Version 3.0 | |
| <#-------------------------------------------------------------------------- | |
| https://gallery.technet.microsoft.com/scriptcenter/The-PowerShell-script-for-2a2456c4 | |
| .SYNOPSIS | |
| Script for running T-SQL files in MS SQL Server | |
| Andy Mishechkin |
| // usage: | |
| // <di-three-js-viewer three-js-object="device3DModel"></di-three-js-viewer> | |
| app.directive('diThreeJsViewer', [function() { | |
| function createThreeJsCanvas(parentElement, object) { | |
| var width = 400; | |
| var height = 400; | |
| var scene = new THREE.Scene(); |