Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jevonearth's full-sized avatar
🤡

Jev Björsell jevonearth

🤡
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jevonearth on github.
  • I am jevonearth (https://keybase.io/jevonearth) on keybase.
  • I have a public key ASC_MjtGWsg9K4cNiJJuOKoNX3rduGWuL3w3VXPbtpHhVAo

To claim this, I am signing this object:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibana-ingress
annotations:
kubernetes.io/ingress.class: traefik
traefik.backend.loadbalancer.sticky: "true"
ingress.kubernetes.io/rewrite-target: "/"
spec:
tls:
---
- name: check if node_exporter binary exists
stat: path=/usr/local/bin/node_exporter
register: node_exporter_stat
- name: check version
shell: /usr/local/bin/node_exporter -version|head -1|awk '{print $3}'
check_mode: no
ignore_errors: yes
changed_when: false
2016/11/03 13:40:51 [INFO] Packer version: 0.11.1.dev (ed3c6f29effb32bec300d3e9b72472cac5d0fd06)
2016/11/03 13:40:51 Packer Target OS/Arch: linux amd64
2016/11/03 13:40:51 Built with Go Version: go1.7.3
2016/11/03 13:40:51 Detected home directory from env var: /home/jev
2016/11/03 13:40:51 Using internal plugin for null
2016/11/03 13:40:51 Using internal plugin for qemu
2016/11/03 13:40:51 Using internal plugin for virtualbox-iso
2016/11/03 13:40:51 Using internal plugin for docker
2016/11/03 13:40:51 Using internal plugin for file
2016/11/03 13:40:51 Using internal plugin for parallels-pvm
{
"builders": [
{
"image_name": "foo_base_gcp_11_0_{{timestamp}}",
"account_file": "../gcp_account.json",
"name": "foo-base-gcp-freebsd11",
"zone": "us-west1-a",
"disk_size": "30",
"source_image": "freebsd-11-0-release-p1-amd64",
"source_image_project_id": "freebsd-org-cloud-dev",
⚙ jev@tower  ~/projects/foo/infrastructure/packer   master ●  PACKER_LOG=1 packer-io build simple.json |tee log
2016/11/01 15:04:07 [INFO] Packer version: 0.11.0
2016/11/01 15:04:07 Packer Target OS/Arch: linux amd64
2016/11/01 15:04:07 Built with Go Version: go1.7.3
2016/11/01 15:04:07 Detected home directory from env var: /home/jev
2016/11/01 15:04:07 Using internal plugin for vmware-iso
2016/11/01 15:04:07 Using internal plugin for vmware-vmx
2016/11/01 15:04:07 Using internal plugin for openstack
2016/11/01 15:04:07 Using internal plugin for virtualbox-iso
2016/11/01 15:04:07 Using internal plugin for digitalocean
import requests
from requests.auth import HTTPBasicAuth
import re
from StringIO import StringIO
JIRA_URL = 'https://your-jira-url.tld/'
JIRA_ACCOUNT = ('jira-username', 'jira-password')
# the JIRA project ID (short)
JIRA_PROJECT = 'PRO'
GITLAB_URL = 'http://your-gitlab-url.tld/'
@jevonearth
jevonearth / setup_env_rc_test_scenario.sh
Created July 17, 2015 19:09
freebsd rc scripts and env(1) shebang are not friends
#!/bin/sh
# Create dummy python script which uses env for shebang.
cat << EOF > /usr/local/bin/foo
#!/usr/bin/env python2.7
print("Hello foo")
EOF
# turn on executable bit
chmod +x /usr/local/bin/foo
@jevonearth
jevonearth / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@jevonearth
jevonearth / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;