Skip to content

Instantly share code, notes, and snippets.

mdeous / multipass.zsh
Last active May 13, 2020
multipass.zsh - A wrapper for people using multiple pass (password-store) stores
View multipass.zsh
# multipass.zsh
# A wrapper to pass (password-store) for managing multiple
# store paths with a single command while still benefiting
# from Zsh's completion features.
# Usage: add the following lines to your .zshrc:
# source /path/to/multipass.zsh
# PASSWORD_STORES[pass1]=/path/to/pass1-store
gbaman /
Last active Oct 24, 2020
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

More details -

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH i

empi89 / import.php
Last active Feb 7, 2018
FHEM filelog to dblog mysql migration
View import.php
* Script for migrating existing FileLog logfiles to the history database table.
* Howto:
* 1. Setup DbLog database tables and setup logging to database.
* 2. Wait until your devices are listed in the current-table of the database.
* 3. edit mysql username/password/database in this script
* 4. php <scriptname> <path_to_logfile>
You can’t perform that action at this time.