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
# update brew | |
brew update | |
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core | |
# fork https://github.com/Homebrew/homebrew-core | |
git fetch --all | |
git checkout master | |
git pull | |
git push <FORK> |
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
def create_or_update_snap_builder(self, name, owner, version, repo, branch, track): | |
""" Creates a new LP builder for snap with a specific git branch to build from | |
""" | |
lp_snap_name = f'{name}-{version}' | |
lp_snap_project_name = f'snap-{name}' | |
lp_owner = self.owner(owner) | |
if not isinstance(track, list): | |
track = [track] |
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
#!/bin/sh | |
# | |
# Delete a VPC and its dependencies | |
if [ -z "$1" ] then | |
echo "usage: $0 <vpcid>" | |
exit 64 | |
fi | |
vpcid="$1" |
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
#!/bin/bash | |
set -eu | |
_UID=$(id -u) | |
GID=$(id -g) | |
# give lxd permission to map your user/group id through | |
grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root | |
# set up a separate key to make sure we can log in automatically via ssh | |
# with $HOME mounted |
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
#!/bin/bash | |
# jenkins master vitals | |
CI_MASTER_HOST="ci-1.youdevise.com" | |
CI_MASTER_PORT="80" | |
# node vitals | |
NODE_HOST="tom-denley-rocks-01.youdevise.com" | |
NODE_NAME="tom-denley-rocks-name-01" | |
NODE_DESC="my node of glory" |
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
#!/bin/bash | |
set -e | |
set -u | |
CI_MASTER_URL="http://ci-1" | |
node_online() { | |
curl --silent "$CI_MASTER_URL/computer/$1/api/json" | grep --silent '"temporarilyOffline":false' | |
} |
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
_BUCKET_NAME="foo.example.com" | |
_POLICY=$(cat <<EOT | |
{ | |
"Version":"2012-10-17", | |
"Statement":[{ | |
"Sid":"PublicReadForGetBucketObjects", | |
"Effect":"Allow", | |
"Principal": "*", | |
"Action":["s3:GetObject"], |
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
2018-04-20 17:01:33,522 [DEBUG] conjure-up/_unspecified_spell - juju.py:34 - bin_path candidate found | |
2018-04-20 17:01:33,522 [DEBUG] conjure-up/_unspecified_spell - juju.py:34 - wait_path candidate found | |
2018-04-20 17:01:33,672 [DEBUG] conjure-up/_unspecified_spell - app.py:263 - Juju version: 2.3.3-xenial-amd64, conjure-up version: 2.5.6 | |
2018-04-20 17:01:33,704 [DEBUG] conjure-up/_unspecified_spell - telemetry.py:17 - Showing screen: Application Start | |
2018-04-20 17:01:33,707 [DEBUG] conjure-up/_unspecified_spell - telemetry.py:31 - OS: Linux-4.13.0-38-generic-x86_64-with-debian-stretch-sid | |
2018-04-20 17:01:33,711 [INFO] conjure-up/_unspecified_spell - events.py:172 - Watching for shutdown | |
2018-04-20 17:01:33,800 [DEBUG] conjure-up/_unspecified_spell - events.py:53 - Awaiting Shutdown at conjureup/events.py:175 | |
2018-04-20 17:01:33,811 [DEBUG] conjure-up/_unspecified_spell - telemetry.py:17 - Showing screen: Spell Selection | |
2018-04-20 17:01:35,338 [DEBUG] conjure-up/_unspecified_spell - telemetry.py:31 - Spe |
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
#files .file .data pre, | |
#files .file .line-data, | |
#files .file .line-number, | |
code, | |
pre, | |
.blob-code, | |
.blob-code-inner, | |
#readme div.plain pre { | |
font-family: 'Ubuntu Mono', monospace !important; | |
font-variant-ligatures: contextual !important; |
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
diff --git a/canonical-kubernetes/steps/00_process-providertype/before-deploy b/canonical-kubernetes/steps/00_process-providertype/before-deploy | |
index 49d0a3b..7f7680a 100755 | |
--- a/canonical-kubernetes/steps/00_process-providertype/before-deploy | |
+++ b/canonical-kubernetes/steps/00_process-providertype/before-deploy | |
@@ -6,7 +6,13 @@ set -eux | |
if [[ "$JUJU_PROVIDERTYPE" == "localhost" ]]; then | |
debug "Running pre-deploy for $CONJURE_UP_SPELL" | |
- sed "s/##MODEL##/$JUJU_MODEL/" "$(scriptPath)/lxd-profile.yaml" | lxc profile edit "juju-$JUJU_MODEL" | |
+ lxc_aa_profile="lxc.aa_profile" |