Skip to content

Instantly share code, notes, and snippets.

@clinta
clinta / aqara_magic_cube.yaml
Created January 2, 2023 18:25 — forked from rvaidya/aqara_magic_cube.yaml
ZHA - Aqara Magic Cube
blueprint:
name: Aqara Magic Cube
description: Control anything using Aqara Magic Cube.
domain: automation
input:
remote:
name: Magic Cube
description: Select the Aqara Magic Cube device
selector:
device:
“are you sure about that”
"I think not"
@clinta
clinta / index.md
Last active August 7, 2020 16:15 — forked from andrewxhill/index.md
Powergate Workshop

Introduction to Filecoin app building

This document: https://tinyurl.com/hackfs-pow

Slides from intro presentation: https://speakerdeck.com/andrewxhill/intro-to-filecoin-building-apps-with-powergate

In this workshop, we are going to introduce you to Filecoin through the use of the Powergate. While you can develop using Lotus or other Filecoin implementations directly, the Powergate is designed to provide the necessary abstractions to build Filecoin storage into your application. Some features of the Powergate include fast data retrieval with IPFS serving as a caching layer, deal management, multi-tenant wallet APIs, and more. The system comes set up to run locally in Docker or deploy to your servers.

We'll cover the Powergate CLI and the Powergate JavaScript Client in the two parts of the workshop. To prepare, we encourage you to install a few things before we get started.

@clinta
clinta / build.csh
Created March 21, 2017 12:58
Building Dash for FreeBSD
#!/bin/csh
setenv BDB_CPPFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv BDB_LIBS "-ldb_cxx-4.8"
setenv CFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv CXXFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv CPPFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv LDFLAGS "-L/usr/local/lib -L/usr/local/lib/db48"
git clean -x -f -d
@clinta
clinta / main.go
Created July 5, 2016 18:13
docker error connecting bug
package main
import (
"fmt"
dockerclient "github.com/docker/engine-api/client"
dockerTypes "github.com/docker/engine-api/types"
dockerCTypes "github.com/docker/engine-api/types/container"
dockerNTypes "github.com/docker/engine-api/types/network"
"golang.org/x/net/context"
@clinta
clinta / m2crypto-test.py
Created September 29, 2015 15:59
M2Crypto works with OpenSSL 1.0.1f, fails on 1.0.1k
#!/usr/bin/python
import M2Crypto
# to anyone who may panic, this is a dynamic generated key for demonstration purposes, not used anywhere.
private_key_pem = """-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAgEAsm16cX7C2wqRA5FcyOIUHck+oEdAHlvFB6vRKf3PSGXNRHlJ
bHuhKbj92U7ZVXUqxhvpBygmzz0x0kyzN/23RS3MZYokd4FjipHFW2CdvkHs7oT/
qZlQc0c3fyGliLiVZxdzPvABPxSlnZKQv0a+/PX6ja5s2xgt+XjefjtUktktq0Qh
89I3t65P+yKkqAGFbmw69rftUBxZlPp1xFkGf16DyEOTkSAmDLLkZU9H3kdbAB3H
@clinta
clinta / keybase.md
Created June 1, 2015 22:35
keybase.md

Keybase proof

I hereby claim:

  • I am clinta on github.
  • I am clinta (https://keybase.io/clinta) on keybase.
  • I have a public key whose fingerprint is 59AE CF87 9B49 3B49 E444 15E9 C181 5CBA 5634 977D

To claim this, I am signing this object:

<#
.Synopsis
Parse robocopy log information
.DESCRIPTION
Parses robocopy logs into a collection of objects summarizing each robocopy operation
.EXAMPLE
onvertFrom-RobocopyLog C:\robocopy.log
.EXAMPLE
onvertFrom-RobocopyLog C:\robocopy.log | Export-CSV C:\RobocopySummary.csv
#>