Skip to content

Instantly share code, notes, and snippets.

@ithygit
ithygit / esphome_esp8266_rcwl0516_v1.yaml
Created March 21, 2021 09:30
esphome_esp8266_rcwl0516_v1.yaml
#For using RCWL0516 microwave motion detectors. Using a dev/breakout board I find is easiest for this.
#ESP8266 Pins | RCWL0516/Connection | Comment|
#| VIN | 5v from PSU | Provides 5V to the ESP8266/Alt use the breakoutboards DC
#| VU/5V | VCC on RCWL0516 | Powers the module with 5v from esp's rails, pref add cap/direct power, just remember the earth back to the esp
#| D2/GPIO4 | OUT on RCWL0516 | RCWL sends HIGH signal when motion detected |
# Tune the way you wish this sensor to be triggered, ideally on the esphome to reduce the flapping/sensitivity of this module.
# Use several or other detectors for confidence in precense detection
esphome:
name: esp8266room
@wybiral
wybiral / noscript-tracking.go
Last active October 28, 2024 23:01
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@lizthegrey
lizthegrey / attributes.rb
Last active August 29, 2025 15:40
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@ZackBoe
ZackBoe / airlift.json
Last active March 31, 2020 19:55
ShareX Custom Uploader for Airlift
{
"Version": "12.4.1",
"Name": "airlift",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "https://YOUR.HOST/upload/file",
"Headers": {
"X-Airlift-Filename": "$filename$",
"X-Airlift-Password": "YOURPASSWORD"
},
@gea0
gea0 / arch-rpi-64-full-disk-encryption-ssh-unlock.md
Last active September 5, 2025 12:37
Tutorial for installing a 64-bit Arch Linux ARM system on the Raspberry Pi 3B+, with an encrypted root filesystem, and the option to remotely unlock it via a pre-boot SSH daemon.

Arch Linux ARM 64 on Raspberry Pi 3 B+ With Full Disk Encryption And SSH Unlock: 2018 Edition

There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.

Differences to the 32-bit arch linux arm version:

  • probably better performance
  • can run 64-bit software
  • comes without the proprietary video-driver blobs
@noirscape
noirscape / szuru_upload.py
Last active June 9, 2020 15:50
Upload folder
import os
import shutil
import requests
import argparse
import base64
from typing import List
def parse_arguments(debug_args=None):
parser = argparse.ArgumentParser(description="Upload a folder of images and videos to a szurubooru instance.")
szuru_api_group = parser.add_argument_group('szuru api settings')
@Blaradox
Blaradox / brightnessControl.sh
Created September 23, 2018 03:47
Notifications for brightness and volume, using dunstify
#!/usr/bin/env bash
# You can call this script like this:
# $ ./brightnessControl.sh up
# $ ./brightnessControl.sh down
# Script inspired by these wonderful people:
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
@TomFaulkner
TomFaulkner / ubuntu18.04-vfio.md
Last active May 20, 2025 07:47
VFIO Setup on Ubuntu 18.04
@jvalrog
jvalrog / pamute
Last active August 21, 2022 11:55
Mute/Unmute individual Pulseaudio's streams using Rofi
#!/bin/bash
#########################################################
#
# PAMUTE
#
# Mute/Unmute individual Pulseaudio's streams using Rofi.
#
# Requires:
# - pactl
@henfiber
henfiber / KB-Buying-guide-EU.md
Last active October 21, 2025 11:12
Buying keyboards and keyboard components from EU

Europe

  • SkinFlint : Price comparison site which has some nice filtering options per switch type etc. Searches for offers in UK, Germany, Poland and Austria
  • mykeyboard.eu : Keyboards, keycaps and accessories. Based in Belgium.
  • candykeys.com : European Store selling Vortex, Leopold, KBP, Anne Pro keyboards, keycap sets and components (ISO + ANSI). Based in Germany, ships to EU.
  • falba.tech : custom wooden bamboo cases, and some acrylic and carbon ones. Switch packs (65 browns at 48EUR). Other parts for the GH60, Atreus, ErgoDox. Also Microcontrollers, diodes, leds etc.
  • 42keebs.eu - Mostly PCBs, tools and accessories. Located in Czech Republic.
  • KEYGEM : Switches, Keycaps, lubes, cables, DIY kits and deskmats. Based in Germany, ships to the EU and worldwide.
  • [Eloquent Clicks - Custom Mechanical Keyboard Store](https://www.eloquen