This file contains hidden or 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
| LOCAL_BASE=${HOME}/.local | |
| test ! -d ${LOCAL_BASE} && mkdir -p ${LOCAL_BASE} | |
| export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
| ####################### | |
| ### Ssh-agent setup ### | |
| ####################### | |
| refresh_ssh_agent_env() { |
This file contains hidden or 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
| if test -f ${HOME}/.sshenv; then | |
| . ${HOME}/.sshenv | |
| proc_info=$(ps aux|grep ${SSH_AGENT_PID}|grep -v grep) | |
| test -z "${proc_info}" && rm -f ${HOME}/.sshenv | |
| fi |
This file contains hidden or 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
| // Warning (TypedefDecl): %!s(int=333): function pointers are not supported | |
| // Warning (TypedefDecl): %!s(int=341): function pointers are not supported | |
| // Warning (TypedefDecl): %!s(int=350): function pointers are not supported | |
| // Warning (TypedefDecl): %!s(int=353): function pointers are not supported | |
| // Warning (VarDecl): %!s(int=27): probably an incorrect type translation 2 | |
| // Warning (TypedefDecl): %!s(int=266): function pointers are not supported | |
| // Warning (TypedefDecl): %!s(int=269): function pointers are not supported | |
| // Warning (CallExpr): %!s(int=406): unknown function: delay_ms | |
| // Warning (MemberExpr): %!s(int=429): cannot determine type for LHS 'const struct bme280_dev *', will use 'void *' for all fields | |
| // Warning (CallExpr): %!s(int=432): unknown function: read |
This file contains hidden or 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
| var remote = new XMLHttpRequest(); | |
| remote.onreadystatechange == function() { | |
| console.log(this.responseText); | |
| postMessage(this.responseText); | |
| }; | |
| remote.open("GET", "/salt/events", true); | |
| remote.setRequestHeader("X-Auth-Token", "{{salt_api_token}}"); | |
| remote.send(); |
This file contains hidden or 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
| /* | |
| Events worker | |
| */ | |
| var salt_events; | |
| function startEventsWorker() { | |
| if (typeof(Worker) !== "undefined") { | |
| if (typeof(salt_events) == "undefined") { | |
| salt_events = new Worker("/goat/events.js"); | |
| } |
This file contains hidden or 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
| % include('header.tpl') | |
| <div id="main"> | |
| <div class="header"> | |
| <h1>Salt Event Bus Viewer</h1> | |
| </div> | |
| <br /> | |
| <center> | |
| <a href="#" onclick="startEventsWorker();">Start</a> - | |
| <a href="#" onclick="stopEventWorker();">Stop</a><br /> |
This file contains hidden or 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
| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| REBUILDING X86/AMD64 DOCKER IMAGES FOR AN ARM | |
| SWARM. | |
| Mike 'Fuzzy' Partin | |
| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| Table of Contents | |
| ───────────────── |
This file contains hidden or 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
| #!/usr/bin/env python2 | |
| import sys | |
| class Line(object): | |
| average = 0 | |
| minimum = 0 | |
| maximum = 0 | |
| host = None |
This file contains hidden or 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
| // Copyright (c) 2019 Mike 'Fuzzy' Partin | |
| // Copyright (c) 2019 Neal Zerby | |
| // Usage of this source code is governed by the 3 clause BSD License | |
| // that can be found in the LICENSE.md file | |
| module main | |
| import sync | |
| import time |
This file contains hidden or 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
| // Copyright (c) 2019 Mike 'Fuzzy' Partin | |
| // Usage of this source code is governed by the 3 clause BSD License | |
| // that can be found in the LICENSE.md file | |
| module main | |
| // link in the libc for network sockets. This is only temporary until the vlib bugs get ironed out | |
| import os |