Skip to content

Instantly share code, notes, and snippets.

View ericmigi's full-sized avatar

Eric Migicovsky ericmigi

View GitHub Profile
(.venv) eric@MacBook-Air ~/d/pebbleos ((d117053c))> ./waf console --tty /dev/tty.usbserial-BG01F2Y1
Waf: Entering directory `/Users/eric/dev/pebbleos/build'
--- PULSE terminal on /dev/tty.usbserial-BG01F2Y1 ---
--- Ctrl-C or Ctrl-D to exit ---
D T 16:01:55.679 lsm6dso.c:920> LSM6DSO: Watchdog callback running
D T 16:01:55.679 lsm6dso.c:926> LSM6DSO: Interrupt age: 9406 ms
D T 16:02:05.058 lsm6dso.c:920> LSM6DSO: Watchdog callback running
D T 16:02:05.058 lsm6dso.c:926> LSM6DSO: Interrupt age: 18785 ms
D T 16:02:05.062 gap_le_advert.c:200> Job is performing next advertising term (1/2)
D T 16:02:05.062 gap_le_advert.c:311> Disable last Ad job
@ericmigi
ericmigi / Core Devices CLA.md
Created April 11, 2025 06:42
Core Devices Contributor License Agreement

Core Devices Contributor License Agreement

April 10 2025 - v1.0

Thank you for your interest in contributing to Core Devices. To clarify the intellectual property license granted with Contributions from any person or entity to us (“Core Devices LLC”) in respect to certain software projects maintained by Core Devices including libpebble3 (“Projects”), Core Devices must have on file a signed Contributor License Agreement ("CLA") from each Contributor, indicating agreement with the license terms below. This agreement is for your protection as a Contributor as well as the protection of the Projects and their users. It does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your Contributions (present and future) that you submit to Core Devices. Except for the license granted herein to Core Devices and recipients of software distributed by Core Devices, You reserve all right, title, and interest in and to Your

@ericmigi
ericmigi / gist:2f264a9b1635e02030f13df7df8e6df1
Created December 19, 2024 07:24
nrf52840 (xiao) + PCM5102A
class SimpleI2S {
private:
uint32_t buffer[2];
public:
void begin(uint32_t bck, uint32_t lrck, uint32_t din) {
NRF_I2S->ENABLE = 0;
NRF_I2S->PSEL.SCK = bck;
NRF_I2S->PSEL.LRCK = lrck;
NRF_I2S->PSEL.SDOUT = din;
NRF_I2S->PSEL.MCK = 0xFFFFFFFF;
bridge:
port: 8432
domain: pulsar.im
bindAddress: 0.0.0.0
homeserverUrl: http://synapse:8008
relay:
enabled: true
whitelist:
- ".*"
oauth:
# docker-compose.yml
matrix-appservice-wechaty:
container_name: matrix-appservice-wechaty
image: wechaty/matrix-appservice
volumes:
- ./bridges/matrix-appservice-wechaty:/data
networks:
- default
environment:
- WECHATY_PUPPET_PADPLUS_TOKEN=puppet_padplus_<token>
tep 18/22 : RUN sudo mkdir /bot && npm link && sudo ln -sfv /usr/lib/node_modules/* /node_modules/ && sudo ln -sfv /wechaty/node_modules/* /node_modules/ && sudo ln -sfv /wechaty/tsconfig.json / && echo 'Linked Wechaty to Global'
---> Using cache
---> 7142bfe78cc1
Step 19/22 : RUN npm run puppet-install && sudo rm -fr /tmp/* ~/.npm
---> Running in 92ab814c2243
> wechaty@0.29.43 puppet-install /wechaty
> ts-node bin/puppet-install.ts
08:25:52 INFO PuppetManager installAll() please wait ...
@ericmigi
ericmigi / docker-compose.yml
Created December 24, 2019 19:54
docker-compose for all the bridges
version: "3.7"
services:
mautrix-telegram:
container_name: pi-telegram
image: novachat/pi-telegram
network_mode: host
logging:
options:
max-size: 10m
@ericmigi
ericmigi / einkcaltrain.js
Created November 27, 2019 21:39
latest copy einkcaltrain
const request = require('request')
const express = require('express')
const app = express()
const port = 3000
var south;
var north;
@ericmigi
ericmigi / einkcaltrain.js
Created October 20, 2019 23:13
for eink.page
const request = require('request')
const express = require('express')
const app = express()
const port = 3000
var south;
var north;
request({
url: "https://wrapapi.com/use/ericmigi/caltrain/paloalto/0.0.1",

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: