profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/dustinblackman/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Dustin Blackman dustinblackman @busbud Montreal, QC, Canada https://dustinblackman.com Senior Lead Software Engineer, Full Stack

dustinblackman/Championify 921

Import recent item sets from popular aggregators like Champion.gg in to League of Legends to use within game! No hassle.

dustinblackman/collectd-docker-plugin 25

A collectd plugin that taps in the Docker Stats API

busbud/tidalwave 10

An awesomely fast command line, server, and client application for recording and parsing JSON logs

dustinblackman/cordova-ListMusic 3

A Cordova/Phonegap/SteroidsJS plugin that lists all tracks in Android's MediaStore (default music player).

dustinblackman/cordova-MusicControl 2

Control default music player for Android from Cordova/Phonegap/Steroids.

busbud/tslint-proper-import-require 1

Verifies whether you should be using the `import from` or `import require` syntax when importing an external module to follow the ES6 spec

dustinblackman/csgo 1

Dockerized CSGO Server

busbud/gitbook-plugin-link-targets 0

Adds targets to links containing the keys set in config

dustinblackman/airline-weather.vim 0

Vim-airline extension to show weather in the status line.

dustinblackman/atom-script 0

Run ( scripts | selections | source ) in Atom

startedcweill/gotests

started time in 14 hours

startedlinuxerwang/goroutine-inspect

started time in 14 hours

startedgoogle/gops

started time in 14 hours

startedmarionebl/svg-term-cli

started time in a day

startedim2nguyen/rover

started time in 2 days

issue commenthybridgroup/gobot

Handling loss of connection with the TCPAdaptor

I'm still working through learning the library, but my understanding is there's no real connection management for TCPAdapters. Attempting to do it manually you find yourself stuck as Disconnect() doesn't properly cleanup the old connection, preventing you from being able to reconnect yourself.

I've put together this really bad hack that uses the ESP8266 onboard LED as a healthcheck, and when it fails it'll disconnect and clear our the existing private connection fields, and then connect again. Once I get more familiar I'll find time to PR a fix.

Example:

package main

import (
	"log"
	"reflect"
	"time"
	"unsafe"

	"gobot.io/x/gobot"
	"gobot.io/x/gobot/drivers/gpio"
	"gobot.io/x/gobot/platforms/firmata"
)

func main() {
	firmataAdaptor := firmata.NewTCPAdaptor("192.168.1.3:3030")
	led := gpio.NewLedDriver(firmataAdaptor, "2")

	work := func() {
		gobot.Every(5*time.Second, func() {
			err := led.Toggle()
			if err != nil {
				log.Print("Failed to toggle leg, will attempt reconnecting")
				log.Print(err)

				firmataAdaptor.Disconnect()

				sp, connErr := firmataAdaptor.PortOpener(firmataAdaptor.Port())
				if connErr != nil {
					log.Print("Failed to reconnect to esp directly, will panic")
					panic(connErr)
				}

				connField := reflect.ValueOf(firmataAdaptor).Elem().FieldByName("conn")
				reflect.NewAt(connField.Type(), unsafe.Pointer(connField.UnsafeAddr())).
					Elem().
					Set(reflect.ValueOf(sp))

				err = firmataAdaptor.Connect()
				if err != nil {
					log.Print("Could not reconnect to esp")
					log.Print(err)
					return
				}

				log.Print("Successfully reconnected")
			}
		})
	}

	robot := gobot.NewRobot("bot",
		[]gobot.Connection{firmataAdaptor},
		[]gobot.Device{led},
		work,
	)

	robot.Start()
}
abishekmuthian

comment created time in 2 days

startedmatryer/moq

started time in 5 days

startedtimescale/promscale

started time in 5 days

startedpuremourning/vimspector

started time in 5 days

startedjodosha/vim-godebug

started time in 5 days

startedWulf/tsync

started time in 5 days

startedsjwhitworth/golearn

started time in 6 days

startedhybridgroup/gobot

started time in 7 days

startedfirmata/arduino

started time in 8 days

startedsyndbg/goenv

started time in 10 days

