- Restart using
ESC-Refresh-Power
- At the prompt,
CTRL-D
to erase and install ChromeOS in Developer mode - Launch terminal -
CTRL-ALT-t
- Download and Install Crouton from (https://github.com/dnschneid/crouton)
sudo sh -e ~/Downloads/crouton -t cli-extra
sudo sh -e crouton -p "/media/removable/USB Drive/" -r trusty -t cli-extra
sudo sh -e crouton -p "/media/removable/USB Drive/" -r trusty -t xfce
- Open up port 80 if needed -
sudo /sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
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
availabilityResults | |
| where timestamp >= ago(30d) | |
| summarize AvailabilityPercentage=(sum(todouble(success)) / count(success)) * 100, Failures=count(success)-sum(todouble(success)), TotalTests=count(success) by TestName=name | |
| order by Failures asc |
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
--- rabbitmq-env-orig.bat Tue Oct 11 12:16:01 2016 | |
+++ rabbitmq-env.bat Tue Oct 11 12:10:18 2016 | |
@@ -1,10 +1,12 @@ | |
@echo off | |
REM Scopes the variables to the current batch file | |
REM setlocal | |
+set /p COOKIE_VALUE=<%HOMEDRIVE%%HOMEPATH%\.erlang.cookie | |
+ |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var telemetryClient = new TelemetryClient(new TelemetryConfiguration("APP_INSIGHTS_KEY")); | |
var mongoConnectionString = "mongodb://localhost:27017/test"; | |
TrackMongoByEvents(mongoConnectionString, telemetryClient); | |
TrackMongoManually(mongoConnectionString, telemetryClient); |
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
//Read | |
//BsonDocument | |
var collection = db.GetCollection<BsonDocument>("people"); | |
var builder = Builders<BsonDocument>.Filter; | |
//Note that the '&' '!' '|' operators are overloaded when used in the FilterBuilder | |
var filter = builder.Lt("Age", 33) & !builder.Eq("Name", "Ericsson"); | |
var list = await collection.Find(filter).ToListAsync(); | |
------------------------------------------------------------------------------------ |
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
# Helper method | |
function StartService($ServiceName) { | |
$arrService = Get-Service -Name $ServiceName | |
while ($arrService.Status -ne 'Running') | |
{ | |
Start-Service $ServiceName | |
write-host $arrService.status | |
write-host 'Service starting' | |
Start-Sleep -seconds 5 |
OlderNewer