Skip to content

Instantly share code, notes, and snippets.

# Use an official centos
FROM centos:7
# Set the working directory to /working
WORKDIR /working
RUN yum -y update
RUN yum -y install yum-utils groupinstall development
RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm
RUN yum -y install python36u
RUN yum -y install python36u-pip
RUN yum -y install python36u-devel
https://p.datadoghq.com/sb/c98e1bdd3-4dcfa46b4f
---
steps:
- type: "waiter"
- name: "Compile themes"
command: "bin/compile"
agents:
queue: design
- type: "waiter"
#!/bin/sh
while [ 1 ]; do
mysql -e 'select count(id) from <table>;' -h <db host> -u admin -p<password> <db>
TZ="Australia/Brisbane" echo "`date`"
sleep 5
done
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template ElastiCache_Redis: Sample template showing how to create an Amazon ElastiCache Redis Cluster. **WARNING** This template creates an Amazon EC2 Instance and an Amazon ElastiCache Cluster. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"ClusterNodeType" : {
"Description" : "The compute and memory capacity of the nodes in the Redis Cluster",
"Type" : "String",
@justinhennessy
justinhennessy / gist:f71a9cbce01fb3e0a9c9
Created November 24, 2014 21:35
Intermittent error ...
"msg": "Agent pid 2890\n2048 7b:0e:df:dc:c6:5d:82:5a:8e:82:20:2e:d1:fe:66:c7 /var/go/.ssh/deis-heroix-ip-10-230-142-43 (RSA)\nWarning: Permanently added '[deis.everydayhero-staging.io]:2222,[54.172.106.48]:2222' (ECDSA) to the list of known hosts.\r\nremote: \u001b[1G\u001b[1G-----> Ruby app detected\u001b[K\nremote: \u001b[1G\u001b[1G-----> Compiling Ruby/Rails\u001b[K\nremote: \u001b[1G\u001b[1G !\u001b[K\nremote: \u001b[1G\u001b[1G ! Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.1.2.tgz -s -o - | tar zxf - ' failed unexpectedly:\u001b[K\nremote: \u001b[1G\u001b[1G !\u001b[K\nremote: \u001b[1G\u001b[1G ! gzip: stdin: invalid compressed data--format violated\u001b[K\nremote: \u001b[1G\u001b[1G ! tar: Unexpected EOF in archive\u001b[K\nremote: \u001b[1G\u001b[1G ! tar: Unexpected EOF in archive\u001b[K\nremote: \u001b[1G\u001b[1G
justinhennessy@Justins-MacBook-Pro:~/code/deis(jh_change_router_image) $ make -C router dev-release
docker tag deis/router:git-a4ab0ad 192.168.59.103:5000/deis/router:git-a4ab0ad
docker push 192.168.59.103:5000/deis/router:git-a4ab0ad
The push refers to a repository [192.168.59.103:5000/deis/router] (len: 1)
Sending image list
Pushing repository 192.168.59.103:5000/deis/router (1 tags)
511136ea3c5a: Image successfully pushed
e2471713634c: Image successfully pushed
21530629f1e1: Image successfully pushed
a9307f2c1197: Image successfully pushed
justinhennessy@Justins-MacBook-Pro:~/code/deis((detached from v1.0.0)) $ make dev-registry
Error: No such image or container: registry
Unable to find image 'registry:0.8.1' locally
registry:0.8.1: The image you are pulling has been verified
511136ea3c5a: Pull complete
d497ad3926c8: Pull complete
ccb62158e970: Pull complete
e791be0477f2: Pull complete
3680052c0f5c: Pull complete
22093c35d77b: Pull complete
Last login: Wed Nov 19 13:09:20 on ttys001
justinhennessy@Justins-MacBook-Pro:~/code/deis((detached from v1.0.0)) $ termshare
panic: Post https://termsha.re:443/e9281e09-6022-408e-5dfd-b45355ef7c44: x509: certificate signed by unknown authority
goroutine 1 [running]:
main.createSession()
/Users/progrium/Projects/termshare/termshare.go:211 +0x45a
main.main()
/Users/progrium/Projects/termshare/termshare.go:433 +0xf9
Nov 19 12:46:30 Justins-MacBook-Pro.local installd[667]: PackageKit: ----- Begin install -----
Nov 19 12:46:32 Justins-MacBook-Pro.local installd[667]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo=0x7fc196c60fb0 {NSFilePath=./postflight, NSURL=file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.vboxkexts, NSLocalizedDescription=An error occurred while running scripts from the package “VirtualBox.pkg”.} {
NSFilePath = "./postflight";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cVirtualBox.pkg\U201d.";
NSURL = "file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg";
PKInstallPackageIdentifier = "org.virtualbox.pkg.vboxkexts";
}
Nov 19 12:46:33 Justins-MacBook-Pro.local Installer[4458]: Install failed: The Installer encountered an error that caused the installation to