Skip to content

Instantly share code, notes, and snippets.

!/bin/bash
sudo apt install -y \
libxcb1-dev \
libxcb-keysyms1-dev \
libpango1.0-dev \
libxcb-util0-dev \
libxcb-icccm4-dev \
libyajl-dev \
libstartup-notification0-dev \
libxcb-randr0-dev \
$storeId = 1;
$rootCategoryId = Mage::app()->getStore($storeId)->getRootCategoryId();
$categories = Mage::getModel('catalog/category')
->getCollection()
->setStoreId($storeId)
->addFieldToFilter('is_active', 1)
->addAttributeToFilter('path', array('like' => "1/{$rootCategoryId}/%"))
->addAttributeToSelect('*');
foreach($categories as $categorie)
<?php
if(!function_exists('mime_content_type')) {
function mime_content_type($filename) {
$mime_types = array(
'txt' => 'text/plain',
'htm' => 'text/html',
'html' => 'text/html',
<default>
<catalog><!-- tag of the system.xml section -->
<frontend><!-- tag of the system.xml group -->
<name_of_your_field>4</name_of_your_field><!-- tag of the system.xml field -->
</frontend>
<part2><!-- tag of the system.xml group -->
<name_of_your_field>4</name_of_your_field><!-- tag of the system.xml field -->
</part2>
</catalog>
<catalog><!-- tag of the system.xml section -->
#!/bin/bash
protected_branch='master'
current_branch=$(git symbolic-ref --short HEAD)
echo "-###############################################################################-"
echo "-########################- BYTEYARD MASTER PROTECTION -########################-"
echo "-###############################################################################-"
if [ $protected_branch = $current_branch ]
then
#!/bin/bash
wget https://github.com/gravitational/teleport/releases/download/v1.0.0/teleport-v1.0.0-linux-amd64-bin.tar.gz
tar -xvzf teleport-v1.0.0-linux-amd64-bin.tar.gz
cd teleport
sudo mkdir -p /opt/bin
sudo cp -af teleport /opt/bin/teleport
sudo cp -af tctl /opt/bin/tctl
sudo cp -af tsh /opt/bin/tsh
cd ..
sudo rm teleport-v1.0.0-linux-amd64-bin.tar.gz
dr-who@FailBowl ~/projects/gopath/src/github.com/deis/helm (master)$ make bootstrap [ruby-2.2.0]
glide -y glide-full.yaml up
[INFO] Fetching updates for github.com/google/gofuzz.
[INFO] Fetching updates for github.com/google/go-querystring.
[INFO] Fetching updates for github.com/golang/groupcache.
[INFO] Fetching updates for github.com/rakyll/goini.
[INFO] Fetching updates for github.com/evanphx/json-patch.
[INFO] Fetching updates for github.com/prometheus/client_model.
[INFO] Fetching updates for github.com/rackspace/gophercloud.
[INFO] Fetching updates for github.com/skynetservices/skydns.
diff --git a/controller/scheduler/fleet.py b/controller/scheduler/fleet.py
index 342391f..7f78177 100644
--- a/controller/scheduler/fleet.py
+++ b/controller/scheduler/fleet.py
@@ -378,6 +378,7 @@ CONTAINER_TEMPLATE = [
{"section": "Service", "name": "TimeoutStopSec", "value": "10"},
{"section": "Service", "name": "RestartSec", "value": "5"},
{"section": "Service", "name": "Restart", "value": "on-failure"},
+ {"section": "X-Fleet", "name": "MachineMetadata", "value": "type=worker"},
]
etcdctl ls /deis --recursive
/deis/controller
/deis/controller/builderKey
/deis/controller/registrationEnabled
/deis/controller/webEnabled
/deis/controller/unitHostname
/deis/controller/host
/deis/controller/port
/deis/controller/protocol
/deis/controller/secretKey
Apr 09 12:45:20 coreos-01 sh[6191]: builder: waiting for confd to write initial templates...
Apr 09 12:45:23 coreos-01 sh[6192]: /bin/sh: line 0: echo: write error: Broken pipe
Apr 09 12:45:25 coreos-01 sh[6191]: 2015-04-09T12:45:25Z 22a7f746570f confd[920]: ERROR Config check failed: exit status 1
Apr 09 12:45:25 coreos-01 sh[6191]: 2015-04-09T12:45:25Z 22a7f746570f confd[920]: ERROR Config check failed: exit status 1
Apr 09 12:45:25 coreos-01 sh[6191]: builder: waiting for confd to write initial templates...
Apr 09 12:45:26 coreos-01 sh[6192]: /bin/sh: line 0: echo: write error: Broken pipe
Apr 09 12:45:31 coreos-01 sh[6191]: 2015/04/09 12:45:31 docker daemon: 1.3.0 c78088f; execdriver: native; graphdriver: btrfs
Apr 09 12:45:31 coreos-01 sh[6191]: [f19a19a8] +job serveapi(unix:///var/run/docker.sock)
Apr 09 12:45:31 coreos-01 sh[6191]: [info] Listening for HTTP on unix (/var/run/docker.sock)
Apr 09 12:45:31 coreos-01 sh[6191]: 2015/04/09 12:45:31 prerequisites for driver not satisfied (wrong filesystem?)