Skip to content

Instantly share code, notes, and snippets.

View ChristianTremblay's full-sized avatar

Christian Tremblay ChristianTremblay

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChristianTremblay
ChristianTremblay / main.py
Last active January 26, 2021 21:37
Weather BACnet device using OpenWeatherMap API
import atoma, requests
import BAC0
import re
from weatherlink import data, xref
from bacpypes.basetypes import EngineeringUnits, DateTime
from bacpypes.primitivedata import CharacterString, Date, Time
from BAC0.core.devices.local.models import (
analog_input,
@ChristianTremblay
ChristianTremblay / .tmux.conf
Created September 8, 2020 13:58
My Tmux config
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g default-terminal "screen-256color"
set -g history-limit 10000
# split panes using h and v
bind v split-window -h
bind h split-window -v
@ChristianTremblay
ChristianTremblay / ts.sh
Last active September 8, 2020 19:17
Termshark shortcut to capture BACnet packets on Linux boxes
#!/bin/bash
interface=$1
echo "Starting Termshark on ${interface}"
sudo /var/lib/snapd/snap/bin/termshark -i ${interface} -f "udp port 47808"