Skip to content

Instantly share code, notes, and snippets.

@yanjost
yanjost / camera.yaml
Created July 17, 2023 19:21 — forked from mbernson/camera.yaml
esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html
# I use this 3D-printed case for the device:
# https://www.thingiverse.com/thing:3540059
esphome:
name: woonkamer
platform: ESP32
board: esp32dev
@yanjost
yanjost / .autoenv.zsh
Last active June 14, 2017 10:46
zsh pyenv virtualenv autoenv integration
VIRTUALENV_NAME=myvirtualenv
echo Python version: `pyenv version-name`
eval "pyenv activate $VIRTUALENV_NAME" && echo "👍 $fg[green]Entered $VIRTUALENV_NAME env";
@yanjost
yanjost / commit-msg
Created March 25, 2015 15:11
Check for Redmine issue at commit
#!/usr/bin/env ruby
message_file = ARGV[0]
message = File.read(message_file)
$regex = /(refs #(\d+)|fixes #(\d+))/
if !$regex.match(message) && !message.include?("(no issue)")
puts "Your message is not formatted correctly (missing refs #XXX or fixes #XXX or '(no issue)' )"
exit 1
end
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then