Skip to content

Instantly share code, notes, and snippets.

@redlegoman
redlegoman / mastodon-docker-setup.md
Last active July 11, 2023 13:34 — forked from TrillCyborg/mastodon-docker-setup.md
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository. You only really need the docker-compose.yml and the .env.production.sample files from the reo, so clone it to a temporary directory and copy those two files to ~/live

Clone mastodon to tmp directory

@redlegoman
redlegoman / remoteswitch_toggle.ino
Created July 10, 2012 14:21
remoteswitch_toggle.ino
// VARS ---------------------------------------------
int incomingByte = 0; // for incoming serial data
int pin = 10; // pin connected to RF transmitter (pin 2)
#define d4 700 //
#define d2 350 //
#define d1 175 //
//---------------------------------------------------
/*
Example sketch for interfacing with the DS1302 timekeeping chip.
Copyright (c) 2009, Matt Sparks
All rights reserved.
http://quadpoint.org/projects/arduino-ds1302
*/
#include <stdio.h>
#include <string.h>