startedmoovweb/gvm

started time in 10 days

delete branch dustinblackman/nur-packages

delete branch : dependabot/github_actions/actions/checkout-2.3.5

delete time in 10 days

push eventdustinblackman/nur-packages

dependabot[bot]

commit sha df174a517763c29ad47c1bddfef1caae435438fd

Bump actions/checkout from 2.3.4 to 2.3.5 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Dustin Blackman

commit sha b7ad8962ab30b33025f3d32f761e6376d69919a3

Merge pull request #4 from dustinblackman/dependabot/github_actions/actions/checkout-2.3.5 Bump actions/checkout from 2.3.4 to 2.3.5

view details

push time in 10 days

PR merged dustinblackman/nur-packages

Bump actions/checkout from 2.3.4 to 2.3.5 dependencies

Bumps actions/checkout from 2.3.4 to 2.3.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v2.3.5</h2> <p>Update dependencies</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/1e204e9a9253d643386038d443f96446fa156a97"><code>1e204e9</code></a> update licensed check (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/606">#606</a>)</li> <li><a href="https://github.com/actions/checkout/commit/0299a0d2b67d48224ce047d03c69693b37fe77fe"><code>0299a0d</code></a> update dist (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/605">#605</a>)</li> <li><a href="https://github.com/actions/checkout/commit/be0f44845645e415725af198163a96fea9e54334"><code>be0f448</code></a> Bump ws from 5.2.2 to 5.2.3 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/604">#604</a>)</li> <li><a href="https://github.com/actions/checkout/commit/56c00a7b1f53d3094df328ad4c2cd2b2d385c569"><code>56c00a7</code></a> Bump tmpl from 1.0.4 to 1.0.5 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/588">#588</a>)</li> <li><a href="https://github.com/actions/checkout/commit/85e47d1a2bef5be8023f6dce02e0e8451938924f"><code>85e47d1</code></a> Bump path-parse from 1.0.6 to 1.0.7 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/568">#568</a>)</li> <li><a href="https://github.com/actions/checkout/commit/3fc17f8645e9648158a6d23b033ab5f62df29f3c"><code>3fc17f8</code></a> Bump hosted-git-info from 2.8.5 to 2.8.9 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/500">#500</a>)</li> <li><a href="https://github.com/actions/checkout/commit/e3bc06d98631ce7e0e3db6bd158fafe028709e9f"><code>e3bc06d</code></a> Bump lodash from 4.17.15 to 4.17.21 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/499">#499</a>)</li> <li><a href="https://github.com/actions/checkout/commit/442567ba5761652b13c5c842a2f959ac9da6be57"><code>442567b</code></a> Bump handlebars from 4.5.3 to 4.7.7 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/497">#497</a>)</li> <li><a href="https://github.com/actions/checkout/commit/7f00b66d06eed909da8e56729955e53d186d95ed"><code>7f00b66</code></a> Bump y18n from 4.0.0 to 4.0.1 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/469">#469</a>)</li> <li><a href="https://github.com/actions/checkout/commit/eccf386318b560bdd401913a9fe3cca56dc369d6"><code>eccf386</code></a> Bump <code>@​actions/core</code> from 1.1.3 to 1.2.6 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/361">#361</a>)</li> <li>Additional commits viewable in <a href="https://github.com/actions/checkout/compare/v2.3.4...v2.3.5">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+1 -1

0 comment

1 changed file

dependabot[bot]

pr closed time in 10 days

delete branch dustinblackman/nur-packages

delete branch : dependabot/github_actions/cachix/install-nix-action-14.1

delete time in 10 days

push eventdustinblackman/nur-packages

dependabot[bot]

commit sha 9710f6310468d3697db95c2190fed99f49e914ce

Bump cachix/install-nix-action from 12 to 14.1 Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 12 to 14.1. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v12...v14.1) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Dustin Blackman

commit sha 18f0a3fc6b1e38efcadba24c2bbc8446f6748697

Merge pull request #5 from dustinblackman/dependabot/github_actions/cachix/install-nix-action-14.1 Bump cachix/install-nix-action from 12 to 14.1

