Skip to content

Instantly share code, notes, and snippets.

View moosh3's full-sized avatar
๐Ÿ
doing devop things

Alec Cunningham moosh3

๐Ÿ
doing devop things
View GitHub Profile
@moosh3
moosh3 / gist:cb18cead5b5726363985b66089932cbd
Created January 21, 2019 02:46 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • โŒ˜ : Command key
  • โŒƒ : Control key
  • โŒซ : Delete key
  • โ† : Left arrow key
  • โ†’ : Right arrow key
  • โ†‘ : Up arrow key
https://www.nike.com/t/flex-stride-mens-7-running-shorts-1PNNN3/AJ7779-681
https://www.nike.com/t/wild-run-mens-2-in-1-running-shorts-RWhDfG/AO5185-277 Ale Brown/Black, size small
https://www.nike.com/t/dri-fit-mens-training-shorts-YMeELy/AA1555-344 Mineral Spruce/Black, size small
https://www.adidas.com/us/alphaskin-sport-short-tights/CF7299.html Small
https://www.nike.com/t/sportswear-tech-pack-mens-long-sleeve-knit-top-b6jFmB/AR1571-011 . Black/Light Blue, size Small
https://www.nike.com/t/windrunner-mens-running-jacket-FQfH7g/AR0257-011 Ale Brown/Team Orange/Obsidian, size Small
https://www.nike.com/t/sportswear-tech-fleece-mens-joggers-gXTOoz1v/805162-456 Obsidian/Obsidian Heather/White
https://www.nike.com/t/swift-mens-running-pants-3VwTb4/928583-346
version: '2.1'
services:
nodeexporter:
image: prom/node-exporter:v0.17.0
container_name: nodeexporter
user: root
privileged: true
volumes:
- /proc:/host/proc:ro
Call of Cthulhu
https://soundcloud.com/chapo-trap-house/unlocked-episode-74-tabletop-game-theory-pt-i-11817
https://soundcloud.com/chapo-trap-house/unlocked-episode-76-tabletop-game-theory-pt-ii-12417
# Reads from raspberry pi sensor which outputs every 2 minutes
# and raises an alert whenever the temperature or humidity hits
# a defined parameter
with open("temp.txt") as f:
data = f.readlines()
lastline = data[-1]
# format output for calculation
temp = lastline[6:9]
@moosh3
moosh3 / docker-compose.yml
Created February 20, 2019 20:49
netdata caddy
version: '3'
volumes:
caddy:
services:
caddy:
image: abiosoft/caddy
ports:
- 80:80
- 443:443
#!/bin/bash
# Recieves POST'ed attributes via a webhook
# WORKDIR : /home/${SERVICE}/${SERVICE}
# USER : ${SERVICE}
# $1 : head_commit.id
# $2 : pusher.name
# $3 : pusher.email
set +e
[Unit]
Description=Caddy HTTP/2 web server
Documentation=https://caddyserver.com/docs
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-abnormal
; User and group the process will run as.
#!/bin/sh
#
# chkconfig: 345 85 15 - start or stop process definition within the boot process
# description: Rackspace Monitoring Agent
# processname: rackspace-monitoring-agent
# pidfile: /var/run/rackspace-monitoring-agent.pid
NAME=rackspace-monitoring-agent
DAEMON=/usr/bin/rackspace-monitoring-agent
PIDFILE=/var/run/rackspace-monitoring-agent.pid
time="2019-04-05T04:52:03-05:00" level=error msg="Parser expected at least 33 CSV fields, but got: 1" source="haproxy_exporter.go:337"
time="2019-04-05T04:52:03-05:00" level=error msg="Can't read CSV: parse error on line 102, column 13: bare \" in non-quoted-field" source="haproxy_exporter.go:323"
time="2019-04-05T04:52:03-05:00" level=error msg="Can't read CSV: parse error on line 103, column 10: bare \" in non-quoted-field" source="haproxy_exporter.go:323"
time="2019-04-05T04:52:03-05:00" level=error msg="Parser expected at least 33 CSV fields, but got: 1" source="haproxy_exporter.go:337"
time="2019-04-05T04:52:03-05:00" level=error msg="Can't read CSV: parse error on line 105, column 13: bare \" in non-quoted-field" source="haproxy_exporter.go:323"
time="2019-04-05T04:52:03-05:00" level=error msg="Can't read CSV: parse error on line 106, column 10: bare \" in non-quoted-field" source="haproxy_exporter.go:323"
time="2019-04-05T04:52:03-05:00" level=error msg="Can't read CSV: parse error on line 107, column