Skip to content

Instantly share code, notes, and snippets.

@corny
corny / sensor.ino
Last active March 25, 2019 16:33
Sensor with ESP8266, BME280, ZH-18 and SSD1306
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <PubSubClient.h>
#include <Adafruit_BME280.h>
#include <Wire.h>
#include <SSD1306.h>
#include "settings.h"
const int baudrate = 115200;
#define SDA D3
@Enegnei
Enegnei / Revision-Controlled_Journalism.md
Last active June 28, 2022 16:24
Revision-Controlled Journalism - VERSION 1

Revision-Controlled Journalism

Janine Römer | einzelgaengerin@protonmail.ch

VERSION 1 – July 22nd 2016

The most familiar form of intelligence – so familiar that it is usually not recognized as intelligence – is open-source intelligence: information obtained from sources that are not attempting to conceal it. Open-source intelligence is almost the only form of intelligence practiced by scholars, reporters, and business people, but it also plays a major role in national intelligence. In the national case, typical open sources are newspapers, radio broadcasts, foreign government publications, propaganda, maps, and phone books. In industrial intelligence, advertisements and product literature are major sources.

Older open sources have now been joined by the Internet and the World Wide Web. Browsing the Web is practicing open-source intelligence. Google and more specialized search engines give their users access to information on an unprecedented scale.

  • [*Privacy on the Line: The Po
@Pysis868
Pysis868 / grub.cfg
Last active February 25, 2024 06:41
My own configuration file for GRUB2 to boot various live distributions of Linux-based operating systems, along with some system tools. I tried to include a lot of sample configuration entries, even if I don't currently use them, so it may help others. Exceedingly long blog post: http://tehfishyblog.logdown.com/chips/306146-a-homemade-ultimate-bo…
# Config for GNU GRand Unified Bootloader (GRUB) (2)
# /boot/grub2/grub.cfg
# or
# /boot/grub/grub.cfg
# Mostly only 'legacy' CSM/BIOS boot methods currently.
# Unable to boot loop entries with Secure Boot
# Notes:
# Description:
# This grub.cfg file was created by Lance http://www.pendrivelinux.com
@kriegsman
kriegsman / DemoReel2Arg.ino
Created January 12, 2015 18:21
Variation on DemoReel100, showing passing of (hardcoded) parameters ... there are other ways to do this, but this is a simple start.
#include "FastLED.h"
// MODIFIED FastLED "just-100-lines-of-code" demo reel
//
// This example also shows one easy way to define multiple
// TWO-ARGUMENT animations patterns and have them automatically rotate.
//
// -Mark Kriegsman, January 2015
#if FASTLED_VERSION < 3001000
@jblang
jblang / tpm2.md
Last active January 25, 2024 17:00
TPM2 Protocol Description

TPM2 Protocol Implementation

Introduction

Frame data is transferred inside packets (similar to DMX, for example). A frame is an image representing a matrix or a light scene.

The packets start and end with one-byte characters. In between are a few control bytes followed by the payload. There is no set size for a payload; it is transmitted with each packet. This makes the protocol quite flexible. There are enough bytes in a single packet for an RGB matrix with 21,845 pixels, but if you just want to control an RGBW lamp, that only requires 9 bytes. The variable frame size means there is no overhead, allowing for maximum transfer speed.

TPM2 Packet Structure

@aaronjensen
aaronjensen / .tmux.conf
Created April 14, 2012 09:24
robust tmux zoom toggle
# zoom
unbind ^M
bind ^M new-window -d -n zoom 'tmux-zoom'
@lkraav
lkraav / grub.cfg
Created April 7, 2011 15:11
Boot Multiple ISO from USB via Grub2 using Linux, using http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/ as starting point. Idea is that this gist would accumulate known configurations for booting various ISOs with correct pa
# This grub.cfg file was created by Lance http://www.pendrivelinux.com
# Suggested Entries and the suggestor, if available, will also be noted.
# Adding an Unlisted ISO: To try ISO Files that are not yet listed, use
# the existing menuentry examples in /boot/grub/grub.cfg and append any
# options normally found in the distributions syslinux.cfg file on the
# "append" line to the "linux" line of the menu entry.
set timeout=10
set default=0