view details

push time in 10 days

PR merged dustinblackman/nur-packages

Bump cachix/install-nix-action from 12 to 14.1 dependencies

Bumps cachix/install-nix-action from 12 to 14.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cachix/install-nix-action/releases">cachix/install-nix-action's releases</a>.</em></p> <blockquote> <h2>install-nix-action-v14.1</h2> <p>github actions disable Spotlight by default now, so we don't have to do it in this action anymore</p> <h2>install-nix-action-v14</h2> <ul> <li>Create X number of users where X = 2 * cpu cores</li> <li>Linux: fallback to single-user installation if there's no systemd (support for <a href="https://github.com/nektos/act">https://github.com/nektos/act</a>)</li> <li>Fixes a subtle bug on self-hosted runners when installation fails</li> </ul> <h2>install-nix-action-v13</h2> <p>Adds support for <code>install_options</code> that allows passing custom installer options. Run <code>sh <(curl -L https://nixos.org/nix/install) --help</code> to see what's supported.</p> <p>This feature is useful for installing/testing development versions of Nix.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cachix/install-nix-action/commit/3e0e991ad23eecb3d772c65a89c0ab57adb858f6"><code>3e0e991</code></a> github actions disable Spotlight by default now</li> <li><a href="https://github.com/cachix/install-nix-action/commit/d04e8d60ba50c87bee864c9931c4138310e1e1ae"><code>d04e8d6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/cachix/install-nix-action/issues/95">#95</a> from cachix/dependabot/npm_and_yarn/tmpl-1.0.5</li> <li><a href="https://github.com/cachix/install-nix-action/commit/791347c66b961d5b142efa10228e486a372a6fb8"><code>791347c</code></a> v14 and updated Nix to fix macOS 11</li> <li><a href="https://github.com/cachix/install-nix-action/commit/3e073d0e89484ea38c55e97c1aaf0e514ef45184"><code>3e073d0</code></a> Bump tmpl from 1.0.4 to 1.0.5</li> <li><a href="https://github.com/cachix/install-nix-action/commit/11e5400eccd6f89582f7da71e36b86e2b0924252"><code>11e5400</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/cachix/install-nix-action/issues/94">#94</a> from cachix/user-count-cpu-cores</li> <li><a href="https://github.com/cachix/install-nix-action/commit/0f50057886635476086ffcc4d171d91a8c7cc38a"><code>0f50057</code></a> Create X number of users where X = 2 * cpu cores</li> <li><a href="https://github.com/cachix/install-nix-action/commit/7a7eae594b10fc4d9391ad4d09604eb32fcb5a3d"><code>7a7eae5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/cachix/install-nix-action/issues/90">#90</a> from cachix/dependabot/npm_and_yarn/tar-4.4.19</li> <li><a href="https://github.com/cachix/install-nix-action/commit/3fd5ca644605d182135c3dbbface6df0241141e4"><code>3fd5ca6</code></a> Bump tar from 4.4.15 to 4.4.19</li> <li><a href="https://github.com/cachix/install-nix-action/commit/6e7c9a95169018c699642d38efa9e2a0117b2a51"><code>6e7c9a9</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/cachix/install-nix-action/issues/89">#89</a> from SuperSandro2000/patch-1</li> <li><a href="https://github.com/cachix/install-nix-action/commit/7dec9775e50ea623295f3d27c7a77a8006e14fc0"><code>7dec977</code></a> Don't fall back to single user installation on darwin</li> <li>Additional commits viewable in <a href="https://github.com/cachix/install-nix-action/compare/v12...v14.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+1 -1

0 comment

1 changed file

dependabot[bot]

pr closed time in 10 days

startedgo-task/task

started time in 11 days

startedal8n/stretto

started time in 11 days

startedklaaspieter/coc-sourcekit

started time in 12 days

startedtiaguinho/gosoap

started time in 13 days

startedbasti564/Oculess

started time in 14 days

startedKJCracks/Clutch

started time in 16 days

startedjwoglom/tconnectsync

started time in 17 days

startedankur-anand/gojtp

started time in 17 days