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
function kubernetes::deployment::wait { | |
deployment=$1 | |
ns=${2:-'default'}; | |
k_cmd="kubectl --namespace=$ns get deployments $deployment"; | |
while true; do | |
observed=$($k_cmd -o 'jsonpath={.status.observedGeneration}'); | |
generated=$($k_cmd -o 'jsonpath={.metadata.Generation}'); | |
[ "$?" -ne 0 ] && break; | |
[ "${observed}" -ge "${generated}" ] && { | |
updated_replicas=$($k_cmd -o 'jsonpath={.status.updatedReplicas}'); |
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
$ kubectl exec --tty -i nginx-ingress-controller-9xccu -- ls -alh --color | |
total 6.2M | |
drwxr-xr-x 46 root root 4.0K May 1 12:47 . | |
drwxr-xr-x 46 root root 4.0K May 1 12:47 .. | |
-rwxr-xr-x 1 root root 0 May 1 12:46 .dockerenv | |
-rwxr-xr-x 1 root root 0 May 1 12:46 .dockerinit | |
drwxr-xr-x 2 root root 4.0K Apr 28 00:50 bin | |
drwxr-xr-x 2 root root 4.0K Nov 27 13:59 boot | |
drwxr-xr-x 5 root root 380 May 1 12:46 dev | |
drwxr-xr-x 45 root root 4.0K May 1 12:46 etc |
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
# MySQL Service | |
description "MySQL Server" | |
author "Mario Limonciello <superm1@ubuntu.com>" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "ubuntu_server_12_10_amd64" | |
config.vm.box_url = 'http://goo.gl/8kWkm' | |
nodes = { | |
'esb' => { | |
:hostname => '01-esb.photobox.com', |
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
API Per-User Limit Used Courtesy Limit | |
Google Cloud Datastore API 500.0 requests/second/user 0% 10,000,000 requests/day Request more... | |
BigQuery API 5.0 requests/second/user 0% 10,000 requests/day Enable billing | |
Latitude API 1.0 requests/second/user 0% 1,000,000 requests/day Request more... | |
Google Maps API v3 1.0 requests/second/user 0% 25,000 requests/day Enable billing | |
Places API 0% 1,000 requests/day Enable billing | |
Search API for Shopping 1.0 requests/second/user 0% 2,500 requests/day Request more... | |
Fusion Tables API 2.0 requests/second/user 0% 25,000 requests/day Request more... | |
Google Cloud SQL API 1.0 requests/second/user 0% 10,000 requests/day Request more... | |
Drive API 10.0 requests/second/user 0% 10,000,000 requests/day Request more... |
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
*************************** 10. row *************************** | |
Id: 11408 | |
User: root | |
Host: localhost | |
db: glt | |
Command: Query | |
Time: 212 | |
State: Sending data | |
Info: SELECT (t1.cid + 1) as gap_starts_at, | |
(SELECT MIN(t3.cid) -1 FROM acid_event t3 WHERE t3.cid > t1.cid) as gap_ends_at |
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
WIRED ME: | |
[11:53:55] Andrew Johnstone: andrew@andrew-OptiPlex-7010:~$ ping 8.8.8.8 | |
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. | |
64 bytes from 8.8.8.8: icmp_req=1 ttl=49 time=10.6 ms | |
64 bytes from 8.8.8.8: icmp_req=2 ttl=49 time=10.7 ms | |
64 bytes from 8.8.8.8: icmp_req=3 ttl=49 time=12.9 ms | |
^C |
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
'use strict'; | |
console.log('Loading event'); | |
var logGroupName = 'vpc-flow-logs', | |
region = 'eu-west-1'; | |
var AWS = require('aws-sdk'), | |
Promise = require('bluebird'), | |
async = require('async'), |
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
FatalErrorException: Error: Class 'ezxFormToken' not found in /opt/src/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 126 | |
in /opt/src/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 126 |
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
# Provisioning | |
cd /opt/src/provisioning/; | |
git checkout migration | |
git submodule init | |
git submodule update | |
puppet apply --debug --verbose /etc/puppet/manifests/sandbox.pp | |
cd /opt/src/; | |
git checkout migration | |
git submodule init |